MMM-pollen

March 4, 2018 ยท View on GitHub

A MagicMirror module to display current pollen intensity and forecast for the next day based on data from the "deutscher wetter dienst" (dwd).

Preview

preview

preview

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
	{
		module: "MMM-pollen",
		position: "bottom-center",	// This can be any of the regions.
		config: {
			// See 'Configuration options' for more information.
			locationLongitude: 6.77,
			locationLatitude: 51.4,
		}
	}
]

Configuration options

The following properties can be configured:

OptionDefaultDescription
locationLongitudeLongitude for the location for which the pollen intensity will be shown
locationLatitudeLatitude for the location for which the pollen intensity will be shown
noEmptyLinestrueShow only lines in the table for pollen with intensity greater than none.
showPollenAreatruePrints forecast area above intensity table.
pollenLayersall typesList of pollen (see below) for which the intensity will be shown. Specify as a comma separated list, no spaces between values!
Tag for configurationEnglish nameGerman name
Pollenflug_HaselHazelHasel
Pollenflug_ErleAlderErle
Pollenflug_EscheAshEsche
Pollenflug_BirkeBirchBirke
Pollenflug_GraeserGrassGraeser
Pollenflug_RoggenRyeRoggen
Pollenflug_BeifussMugwortBeifuss
Pollenflug_AmbrosiaRagweedAmbrosia

Installation of module and dependencies

  • git clone https://github.com/devduisburg/MMM-pollen.git into ~/MagicMirror/modules directory.

Add to Config.js

{
    module: "MMM-pollen",
position: 'middle_center',
    header: 'pollen forecast',
config: {
		locationLongitude: 6.77,
		locationLatitude: 51.4,
		noEmptyLines: true,
		showPollenArea: true,
		pollenLayers: "Pollenflug_Hasel,Pollenflug_Erle,Pollenflug_Esche,Pollenflug_Birke,Pollenflug_Graeser,Pollenflug_Roggen,Pollenflug_Beifuss,Pollenflug_Ambrosia"
    }
},

Coming soon

  • Retrieve long/latitude from ZIP code
  • Nicer icons