We need to find a way to connect the new V4 sensor software to the database used for the V1-3 sensors so that they show up on the public map: https://dashboard.ribbitnetwork.org/
How
As discussed on Discord, there are two possible paths:
The first path is to give the sensors an influxdb token, and just send the data in the legacy format to influxdb directly from the sensor.
The second path is to have a process somewhere that picks up the data we already have in Google Pub/sub, massages it in the legacy format and sends it to influxdb.
The second option is advantageous as it eliminates the need for the sensors to hold the InfluxDB write key, which is a bit of a security risk.
In order to achieve this, the sensor should publish only one message to Golioth's LightDB service that contains the current state of all sensors. This eliminates the need for a complex backend service to aggregate the messages and hold the required state to write a datapoint into influxDB.
Testing
I have tested this on a test golioth fleet and confirmed all is well:
Why
We need to find a way to connect the new V4 sensor software to the database used for the V1-3 sensors so that they show up on the public map: https://dashboard.ribbitnetwork.org/
How
As discussed on Discord, there are two possible paths:
The second option is advantageous as it eliminates the need for the sensors to hold the InfluxDB write key, which is a bit of a security risk.
In order to achieve this, the sensor should publish only one message to Golioth's LightDB service that contains the current state of all sensors. This eliminates the need for a complex backend service to aggregate the messages and hold the required state to write a datapoint into influxDB.
Testing
I have tested this on a test golioth fleet and confirmed all is well: