Rain notifier for the Raspberry PI
This simple python script runs on a Raspberry Pi. It runs at set intervals, checking a weather API. You can set longitude & latitude coordinates to recieve notifications to see if weather is due near a set location over the next period.
This is achieved by employing the Wunderground API, a python script and a Raspberry Pi with a PiBord LED setup, or similar hardware.
-
Get yourself an RPI with Raspbian and a PiBorg LED setup.
-
Install PiBorg by following the instructions at Piborg.
-
Go to Wundeground & get yourself an API key.
-
Work out the coordinates that you'd like to get notifications for.
-
Enter all three values (API, Lon, Lat) into the URL in line 9 of forecast.py
-
Set pop value (% chance of rain 0 - 100) on line 21 of forecast.py
-
Setup up a cron job to run the script at intervals.
-
Your light should now turn on everytime the script runs and the percentage chance of rain occuring in your location is higher than the pop value you have set.
-
Find a pretty glass structure to place your pi within and put it on a shelf / rain jacket closet.
-
Wait for rain....