The weather updates are provided by openweathermap.org, so you need a valid API key.
- Create an account here
- Select a free plan
- From your account select "my API keys" and generate a key.
It's possible to configure the app from both the web UI and the configuration file config_defaults.h
- Paste your API key in the field
API key for Openweathermap.org
- Write the name of the location of your interest in the field
City name
- Write the two letters iso code of the country associated with your location in the field
Country code
. You can search the two letters code of a given country here selectingcountry codes
. - Save
If you want to configure the app without using the web UI you can set the followings values in config_defaults.h:
OPENWEATHERMAP_APIKEY
, the api keyOPENWEATHERMAP_CITY
, city nameOPENWEATHERMAP__STATE_CODE
, the two letter iso code of the country of your interest
If you are not sure about the geocoding you can perform a simple test.
Type in the address bar of your browser: "https://api.openweathermap.org/data/2.5/forecast?q=CITY,STATE&appid=APIKEY&cnt=24 "
substituting CITY
, STATE
and APIKEY
with: city name, two letters code and api key. Beware not to past additional characters, the country code must be separated by a comma from the city name.
If you get an answer like this: {"cod":"200" ...
both api key and location are valid.
After the installation you will notice that there are no updates to show, in order to get the updates, press the top right button update
. A pop-up should appear, the operation will take a few seconds.
The bottom left button allows the user to select:
The / \ and \ / arrows are used to decrease/increase the current selection ( day or update ) .
Visit this link for a more detailed description of each weather condition.