Added bigger example data Html changes in formating and in function Json now gets Read in a function Matplotlib now uses the 'Agg' backend Modified gitignore
100 lines
2.8 KiB
JSON
100 lines
2.8 KiB
JSON
{
|
|
"location": "Building B - Research Wing",
|
|
"sensors": [
|
|
{
|
|
"id": "temp-A12",
|
|
"type": "temperature",
|
|
"unit": "°C",
|
|
"readings": [
|
|
{ "ts": 1747814400, "value": 21.0 },
|
|
{ "ts": 1747818000, "value": 21.4 },
|
|
{ "ts": 1747821600, "value": 22.1 },
|
|
{ "ts": 1747825200, "value": 22.6 },
|
|
{ "ts": 1747828800, "value": 22.8 },
|
|
{ "ts": 1747832400, "value": 23.0 }
|
|
]
|
|
},
|
|
{
|
|
"id": "hum_B2",
|
|
"type": "humidity",
|
|
"unit": "%",
|
|
"readings": [
|
|
{ "ts": 1747814400, "value": 50.1 },
|
|
{ "ts": 1747818000, "value": 51.7 },
|
|
{ "ts": 1747821600, "value": 49.3 },
|
|
{ "ts": 1747825200, "value": 48.8 },
|
|
{ "ts": 1747828800, "value": 47.6 },
|
|
{ "ts": 1747832400, "value": 46.9 },
|
|
{ "ts": 1747836000, "value": 45.2 },
|
|
{ "ts": 1747839600, "value": 44.7 },
|
|
{ "ts": 1747843200, "value": 43.5 }
|
|
]
|
|
},
|
|
{
|
|
"id": "PRES-009",
|
|
"type": "pressure",
|
|
"unit": "hPa",
|
|
"readings": [
|
|
{ "ts": 1747814400, "value": 1011.0 },
|
|
{ "ts": 1747818000, "value": 1010.8 }
|
|
]
|
|
},
|
|
{
|
|
"id": "sensorX04",
|
|
"type": "CO2",
|
|
"unit": "ppm",
|
|
"readings": [
|
|
{ "ts": 1747814400, "value": 415 },
|
|
{ "ts": 1747818000, "value": 420 },
|
|
{ "ts": 1747821600, "value": 432 },
|
|
{ "ts": 1747825200, "value": 440 },
|
|
{ "ts": 1747828800, "value": 437 }
|
|
]
|
|
},
|
|
{
|
|
"id": "luxSensor-1",
|
|
"type": "light",
|
|
"unit": "lux",
|
|
"readings": [
|
|
{ "ts": 1747814400, "value": 300 },
|
|
{ "ts": 1747818000, "value": 450 },
|
|
{ "ts": 1747821600, "value": 600 },
|
|
{ "ts": 1747825200, "value": 550 },
|
|
{ "ts": 1747828800, "value": 500 },
|
|
{ "ts": 1747832400, "value": 480 },
|
|
{ "ts": 1747836000, "value": 470 },
|
|
{ "ts": 1747839600, "value": 460 },
|
|
{ "ts": 1747843200, "value": 455 },
|
|
{ "ts": 1747846800, "value": 440 },
|
|
{ "ts": 1747850400, "value": 430 },
|
|
{ "ts": 1747854000, "value": 420 }
|
|
]
|
|
},
|
|
{
|
|
"id": "vib_07",
|
|
"type": "vibration",
|
|
"unit": "mm/s",
|
|
"readings": [
|
|
{ "ts": 1747814400, "value": 0.05 },
|
|
{ "ts": 1747818000, "value": 0.06 },
|
|
{ "ts": 1747821600, "value": 0.08 },
|
|
{ "ts": 1747825200, "value": 0.07 },
|
|
{ "ts": 1747828800, "value": 0.09 },
|
|
{ "ts": 1747832400, "value": 0.1 },
|
|
{ "ts": 1747836000, "value": 0.12 }
|
|
]
|
|
},
|
|
{
|
|
"id": "motion-Z3",
|
|
"type": "motion",
|
|
"unit": "count",
|
|
"readings": [
|
|
{ "ts": 1747814400, "value": 3 },
|
|
{ "ts": 1747818000, "value": 1 },
|
|
{ "ts": 1747821600, "value": 0 },
|
|
{ "ts": 1747825200, "value": 2 }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|