-4

我有 5 个 ESP8266 传感器收集温度和湿度数据。将数据显示为每个传感器的温度和湿度的线的最佳方法是什么?传感器 ID 的值为 ESP

以下是数据示例:

{"total_rows":3363,"offset":0,"rows":[
{"id":"357215d4071f05ffd21a9535646c4cde","key":["2015-09-08T05:05:09.240Z","ESP0005"],"value":{"temp":"76.20","humid":"37.80"}},
{"id":"357215d4071f05ffd21a9535646c3dbd","key":["2015-09-08T05:04:55.526Z","ESP0004"],"value":{"temp":"77.70","humid":"38.70"}},
{"id":"357215d4071f05ffd21a9535646c3405","key":["2015-09-08T05:04:53.448Z","ESP0001"],"value":{"temp":"75.00","humid":"39.90"}},
{"id":"357215d4071f05ffd21a9535646c308c","key":["2015-09-08T05:00:09.247Z","ESP0005"],"value":{"temp":"76.20","humid":"38.00"}},
{"id":"357215d4071f05ffd21a9535646c2587","key":["2015-09-08T04:59:55.516Z","ESP0004"],"value":{"temp":"77.10","humid":"38.70"}},
{"id":"357215d4071f05ffd21a9535646c16f2","key":["2015-09-08T04:59:53.444Z","ESP0001"],"value":{"temp":"75.00","humid":"40.20"}},
{"id":"357215d4071f05ffd21a9535646c13c2","key":["2015-09-08T04:55:09.240Z","ESP0005"],"value":{"temp":"76.20","humid":"38.00"}},
{"id":"357215d4071f05ffd21a9535646c0eea","key":["2015-09-08T04:54:55.499Z","ESP0004"],"value":{"temp":"75.50","humid":"38.20"}},
{"id":"357215d4071f05ffd21a9535646c0c3b","key":["2015-09-08T04:54:53.450Z","ESP0001"],"value":{"temp":"75.00","humid":"40.20"}},
{"id":"357215d4071f05ffd21a9535646c05f8","key":["2015-09-08T04:50:09.216Z","ESP0005"],"value":{"temp":"76.20","humid":"37.90"}},
{"id":"357215d4071f05ffd21a9535646c00f5","key":["2015-09-08T04:49:55.526Z","ESP0004"],"value":{"temp":"76.20","humid":"38.60"}},
{"id":"357215d4071f05ffd21a9535646bf808","key":["2015-09-08T04:49:53.448Z","ESP0001"],"value":{"temp":"75.20","humid":"40.30"}},
{"id":"357215d4071f05ffd21a9535646bf4dc","key":["2015-09-08T04:45:09.213Z","ESP0005"],"value":{"temp":"76.40","humid":"38.00"}},
{"id":"357215d4071f05ffd21a9535646be7df","key":["2015-09-08T04:44:55.478Z","ESP0004"],"value":{"temp":"75.70","humid":"38.30"}},
{"id":"357215d4071f05ffd21a9535646be79b","key":["2015-09-08T04:44:53.449Z","ESP0001"],"value":{"temp":"75.30","humid":"40.20"}},
{"id":"357215d4071f05ffd21a9535646bded6","key":["2015-09-08T04:40:09.192Z","ESP0005"],"value":{"temp":"76.20","humid":"38.10"}},
{"id":"357215d4071f05ffd21a9535646bd308","key":["2015-09-08T04:39:55.486Z","ESP0004"],"value":{"temp":"75.90","humid":"38.30"}},
{"id":"357215d4071f05ffd21a9535646bcfa0","key":["2015-09-08T04:39:53.450Z","ESP0001"],"value":{"temp":"75.00","humid":"39.80"}},
{"id":"357215d4071f05ffd21a9535646bcf6f","key":["2015-09-08T04:35:09.182Z","ESP0005"],"value":{"temp":"76.20","humid":"38.10"}},
{"id":"357215d4071f05ffd21a9535646bcbdb","key":["2015-09-08T04:34:55.467Z","ESP0004"],"value":{"temp":"75.70","humid":"38.70"}},
{"id":"357215d4071f05ffd21a9535646bca96","key":["2015-09-08T04:34:53.450Z","ESP0001"],"value":{"temp":"75.20","humid":"40.90"}},
{"id":"357215d4071f05ffd21a9535646bba7e","key":["2015-09-08T04:30:09.187Z","ESP0005"],"value":{"temp":"76.40","humid":"38.10"}},
{"id":"357215d4071f05ffd21a9535646bb6d4","key":["2015-09-08T04:29:55.455Z","ESP0004"],"value":{"temp":"76.20","humid":"38.50"}},
{"id":"357215d4071f05ffd21a9535646badf4","key":["2015-09-08T04:29:53.450Z","ESP0001"],"value":{"temp":"75.00","humid":"40.40"}},
{"id":"357215d4071f05ffd21a9535646ba44e","key":["2015-09-08T04:25:09.161Z","ESP0005"],"value":{"temp":"76.40","humid":"38.20"}},
{"id":"357215d4071f05ffd21a9535646b9652","key":["2015-09-08T04:24:55.441Z","ESP0004"],"value":{"temp":"77.50","humid":"38.80"}},
{"id":"357215d4071f05ffd21a9535646b92b7","key":["2015-09-08T04:24:53.450Z","ESP0001"],"value":{"temp":"75.20","humid":"40.40"}},
{"id":"357215d4071f05ffd21a9535646b890f","key":["2015-09-08T04:20:09.173Z","ESP0005"],"value":{"temp":"76.40","humid":"38.20"}},
{"id":"357215d4071f05ffd21a9535646b7e40","key":["2015-09-08T04:19:55.404Z","ESP0004"],"value":{"temp":"75.90","humid":"38.80"}},
{"id":"357215d4071f05ffd21a9535646b72de","key":["2015-09-08T04:19:53.451Z","ESP0001"],"value":{"temp":"75.20","humid":"40.40"}},
{"id":"357215d4071f05ffd21a9535646b6c9c","key":["2015-09-08T04:15:09.148Z","ESP0005"],"value":{"temp":"76.40","humid":"38.30"}},
{"id":"357215d4071f05ffd21a9535646b68d8","key":["2015-09-08T04:14:55.436Z","ESP0004"],"value":{"temp":"75.50","humid":"38.70"}},
{"id":"357215d4071f05ffd21a9535646b5e3f","key":["2015-09-08T04:14:53.454Z","ESP0001"],"value":{"temp":"75.50","humid":"40.40"}},
{"id":"357215d4071f05ffd21a9535646b5221","key":["2015-09-08T04:10:09.141Z","ESP0005"],"value":{"temp":"76.40","humid":"38.30"}},
{"id":"357215d4071f05ffd21a9535646b4456","key":["2015-09-08T04:09:55.384Z","ESP0004"],"value":{"temp":"75.70","humid":"38.70"}},
{"id":"357215d4071f05ffd21a9535646b3f5c","key":["2015-09-08T04:09:53.456Z","ESP0001"],"value":{"temp":"75.30","humid":"40.40"}},
{"id":"357215d4071f05ffd21a9535646b3579","key":["2015-09-08T04:05:09.125Z","ESP0005"],"value":{"temp":"76.60","humid":"38.30"}}

4

1 回答 1

0

在做了一些研究和原型设计之后,我将转到 Metrics Graphics http://metricsgraphicsjs.org

它似乎能够处理时间序列数据,并且很容易将数据暂存以供图表工具使用。

于 2015-09-22T23:01:20.203 回答