|
| 1 | + |
| 2 | +// Test battery time series JSON |
| 3 | +// This data is from a single sensor over a period of time |
| 4 | +// It will be used in an XYFrame (Line graph) to show the sensors battery over time |
| 5 | + |
| 6 | +export default [ |
| 7 | + { |
| 8 | + id: "sensor-1", color:'blue', |
| 9 | + data: [ |
| 10 | + { |
| 11 | + gasSensor: 200, |
| 12 | + created_at: new Date(2017, 7, 1), |
| 13 | + }, |
| 14 | + { |
| 15 | + gasSensor: 250, |
| 16 | + created_at: new Date(2017, 7, 2), |
| 17 | + }, |
| 18 | + { |
| 19 | + gasSensor: 220, |
| 20 | + created_at: new Date(2017, 7, 3), |
| 21 | + }, |
| 22 | + { |
| 23 | + gasSensor: 230, |
| 24 | + created_at: new Date(2017, 7, 4), |
| 25 | + }, |
| 26 | + { |
| 27 | + gasSensor: 240, |
| 28 | + created_at: new Date(2017, 7, 5), |
| 29 | + } |
| 30 | + ] |
| 31 | + |
| 32 | + }, |
| 33 | + { |
| 34 | + id: "sensor-2", color:'red', |
| 35 | + data: [ |
| 36 | + { |
| 37 | + gasSensor: 220, |
| 38 | + created_at: new Date(2017, 7, 1), |
| 39 | + }, |
| 40 | + { |
| 41 | + gasSensor: 300, |
| 42 | + created_at: new Date(2017, 7, 2), |
| 43 | + }, |
| 44 | + { |
| 45 | + gasSensor: 300, |
| 46 | + created_at: new Date(2017, 7, 3), |
| 47 | + }, |
| 48 | + { |
| 49 | + gasSensor: 290, |
| 50 | + created_at: new Date(2017, 7, 4), |
| 51 | + }, |
| 52 | + { |
| 53 | + gasSensor: 300, |
| 54 | + created_at: new Date(2017, 7, 5), |
| 55 | + } |
| 56 | + ] |
| 57 | + |
| 58 | + }, |
| 59 | + { |
| 60 | + id: "sensor-3", color:'green', |
| 61 | + data: [ |
| 62 | + { |
| 63 | + gasSensor: 220, |
| 64 | + created_at: new Date(2017, 7, 1), |
| 65 | + }, |
| 66 | + { |
| 67 | + gasSensor: 220, |
| 68 | + created_at: new Date(2017, 7, 2), |
| 69 | + }, |
| 70 | + { |
| 71 | + gasSensor: 220, |
| 72 | + created_at: new Date(2017, 7, 3), |
| 73 | + }, |
| 74 | + { |
| 75 | + gasSensor: 210, |
| 76 | + created_at: new Date(2017, 7, 4), |
| 77 | + }, |
| 78 | + { |
| 79 | + gasSensor: 220, |
| 80 | + created_at: new Date(2017, 7, 5), |
| 81 | + } |
| 82 | + ] |
| 83 | +}, |
| 84 | + |
| 85 | +] |
0 commit comments