SteveCossy / IOT

Range of Internet of Things - related projects
1 stars 3 forks source link

Read temperature from GPIO4 #13

Open SteveCossy opened 4 years ago

SteveCossy commented 4 years ago

https://mail.google.com/mail/u/0/?shva=1#search/from%3Aandrew.hornblow%40gmail.com+DS18B20/QgrcJHrhzdHRftRtPWHHcFjkpSCksdptnbq https://photos.google.com/share/AF1QipOzhjjns1ariyZ0api1vixlLBpcUajWNTfuj-FQWKSOFaVUD3esgPvlzu02WsMG-g?key=cFpReVI0NW5OUXVzdDVORnUxbThkVkgtSHRsMTF3 http://raspi.tv/2013/rpi-gpio-basics-6-using-inputs-and-outputs-together-with-rpi-gpio-pull-ups-and-pull-downs#pullup http://git.pcsupport.ac.nz/CosSte/MQTT_Whitireia/blob/master/MQTT_to_CSV.py https://www.digitemp.com/documentation.shtml https://www.raspberrypi.org/forums/viewtopic.php?t=150197 https://www.raspberrypi.org/forums/viewtopic.php?t=128776

SteveCossy commented 4 years ago

sudo nano /boot/config.txt Add the line: dtoverlay=w1-gpio

pip3 install RPi.GPIO python3 wpu.py Set up a cron job to run python3 wpu.py at reboot.

@reboot python3 /home/pi/IOT/LoRaReAd/wpu.py
* * * * * /home/pi/IOT/MQTTupload/Run-If-Needed-ZIP.sh