From f5103e00631eb41a81acc6808fd4ece890036296 Mon Sep 17 00:00:00 2001 From: Zandor Smith <info@zsinfo.nl> Date: Tue, 2 Jan 2018 15:29:00 +0000 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 15a8380..fcb1c75 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ This is a simple script written in PHP to submit the temperature read from a DS18B20 sensor to CH Monitor. -## Setup +## Preparation -You will need to setup the pi to add OneWire support. +You will need to setup the Raspberry Pi to add OneWire support. Start by adding the following line to `/boot/config.txt` at the very bottom: ``` dtoverlay=w1-gpio @@ -14,4 +14,16 @@ Then edit `/etc/modules` and add the following 2 lines at the very bottom: ``` w1-gpio w1-therm +``` + +Then reboot the Raspberry Pi. + +## Installation + +Make sure that PHP is installed on the Raspberry Pi. + +Then add the files from this project to `/home/pi/sensor` and add the following crontab using `sudo crontab -e`. + +``` +@reboot php /home/pi/sensor/updateSensor.php ``` \ No newline at end of file -- GitLab