Sensor-data-collector has been created as a facade service for InfluxDB. It is configured with sensor configuration therefore it simplifies requests that have to be made for sensors themselves.
Service exposes two endpoints for each type of measurement:
Sample requests can be found here.
This service is exposed as a klyman/sensor-data-collector image on Docker HUB.
Container is configured by environment variables:
INFLUXDB_URL - url to InfluxDBINFLUXDB_USERNAME - username to access InfluxDBINFLUXDB_PASSWORD - password to access InfluxDBINFLUXDB_USERNAME_FILE - path to file containing InfluxDB username. This will be used only when INFLUXDB_USERNAME
is emptyINFLUXDB_PASSWORD_FILE - path to file containing InfluxDB password. This will be used only when INFLUXDB_PASSWORD
is emptyINFLUXDB_DATABASE - database name in InfluxDBINFLUXDB_MEASUREMENTS_TEMPERATURE - table name for temperature measurementsINFLUXDB_MEASUREMENTS_AIR_QUALITY - table name for air quality measurementsSENSORS[0]_API_KEY - API key for first sensorSENSORS[0]_LOCATION - location tag of first sensorThere can be multiple SENSOR[n]_API_KEY and SENSOR[n]_LOCATION variables for each sensor which should be handled.
Content type
Image
Digest
sha256:3f1f20686…
Size
274.2 MB
Last updated
about 3 years ago
docker pull klyman/sensor-data-collector