Skip to content
Snippets Groups Projects
Commit 1893361d authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

Update README.md

parent ee025e06
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment