Coder Social home page Coder Social logo

vader's Introduction

Väder

Väder exposes the "feels like" temperature and relative humidity as returned by the Wunderground API as a temperature and a humidity sensor to HomeKit.


The Wunderground API has been terminated: https://apicommunity.wunderground.com/weatherapi/topics/end-of-service-for-the-weather-underground-api. As such this partciular tool no longer works and the repository has been archived.


Installation

The installation is pretty simple, go install it, get an API token for Wunderground and then point it at your MQTT broker.

go install github.com/hemtjanst/vader/cmd/vader
vader -token XYZ -mqtt.address broker.mydomain.tld:1883

The free plan on Wunderground allows for 500 calls per day and 10 calls per minute. väder defaults to 1 call per hour, so there's plenty left to play around with.

Please note that using go install will grab the latest version of all the dependencies which can cause problems. As such a Gopkg.toml and associated lock file is provided to be used with dep ensure. After that you can go build -o vader cmd/vader/main.go.

Configuration

It's required to pass in -token which has to be a Wunderground API token.

By default we will refresh the weather data once per hour. It's currently not possible to configure it to poll more often but you can decrease the update frequency by passing in an integer bigger than 1 to -refresh.

See the --help for all possible options.

Attribution

vader's People

Contributors

daenney avatar

Stargazers

 avatar

Watchers

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