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

Update README.md

parent 6f6e2921
No related branches found
No related tags found
No related merge requests found
......@@ -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
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