UV Index from openweathermap.org for MagicMirror².
To use this module, go to the modules subfolder of your mirror and clone this repository. You will need a subscription to the Openweathermap OneCall API 3.0. The first 1000 calls are free, so personal use should incur no cost. Set the rate limit to 999 per day to make sure you don't get charged, even if the module or MagicMirror were to get stuck in a loop somehow.
git clone https://github.com/thariq-shanavas/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 language!
- Added Dutch language ISSUE
- Introduced changelog and version information
- First working version of module