Skip to content

Think about your doorbell, it rings when a button is pressed, signifying a person wants to see you. Those times when it is in use, it’s invaluable. Now imagine the person at your door is actually a visiting rain cloud, who has the courtesy to warn you that rain is on the way.

License

Notifications You must be signed in to change notification settings

langphil/Rain-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is it going to rain near me?

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.

  1. Get yourself an RPI with Raspbian and a PiBorg LED setup.

  2. Install PiBorg by following the instructions at Piborg.

  3. Go to Wundeground & get yourself an API key.

  4. Work out the coordinates that you'd like to get notifications for.

  5. Enter all three values (API, Lon, Lat) into the URL in line 9 of forecast.py

  6. Set pop value (% chance of rain 0 - 100) on line 21 of forecast.py

  7. Setup up a cron job to run the script at intervals.

  8. 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.

  9. Find a pretty glass structure to place your pi within and put it on a shelf / rain jacket closet.

  10. Wait for rain....

About

Think about your doorbell, it rings when a button is pressed, signifying a person wants to see you. Those times when it is in use, it’s invaluable. Now imagine the person at your door is actually a visiting rain cloud, who has the courtesy to warn you that rain is on the way.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages