Fetch system status info from a Sensor.Community (previously Luftdaten) sensor and convert to influx line protocol
Includes a Grafana-dashboard to visualize the information.
Should work on most Unix(tm)/Linux flavours with the standard tools and two additional packages (see Dependencies).
Tested on BSD (Mac OSX and FreeBSD) and airrohr-firmware NRZ-2020-129 to NRZ-2024-135 with a SDS011 sensor.
The script depends on curl (7.75.0 or higher) and html2text, both most likely available in the package repositories of your OS distribution. Source code is available at:
- curl: https://curl.haxx.se/
- html2text: https://github.com/grobian/html2text
No Python required :)
- Create a new InfluxDB with
create database "sensor-status"
- Modify the Status*- and INFLUXDB-settings in get-sensor-status.sh as needed
- Run the script from cron every 15 minutes