Giter Club home page Giter Club logo

weather-beacon's Introduction


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

weather-beacon's People

Contributors

vrachieru avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.