Update 'README.md'
This commit is contained in:
19
README.md
19
README.md
@@ -1,2 +1,21 @@
|
||||
# DS18B20_raspi
|
||||
|
||||
|
||||
## Installation
|
||||
Copy the files (as root!) report_temperature.service/report_temperature.timer from ./etc/systemd/system to your system /etc/systemd/system
|
||||
|
||||
Now load tell systemd that you have added new files:
|
||||
'systemctl daemon-reload'
|
||||
|
||||
save temperature_reporter.py to /home/pi/tempsense/.
|
||||
|
||||
Enable and start the timer:
|
||||
'systemctl enable report_temperature.timer --now'
|
||||
|
||||
## Store script at a differet location.
|
||||
|
||||
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:
|
||||
ExecStart=/home/pi/tempsense/temperature_reporter.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user