Skip to content

Weather conditions awareness through smart lighting.

License

Notifications You must be signed in to change notification settings

vrachieru/weather-beacon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Version Version
Weather condition awareness through smart lighting

This project aims to provide an easy way of being aware of upcoming weather conditions before you leave home in the morning.
Forecasts are relayed through smart lights via color coded messages regarding temperature and weather conditions.
For example an alternating blue light (signaling a lower temperature) and purple light (signaling rainy conditions).

Features

  • Color coded temperature
  • Color coded weather conditions

Configuration

Configuration is done via the config.yaml file.
Please take a look there for a full working example.

Darksky

All usage requires a Dark Sky API key, which you can obtain from the Dark Sky developer site.
Provide the timeframe for the displayed forecast as an integer between 0 (current conditions) and 48 representing the number of hour into the future as well as the location for the forecast.

darksky: 
  apikey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

forecast:
  timeframe: 12 # in hours 0-48
  location:
    latitude: 47.1615
    longitude: 27.5841

Lightshow

lightshow:
  brightness: 100 # beacon brightness
  transition:
    duration: 2 # duration of transition between colors
    delay: 60 # time between color transitions
  temperature:
    colors:
      - name: cold # descriptive name
        rgb: [0, 147, 255] # color for temperature range
        min: 10 # minimum temperature 
        max: 20 # maximum temperature
        default: true # is default color for when current temperature is not in any configured ranges
  condition: 
    colors:
      - name: clear or mostly clear # descriptive name
        rgb: [185, 255, 179]  # color for condition set
        icon: # list of condition triggers for current color
          - clear-day
          - clear-night
          - partly-cloudy-day
          - partly-cloudy-night
        default: true # is default color for when current condition is not in any configured sets

Beacons

Currently supported beacons are only Yeelight smart bulbs.

beacons:
  - name: bedroom lamp
    type: yeelight
    ip: 192.168.xxx.xxx

License

MIT