Skip to content

Magic Mirror Module to forcast german precipitation as a rain radar.

License

Notifications You must be signed in to change notification settings

Linas1234/MMM-Regenradar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-Regenradar

This is a module for MagicMirror².

This module will show a map as a gif with the weather data provided by Morgenwirdes.

Note: It only work for locations in Germany.

Installation

  1. Navigate to your MagicMirror's modules folder, and run the following command:

    git clone https://github.com/Linas1234/MMM-Regenradar.git

  2. Add the module and a valid configuration to your config/config.js file

Using the module

This is an example configuration for your config/config.js file:

var config = {
    modules: [
       {
		module: "MMM-Regenradar",
		position: "top_right",
		config: {
			width: "400px",       // rain radar width (in px or %)
			height: "auto",	      // rain radar height (in px or %)
			plz: "13156",	      // german postcode
			delay: "70",          // delay of the gif frames 
			type: "1",            // type modus (0= rain clouds are usually green 1= rain clouds are usually blue)
			zoomlvl: "4",	      // zoom level (1= whole germany)
			bar: "0",             // bar modus (0= whithout bar 1= bar is on) 
			map: "0",	      // map modus (0= white, only city names 1= colored, with details)
			textcol: "ffffff",    // text color (in hex color code) 
			bgcol: "00000",	      // background color (in hex color code)
			updateInterval: 5,    // update interval (in minutes)
			}
       },
    ]
}

Configuration options

Option Description
width *Required The rain radar width (in px or %)

Example: 40%
Example: auto
Default: 400px
height *Required The rain radar height (in px or %)

Example: 40%
Example: 500px
Default: auto
plz *Required Your german postcode of the location you want to display

Example: 13156
delay *Optional The delay of the gif frames

Possible values: any milliseconds
Default: 70
type *Optional The type of the color of the clouds

green rain cloud: 0
blue rain clouds: 1
zoomlvl *Optional The zoom level of the map

Possible values: boolean
Default: 4
bar *Optional Ther modus of the timebar

without bar: 0
with bar: 1
Default: 0
map *Optional The type of the map (wich map in the background)

white map with city names: 0
colord map with details: 1
Default: 0
textcol *Optional The text color

Possible values: any hex code color
Default: ffffff (white)
bgcol *Optional The background color

Possible values: any hex code color
Default: 00000 (black)
updateInterval *Optional The update interval of the map in minutes

Default: 5

Screenshot

zoomlvl: 4

zoomlvl 4

whole germany (zoomlvl: 1):

zoomlvl 1

About

Magic Mirror Module to forcast german precipitation as a rain radar.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published