diff --git a/README.md b/README.md index fcb1c75435fb395a2f61e17f156b842c7acd6446..27447a8d45fef75a7a77eb40a722776910d63c39 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,22 @@ Then reboot the Raspberry Pi. ## Installation -Make sure that PHP is installed on 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: +``` +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 +``` -Then add the files from this project to `/home/pi/sensor` and add the following crontab using `sudo crontab -e`. +and add the following crontab using `sudo crontab -e`. ``` @reboot php /home/pi/sensor/updateSensor.php ``` \ No newline at end of file