This script subscribes to certain mqtt topics and adds any (numeric/boolean!) values to your influx db to e.g. display the stats in grafana.
- Retreive smartphone battery charge in mqtt using an app like Presence Publisher.
- Use the script to put that data into an influx db.
- Display that data in grafana