A quick GitHub gist for anyone looking to write to an InfluxDB server with Python3. This is a generic function that accepts three inputs; as an example, I am using temperature data in degrees Celsius.

Writing to an InfluxDB server with Python3 - DHT11 readings in grafana Turning DHT11 readings into beautiful graphs in Grafana Once you have your data in influxDB, a great way to visualise it is using Grafana. I hope to bring you more posts in the future about visualising your python data with Grafana.


Now that you have the basics of writing events to influxDB with Python, feel free to leave links in the comments on the wonderful things you were able to graph with Grafana.

More Python Guides

Worth noting that all of the above data could find its way onto a Grafana dashboard… the possibilities are endless!