Skip to content

zeenix/rasp-led-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RaspLEDWeather
==============

Just a simple app that shows weather forecast on an RGB LED conneted to GPIO
pins of a Raspberry Pi. It makes use of Geoclue to find the user's location and
libgweather to fetch the weather forecast and gpiozero library to access the
LED.

Here is how it's supposed to behave:

* blink red 3 times, each time weather is updated (first time on launch).
* forecast is updated every hour.
* forecast is shown for every 12 hours, for next 3 days.
* each forecast is shown for 5 seconds.
* blink green N times before showing each forecast, where N is index of
  12 hours. E.g 2 blinks mean the following forecast is for 24 hours from
  now.
* steady unlit LED after each iteration of weather forecast.
* Forecast is shown as colors:
  * yellow: Sunny/Clear sky
  * purple: Cloudy (>= 5 oktas) or foggy
  * cyan:   Light rain
  * blue:   Rain
  * white:  Snow

The pin configuration is set in pins.py. Just update the pin numbers as per your
configuration.

About

Turn an RGB LED into a weather forecast indicator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages