Under APIs & Services make sure Pollen API and Maps JavaScript API (last one only needed if you enable map view in this component) are enabled
Go to your modules folder Execute the following command: git clone https://github.com/martijndoes/MMM-GPollenAlter your config.js (see next chapter) to display the module
Key | Default | Description |
---|---|---|
mode | table | REQUIRED. Can be one of either two values: table or map. Table will display a table with the forecast for x number of days. Map will display a google map with colored overlay showing you were the high concentrations of pollen are. |
googleApiKey | [YOURAPIKEY] | REQUIRED. Your google API key (see prerequisites). |
longitude | 52.3108558 | REQUIRED. The longitude of the location that you want to retrieve the information for. |
latitude | 4.950632 | REQUIRED. The latitude of the location that you want to retrieve the information for. |
language | en | The language in which it will be displayed. Some of the labels are translated by google (for example the pollen types), others are translated by the module. At the moment this module supports english, dutch, german, french and spanish. This setting will translate the labels that are retrieved from google, for the other translations it will use the main language setting in your config. |
updateInterval | 60 | In minutes. Amount of minutes between refreshing the data. Do not set this value too low, it doesn't add much value and it will greatly increase the number of API calls being made to your account |
days | 3 | If the module is in table display mode this decides the number of days of forecase that are being displayed. |
zoomLevel | 9 | If module is set to "map" mode this will decide how much the map is zoomed in. Value can be between 1 and 13, where 1 will be the most zoomed out (will display entire continent) and 13 (will display a small city) |
rotateInterval | 10 | In seconds. If module is set to "map" mode it will alternate between the three pollen types. This decides the number of seconds between each alternation. Changing this value will NOT affect the number of API calls being made. |