From c783ab1ce8c9dfabcc88bfd4f21059e3885b55e6 Mon Sep 17 00:00:00 2001 From: Rabjerg Date: Wed, 6 Jan 2021 16:57:39 +0100 Subject: [PATCH] Update 'README.md' --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index cdf5263..90ba067 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,29 @@ # DS18B20_raspi +## Read first +https://pinout.xyz/pinout/1_wire +https://www.raspberrypi-spy.co.uk/2018/02/enable-1-wire-interface-raspberry-pi/ + +For grafana Influx: +https://pimylifeup.com/raspberry-pi-grafana/ +https://pimylifeup.com/raspberry-pi-influxdb/ + + +## Hardware + +Connect the DS18B20 to the raspberry pi +Raspi - DS18B20 +3V3 -> VIN +GND -> GND +GPIO 4 -> DATA + +Rember to add a 4K7ohm pull-up resistor between VIN and DATA on the sensor! ## Installation + +Enable i2c in raspi-config + + Copy the files (as root!) report_temperature.service/report_temperature.timer from ./etc/systemd/system to your system /etc/systemd/system Now tell systemd that you have added new files: @@ -19,3 +41,18 @@ If you want the script to be stores elsewhere (not in /home/pi/tempsense/.) then Just change the line: ExecStart=/home/pi/tempsense/temperature_reporter.py +## Configure the script before running. + +in temperature_reporter.py + +comfigure: +' +INFLUX_IP = "" +INFLUX_PORT = 8086 +INFLUX_DB = "" +INFLUX_USER = "" +INFLUX_PASS = "" +' + +You can give the sensors costum names to be reoported by configuring the in the device names: +device_names = {"28-000000000000":"Sensor_Name"} \ No newline at end of file