Skip to content
Magic Mirror module
JavaScript CSS
Branch: master
Clone or download
SpoturDeal Merge pull request #3 from mrvanes/patch-1
Scope self locally to prevent global contamination
Latest commit a27c8b0 Apr 25, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Update LICENSE Feb 14, 2018
MMM-rain-forecast.js Update Feb 24, 2019
logoNorain.png Added the module Feb 14, 2018
logoRain.png Changed to a better graphic layout Feb 16, 2018
node_helper.js Scope self locally to prevent global contamination Apr 25, 2019


A MagicMirror module forecast rain in the Netherlands.

This module is originally made by Cirdan, many thanks for his great work. I had to adapt because the sparkline did not work on my Mirror.

I have removed the sparkline and replaced it by a real fast Scalable Vector Graphic the Module has no more dependency on jQuery or Sparkline.


cd MagicMirror/modules
git clone
  1. Navigate into your MagicMirror's modules folder and execute git clone
  2. Add the module inside config.js placing it where you prefer


cd MagicMirror/modules/MMM-rain-forecast
git pull
  1. Navigate to the module
  2. Pull the Update
  3. Restart the Mirror

Update: 24th February 2019 Added Refresh interval (too many request sometimes ended up in not receiving any data.)


Option Description
lat The latitude of your position.
Type: Float
Default: 52.15
lon The longitude of your position.
Type: Float
Default: 5.5
pleaseWait The text while waiting for data..
Type: string
Default: Please wait
noRainText The text displayed if there is no rain.
Type: string
Default: Until %s no rain
Remark: write %s where you like to add the time example Until 17:15 no rain
fillColour Defines the colour of the graphic.
Type: string
Default: #0074d9
Remark: You can use colour names as in HTML like (blue, white, green) or RGB codes like #0074d9 which is bleu colour
refreshInterval Time to wait for refresh
Type: number
Default: 15
Remark: Time to download new data in minutes

Here is an example of an entry in config.js

	module: "MMM-rain-forecast",
	position: "top_right",   // see mirror setting for options
	header: "Expected rainfall", 
	config: {   
                lat: 52.15,
                lon: 5.5,				
		pleaseWait: "Please wait",
		noRainText: "Until %s no rain",
		fillColour: '#0074d9',   // This is a blue color you can also use blue, cyan etc,
		refreshInterval: 15  // Refresh interval in minutes 

Language considerations

There is no language file because only 3 text labels are used and every-one can use their own texts


Display type: details

Screenshot of detail mode

Display type: details

Screenshot of detail mode


Data provided by Buienradar.

  • Update every 10 minutes.


Cirdan For the fantastic base of this module.


2.2 New URL because Buienradar changed on March 27th, 2018

2.1 New graphic fixed color and time labels are now a part of the graphic and added sprintf function to write no rain texts more flexible in different languages.

The MIT License (MIT)

Copyright © 2018 SpoturDeal - Carl

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

You can’t perform that action at this time.