Adding a light sensor to Raspberry Pi online wather station

Based on my online weather station, I made an upgrade, adding a light sensor using a photoresistor based on this Adafruit tutorial.

 

raspberry_pi_photocell

raspberry_pi_photocell

Picture of the hole setup:

Rasbperry Pi wather station

Rasbperry Pi wather station

The adding of a light sensor implies some modifications to put the data online, first, the raspberry pi photocell script that reads the amout of light (0 is no light and 32 is very high illumination)

Some modifications in the crontab:

wget [URL]?data=`date +\%Y\%m\%d\%H\%M\%S`,`/home/pi/Adafruit_Python_DHT/examples/dht22.py 2302 4`,`/home/pi/photocell.py

And a last but not least, minnor changes on the web client to show data:

Online weather station graph

Online weather station graph

 

Posted in DIY, Electronics, Programming, Python, Raspberry Pi Tagged with: , , , ,
0 comments on “Adding a light sensor to Raspberry Pi online wather station
2 Pings/Trackbacks for "Adding a light sensor to Raspberry Pi online wather station"

Leave a Reply

Your email address will not be published. Required fields are marked *

*