This is a weather module based on the default weatherforecast
module. All credit to the original author.
Icons are Weather Underground Icons.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: "MMM-weather",
position: "top_right",
config: {
// See 'Configuration options' for more information.
location: "Amsterdam,Netherlands",
locationID: "", //Location ID from http://openweathermap.org/help/city_list.txt
appid: "abcde12345abcde12345abcde12345ab" //openweathermap.org API key.
}
}
]
The following properties can be configured:
Option | Description |
---|---|
location |
The location used for weather information. Example: 'Amsterdam,Netherlands' Default value: false Note: When the location and locationID are both not set, the location will be based on the information provided by the calendar module. The first upcoming event with location data will be used. |
locationID |
Location ID from OpenWeatherMap This will override anything you put in location. Leave blank if you want to use location. Example: 1234567 Default value: false Note: When the location and locationID are both not set, the location will be based on the information provided by the calendar module. The first upcoming event with location data will be used. |
appid |
The OpenWeatherMap API key, which can be obtained by creating an OpenWeatherMap account. This value is REQUIRED |
units |
What units to use. Specified by config.js Possible values: config.units = Specified by config.js, default = Kelvin, metric = Celsius, imperial =Fahrenheit Default value: config.units |
updateInterval |
How often does the content needs to be fetched? (Milliseconds) Possible values: 1000 - 86400000 Default value: 600000 (10 minutes) |
animationSpeed |
Speed of the update animation. (Milliseconds) Possible values: 0 - 5000 Default value: 1000 (1 second) |
lang |
The language of the days. Possible values: en , nl , ru , etc ... Default value: uses value of config.language |
fade |
Fade the future events to black. (Gradient) Possible values: true or false Default value: true |
fadePoint |
Where to start fade? Possible values: 0 (top of the list) - 1 (bottom of list) Default value: 0.25 |
initialLoadDelay |
The initial delay before loading. If you have multiple modules that use the same API key, you might want to delay one of the requests. (Milliseconds) Possible values: 1000 - 5000 Default value: 2500 (2.5 seconds delay. This delay is used to keep the OpenWeather API happy.) |
retryDelay |
The delay before retrying after a request failure. (Milliseconds) Possible values: 1000 - 60000 Default value: 2500 |
apiVersion |
The OpenWeatherMap API version to use. Default value: 2.5 |
apiBase |
The OpenWeatherMap base URL. Default value: 'http://api.openweathermap.org/data/' |
currentEndpoint |
The Current OpenWeatherMap API endPoint. Default value: 'weather' |
forecastEndpoint |
The Forecast OpenWeatherMap API endPoint. Default value: 'forecast/daily' |
iconTable |
The conversion table to convert the weather conditions to weather-icons. Default value: view table below |