Skip to content

UV Index from openweathermap.org OneCall API 3.0 for MagicMirror²

License

Notifications You must be signed in to change notification settings

thariq-shanavas/MMM-uv-index

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-uv-index

UV Index from openweathermap.org for MagicMirror².

screenshot

Usage

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

Configuration

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

Supported languages

  • English
  • Dutch
  • Polish

Feel free to open new issue and submit translation for your language!

Known Issues

Changelog

1.0.1 - 07.05.2018

  • Added Dutch language ISSUE
  • Introduced changelog and version information

1.0.0 - 03.05.2018

  • First working version of module

About

UV Index from openweathermap.org OneCall API 3.0 for MagicMirror²

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.2%
  • CSS 4.8%