diff --git a/README.md b/README.md index 46b47109a3f2abf9895afc452931c1730ee94486..27447a8d45fef75a7a77eb40a722776910d63c39 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