luftdaten-server
Receive and serve data from your luftdaten device.
Usage
yarn
yarn start
In your device config, set the values for own API:
Server: <luftdaten-server IP/URL>
Path: /data
Port: 21080
Your data will be saved to luftdaten.sqlite
.
Incoming example data
{
"esp8266id": "1234567",
"sensordatavalues": [
{"value_type": "humidity", "value": "37.10"},
{"value_type": "max_micro", "value": "2780073"},
{"value_type": "min_micro", "value": "75"},
{"value_type": "samples", "value": "1737810"},
{"value_type": "SDS_P1", "value": "4.05"},
{"value_type": "SDS_P2", "value": "2.25"},
{"value_type": "signal", "value": "-86"},
{"value_type": "temperature", "value": "28.90"}
],
"software_version": "NRZ-2018-123B"
}
REST API
See the Swagger docs or open /swagger-ui
in your browser.
Displaying the data
To display the data, check out luftdaten-site.