IoT data API powered by Perl, Dancer2, Crate, Docker, <other buzz words ...>
[
{
"id": 1,
"name": "My Stream",
"created_at": 123456789,
"updated_at": null
},
...
]
{
"id": 1,
"name": "My Stream",
"created_at": 123456789,
"update_at": null,
"num_sensors": 0,
"num_samples": 0
}
[
{
"id": 1,
"name": "sensor-1",
"display_name": "Sensor 1",
"created_at": 123456789,
"updated_at": null
},
...
],
[
{
"id": 1,
"created_at": 1233456789,
"updated_at": null,
"data": [
{
"id": 1,
"sensor": 1,
"value": "<val>"
},
...
],
},
...
]
[
{
"id": 1,
"name": "sensor-1",
"display_name": "Sensor 1",
"stream": 1,
"created_at": 123456789,
"updated_at": null
},
...
]
{
"id": 1,
"name": "sensor-1",
"display_name": "Sensor 1",
"stream": 1,
"created_at": 123456789,
"updated_at": null,
"metadata": [
{
"key": "Some Key",
"value": "The Value"
},
...
]
}
{
"id": 1,
"name": "sensor-1",
"display_name": "Sensor 1",
"stream": 1,
"created_at": 123456789,
"updated_at": null,
"metadata": [
{
"key": "Some Key",
"value": "The Value"
},
...
],
"samples": [
{
"id": 1,
"created_at": 123456789,
"updated_at": null
},
...
]
}
{
"name": "My Stream"
}
{
"id": 1,
"name": "My Stream",
"created_at": 123456789,
"update_at": null,
"num_sensors": 0,
"num_samples": 0
}
{
"name": "sensor-1",
"display_name": "Sensor 1",
"metadata": [
{
"key": "Some Key",
"value": "The Value"
},
...
],
}
(Missing metadata structure)
{
"id": 1,
"name": "sensor-1",
"display_name": "Sensor 1",
"stream": 1,
"created_at": 123456789,
"updated_at": null,
"metadata": [
{
"key": "Some Key",
"value": "The Value"
},
...
]
}
{
"created_at": 123456789,
"sensors": [
{
"name": "sensor-1",
"value": "123.45"
},
...
]
}