Skip to content
MagicMirror module for Dutch rainforecast based on Buienradar public api
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Dec 30, 2017
MMM-rainfc.css Rename completed, css labels added Jan 27, 2018
MMM-rainfc.js
README.md
jquery.sparkline.min.js
node_helper.js First Commit Dec 30, 2017
screenshot2.png First Commit Dec 30, 2017

README.md

MMM-Rainfc

Magic Mirror - Dutch Rain Forecast

Based on a Dutch public api for rain forecast (BuienRadar). call

Installation

Navigate into your MagicMirror's modules folder and execute 'git clone https://github.com/73cirdan/MMM-rainfc'

Using the module

This module can show the rainforecast in your neighbourhood using longitude and latitude.

Config options

The following properties can be configured:

First Header Second Header
lat the latitude of your location
lon the longitude of your location
width controls the size of the module
height controls the size of the module
lineWidth the thicknes of the line
lineColor the color of the line
fillColor the color of the area under the line
maxPower the maximum number on the y axis
rainText The text you want to display in front of the last time received in the last call
noRainText the text you want to display if no rain is expected untill the last time in the last call.
nrOfTimeLabels optional value, adds a number of time labels under the graph, advised values: 2-5. If non existant or 0 reverts to default behaviour.

Example config.js content for this module

	{
		module: "MMM-rainfc",
		position: "top_right",
            	header: "Rain forecast",
		config: {
			lat: "52.37",
			lon: "4.90", 
			width: 200,
			height: 150,
			lineWidth: 2,
			lineColor: "#e0ffe0",
			fillColor: "#e0ffe0",
			maxPower: 300,
			rainText: "Tot: ",
			noRainText: "Geen regen tot: ",
			nrOfTimeLabels: 5 // advised values: 2-5
		}
	},

Dutch Explanation of the Api and Source

Data is provided by buienradar (https://www.buienradar.nl/overbuienradar/gratis-weerdata ), permission for non commercial use. Excerpt from the site:

(1.0) Neerslagdata op basis van coördinaten

Op basis van de door u gewenste coördinaten (latitude en longitude) kunt u de neerslag tot twee uur vooruit ophalen in tekstvorm. De data wordt iedere 5 minuten geüpdatet. Op deze pagina kunt u de neerslag in tekst vinden. De waarde 0 geeft geen neerslag aan (droog), de waarde 255 geeft zware neerslag aan. Gebruik de volgende formule voor het omrekenen naar de neerslagintensiteit in de eenheid millimeter per uur (mm/u):

Neerslagintensiteit = 10^((waarde-109)/32)

Ter controle: een waarde van 77 is gelijk aan een neerslagintensiteit van 0,1 mm/u.

The MIT License (MIT)

Copyright 2017 Cirdan

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.