-
Notifications
You must be signed in to change notification settings - Fork 7
/
README.en.txt
47 lines (25 loc) · 3.8 KB
/
README.en.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
OpenWeatherMap-app for Homey
This app allows you to poll the OpenWeatherMap (OWM) API for localised weather data and use this in your Homey home automation flows. Several instances (locations) can run simultaneously. Note that the current version is no longer backward compatible with Homey V1.
Note that it seems OpenWeatherMap is restricting more and more API's to paying customers. This means that for the current weather, 5 and 16 forecast API's, your API key may or may not work.
The good news is that OWM has made available a new API: the "Onecall API". In the first version using the Onecall API includes the current weather data, hourly and daily forecasts will be added in upcoming versions.
Onecall API (new)
This table includes data for the current weather as well as forecasts for the coming hours and days. It also includes UV data. In the current version of the app only the current weather data is included, upcoming versions will also include forecast data.
Current weather
The 'current weather' data comes from the OWM current weather data, refer to http://openweathermap.org/current. It includes visibility, sunrise and sunset data which are not included in the forecast tables. Note that the max. and min. temperatures in the current data indicate the possible range in which the actual temperature is expected, it can be seen as a measure for the standard deviation of the current temperature.
Forecast up to 5 days
The five day forecast data (refer to http://openweathermap.org/forecast5) includes forecasts in 3-hour intervals up to 5 days in the future. During pairing you can choose the 3-hour interval you want to have weather data from. Interval 1 gives you data from the currently running 3-hour interval (between one hour ago/two hours ahead) which should be close to the current weather. Interval 8 gives data 24 hours ahead, etc. In this dataset the maximum and minimum temperatures are the expected maximum and minimum temperature, as you would expect.
Long term weather
The long term weather forecast gives data for up to 16 days in the future, in daily intervals (refer to http://openweathermap.org/forecast16). Included in the data is the daily, morning, evening and night temperature.
Please use the community forum for questions and comments related to the app: https://forum.athom.com/discussion/4225/.
Pairing
Settings can be changed after pairing. By default Homey's location is used, optionally a different location can be entered, either by name (city and countrycode, e.g. 'Paris,FR'), or by entering a zip code.
Both methods can be tested by querying the OpenWeathMap site directly. For testing a location by location, enter the following (fill in your own <city,country> combination as well as the API key):
`https://api.openweathermap.org/data/2.5/weather?q=<city,countrycode>&APPID=<API key>`
For testing a zip code, enter the following in a browser (fill in your <zipcode,country> combination as well as the API key):
`https://api.openweathermap.org/data/2.5/weather?zip=<zipcode,country>&APPID=<API key>`
Flow cards
For nearly all parameters trigger and condition cards are included, temperature, precipitation (rain as well as snow), winddirection (beaufort, m/s as well as text), extreme weather events and more.
Requirements
To use the app, you need to get a (free) OpenWeatherMap API key at http://openweathermap.org. A single API key is sufficient for adding dozens of separate instances of the app, for instance for different locations and time periods. Note that accessibility of the OpenWeatherMap API is subject to change. The 16 day forecast used to be freely available (and still is for users with an 'old' API key), however it seems this is no longer the case.
Acknowledgements
The OpenWeatherMap polling is inspired by the 'openweather-apis', refer to https://github.com/CICCIOSGAMINO/openweather-apis.