jaredwolff
Hi Jared,
Success!! I had call with Golioth and was recommended to use the JSON APIfor both LightDb State and LightDB Stream, as the sensors publish data at relatively slow interval of per minute.
The resolution turned out to be a minor change in the Grafana Dashboard Path, plus an addition of a query in the Body of the Dashboard configuration.
I used the version of JSON API plugin that is available in Grafana Cloud, the same one that I tried using earlier.
Golioth weren’t sure why the WebSocket API didn’t work and will get back to me.
Later I’ll setup separate charts for each of the sensors, as you had in your JSON.
What’s the best to generate what you had in the Air Quality Wing-1633657750477.json? Thanks.
Data source - JSON API
https://api.golioth.io/v1/projects/aqw1066
Dashboard Configuration
Path
POST
/devices/mydevicei/stream
Fields
$..time
$..env.hum
$..env.voc
$..env.temp
$..env.p25
Body
{
"start" : "${__from:date}",
"end" : "${__to:date}",
"perPage" : 99999,
"query": {
"fields" : [
{ "path": "time" },
{ "path": "deviceId"},
{ "path": "*"}
],
"timeBucket" : "5s"
}
}