Temperature Sensor & InfluxDB & Python

Last Updated on October 23, 2022 by pg@petergamma.org

Here we found an example on Jake’s Blog with Python:

  • DS18B20 temperature sensor on OrangePi with Armbian:

https://blog.ja-ke.tech/2019/01/21/DS18B20-armbian.html

  • Save DS18B20 temperature measurements to InfluxDB with Python:

https://blog.ja-ke.tech/2019/02/16/python-ds18b20-influx.html

The example from InfluxData uses the Python Client for InfluxDB and is newer:

  • Efficiency write data from IOT sensor – write changed temperature every minute:

https://github.com/influxdata/influxdb-client-python/blob/master/examples/iot_sensor.py

  • but it has no hardware example.
  • Jake’s Blog uses also the InfluxDB Python client