A homebridge temperature sensor for displaying the weather at your current location.
- Install Homebridge using:
npm install -g homebridge
- Install this plugin using:
npm install -g homebridge-weather
- Get an API-Key from openweathermap.org
- Find your city (make sure the query only returns a single result).
- Update your Homebridge
config.json
using the sample below.
{
"accessory": "Weather",
"apikey": "YOUR_KEY_HERE",
"location": "Stuttgart,de",
"name": "OpenWeatherMap Temperature"
}
Fields:
accessory
must be "Weather" (required).apikey
API-Key for accessing OpenWeatherMap API (required).location
location query string (resembles to q-parameter) (required).name
is the name of the published accessory (required).