Update 'README.md'
This commit is contained in:
42
README.md
42
README.md
@@ -1,21 +1,21 @@
|
|||||||
# DS18B20_raspi
|
# DS18B20_raspi
|
||||||
|
|
||||||
## Read first
|
## Read first
|
||||||
https://pinout.xyz/pinout/1_wire
|
https://pinout.xyz/pinout/1_wire
|
||||||
https://www.raspberrypi-spy.co.uk/2018/02/enable-1-wire-interface-raspberry-pi/
|
https://www.raspberrypi-spy.co.uk/2018/02/enable-1-wire-interface-raspberry-pi/
|
||||||
|
|
||||||
For grafana Influx:
|
For grafana Influx:
|
||||||
https://pimylifeup.com/raspberry-pi-grafana/
|
https://pimylifeup.com/raspberry-pi-grafana/
|
||||||
https://pimylifeup.com/raspberry-pi-influxdb/
|
https://pimylifeup.com/raspberry-pi-influxdb/
|
||||||
|
|
||||||
|
|
||||||
## Hardware
|
## Hardware
|
||||||
|
|
||||||
Connect the DS18B20 to the raspberry pi
|
Connect the DS18B20 to the raspberry pi
|
||||||
Raspi - DS18B20
|
Raspi - DS18B20
|
||||||
3V3 -> VIN
|
3V3 -> VIN
|
||||||
GND -> GND
|
GND -> GND
|
||||||
GPIO 4 -> DATA
|
GPIO 4 -> DATA
|
||||||
|
|
||||||
Rember to add a 4K7ohm pull-up resistor between VIN and DATA on the sensor!
|
Rember to add a 4K7ohm pull-up resistor between VIN and DATA on the sensor!
|
||||||
|
|
||||||
@@ -38,21 +38,21 @@ Enable and start the timer:
|
|||||||
|
|
||||||
If you want the script to be stores elsewhere (not in /home/pi/tempsense/.) then you have to edit the file (as root!) /etc/systemd/system/report_temperature.service
|
If you want the script to be stores elsewhere (not in /home/pi/tempsense/.) then you have to edit the file (as root!) /etc/systemd/system/report_temperature.service
|
||||||
|
|
||||||
Just change the line:
|
Just change the line:
|
||||||
ExecStart=/home/pi/tempsense/temperature_reporter.py
|
ExecStart=/home/pi/tempsense/temperature_reporter.py
|
||||||
|
|
||||||
## Configure the script before running.
|
## Configure the script before running.
|
||||||
|
|
||||||
in temperature_reporter.py
|
in temperature_reporter.py
|
||||||
|
|
||||||
comfigure:
|
comfigure:
|
||||||
'
|
'
|
||||||
INFLUX_IP = ""
|
INFLUX_IP = ""
|
||||||
INFLUX_PORT = 8086
|
INFLUX_PORT = 8086
|
||||||
INFLUX_DB = ""
|
INFLUX_DB = ""
|
||||||
INFLUX_USER = ""
|
INFLUX_USER = ""
|
||||||
INFLUX_PASS = ""
|
INFLUX_PASS = ""
|
||||||
'
|
'
|
||||||
|
|
||||||
You can give the sensors costum names to be reoported by configuring the in the device names:
|
You can give the sensors costum names to be reoported by configuring the in the device names:
|
||||||
device_names = {"28-000000000000":"Sensor_Name"}
|
device_names = {"28-000000000000":"Sensor_Name"}
|
||||||
Reference in New Issue
Block a user