Coder Social home page Coder Social logo

audlik / homebridge-weather-station-extended Goto Github PK

View Code? Open in Web Editor NEW

This project forked from naofireblade/homebridge-weather-plus

0.0 0.0 0.0 1.34 MB

A comprehensive weather station plugin for homebridge.

License: MIT License

JavaScript 100.00%

homebridge-weather-station-extended's Introduction

homebridge-weather-station-extended

This is a weather station plugin for homebridge that features current observations and daily forecasts. You can download it via npm.

If you update from a version before 1.0.0 you have to adapt your config.

Feel free to leave any feedback here.

Current Observations

The following current observation values can be displayed and used in HomeKit rules. Use a 3rd party app like Elgato Eve to see all values, translations and some nice icons.

  • Temperature
  • Air Pressure
  • Relative Humidity
  • Rain Last Hour
  • Rain All Day
  • UV-Index
  • Solar Radiation
  • Visibility
  • Weather Condition
  • Weather Condition Category (Sun = 0, Clouds = 1, Rain = 2, Snow = 3)
  • Wind Direction
  • Wind Speed
  • Wind Speed Maximum
  • Observation Station
  • Observation Time

Forecast

The plugin also features a daily forecast for today and the next 3 days. The following forecast values can be displayed.

  • Temperature
  • Temperature Minimum
  • Relative Humidity
  • Chance Rain
  • Rain All Day
  • Weather Condition
  • Weather Condition Category
  • Wind Direction
  • Wind Speed
  • Wind Speed Maximum

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-weather-station-extended
  3. Gather a free developer key for Weather Underground here.
  4. Update your configuration file. See the samples below.

Configuration

Add the following information to your config file. Make sure to add your API key and provide your city or postal code.

Simple

"platforms": [
	{
		"platform": "WeatherStation",
		"name": "Weather Station",
		"key": "XXXXXXXXXXXXXXX",
		"location": "78613"
	}
]

Advanced

The following config contains advanced optional settings that must not be specified.

The parameter interval sets the interval (minutes) in which the weather will be updated from Weather Underground. The default value is 4 minutes, which fits in the maximum of 400 updates per day for free accounts.

The parameter forecast sets which forecasts you want to see. You can set one of these three values: none, today, 3days. The default value is 3days.

You can also use a station from the Personal Weather Station Network to receive weather information. Just enter pws:YOURID in the location parameter.

"platforms": [
	{
		"platform": "WeatherStation",
		"name": "Weather Station",
		"interval": "4",
		"key": "XXXXXXXXXXXXXXX",
		"location": "pws:ICALIFOR123",
		"forecast": "3days"
	}
]

Example use cases

  • Switch on a blue light in the morning when the chance for rain is above 20% today (or white when the forecast condition is snow / yellow when it's sunny).
  • Start your automatic garden irrigation in the evening depending on the amount of rain today and the forecast for tomorrow.

Hint: To trigger rules based on time and weather condition you will need a plugin like homebridge-delay-switch. Create a dummy switch that resets after some seconds. Set this switch to on with a timed rule. Then create a condition rule that triggers when the switch goes on depending on weather conditions of your choice.

Screenshot

Current Conditions in Elgato Eve app

(c) Screenshot is taken from Elgato Eve app

Contributors

This plugin is a fork of homebridge-weather-station which is a fork of homebridge-wunderground.

homebridge-weather-station-extended's People

Contributors

naofireblade avatar kcharwood avatar gatopharaoh avatar xfjx 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.