Skip to content

zeenix/rasp-led-weather

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
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