Skip to content

tttooommm56/MMM-RainForecast-FR

Repository files navigation

MMM-RainForecast-FR

A MagicMirror module to display forecast rain in France.

If a PIR-sensor using MMM-PIR-Sensor module is used, this information will not be updated during screen off.

The infos will also not be updated when no instance of the MMM-RainForecast-FR module are displayed on the screen (for example hidden by using MMM-Remote-Control or any carousel like MMM-Pages). This will allow to reduce the number of requests to the Meteo France API. As soon as one MMM-RainForecast-FR module will be again displayed on the screen, a request will be called to update data.

Installation

Navigate into your MagicMirror's modules folder and execute :

git clone https://github.com/tttooommm56/MMM-RainForecast-FR.git

Enter the new MMM-RainForecast-FR folder and execute :

npm install

Add the module inside config.js placing it where you prefer

Update

In your terminal, go to your MMM-RainForecast-FR module folder and execute :

git pull

Update dependencies :

npm install

Configuration

Option Description
lat Your latitude.
Type: number
lon Your longitude.
Type: number
showText Display rain forecast text.
Type: boolean
Default: true
showGraph Display rain forecast graph.
Type: boolean
Default: true

Here is an example of an entry in config.js

{
	module: 'MMM-RainForecast-FR',
	position: 'bottom_right',
	header: 'Prevision pluie',
	config: {
		lat: 47.369582,
		lon: 1.563980,
		showText: true,
		showGraph: true
	}
}

Screenshot

Screenshot of rain forecast

Notes

Data provided by Météo France and updated every 5 minutes.

About

A MagicMirror module to display forecast rain in France

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published