UV Index from openweathermap.org for MagicMirror²
To use this module, go to the modules subfolder of your mirror and clone this repository.
git clone https://github.com/Sketusky/MMM-uv-index
To run the module, you need to add the following data to your config.js file.
{
module: 'MMM-uv-index',
position: 'bottom_right',
header: 'Current UV Index',
config: {
lat: 52.229771, // lattitude http://openweathermap.org/help/city_list.txt
lon: 21.011780, // longtitude, Warsaw
appid: 'xyz', // openweathermap.org api key
colors: true,
}
}
You may want to set the following options in the config section as well:
Option | Description |
---|---|
lat |
Lattitude value from your location to show UV Index. This is REQUIRED. |
lon |
Longtitude value from your location to show UV Index. This is REQUIRED. |
animationSpeed |
Speed of the update animation. (Milliseconds) Possible values: 0 to 5000 Default value: 1000 (1 second) |
colors |
Makes UV scale name colorful Possible values: true or false Default value: true |
updateInterval |
How often would you like to update data? (Miliseconds) Default value: 3600000 (1 hour)Used Scale |
English
Dutch
Polish
Feel free to open new issue and submit translation for your langauge!
Added Dutch language ISSUE
Introduced changelog and version information
First working version of module