From 1893361d145b198f3175535afada048fe3499f3d Mon Sep 17 00:00:00 2001 From: Zandor Smith <info@zsinfo.nl> Date: Wed, 3 Jan 2018 18:36:29 +0000 Subject: [PATCH] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 46b4710..27447a8 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,19 @@ Then reboot the Raspberry Pi. Make sure that PHP, PHP-cURL and Git is installed on the Raspberry Pi. -Then clone the files from this project to `/home/pi/sensor` using the following command; +Then clone the files from this project to `/home/pi/sensor` using the following command: ``` git clone http://git.zsinfo.nl/CHMonitor/DS18B20.git /home/pi/sensor ``` +Edit the sensorId and apiKey values in the `updateSensor.php` file to the values supplied to you on the CH Monitor panel. + +Test if the script finds the temperature sensor by running the following command. Exit the script using `ctrl + c` +``` +php /home/pi/sensor/updateSensor.php +``` + + and add the following crontab using `sudo crontab -e`. ``` @reboot php /home/pi/sensor/updateSensor.php -- GitLab