Skip to content

martijndoes/MMM-GPollen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-GPollen

Overview

This module has two options: either it can display a table with the pollen forecast for a number of days in your area or it can display a google maps map with a colored overlay. It uses the google API to retrieve this information. Not all countries/regions are supported (but most are). See this list for an overview of the supported countries.

map mode

table mode

Prerequisites

Go to https://console.cloud.google.com/google/maps-apis/start and use your google account to request an API key. You can get 200$ a month of free API calls with a billing account and that should be more than enough to use this component. Make sure you set quotas and set up notifications so you will never be charged. I cannot be held accountable if you set anything up incorrectly and go over your free credits.

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

Installation

Go to your modules folder Execute the following command: git clone https://github.com/martijndoes/MMM-GPollen

Alter your config.js (see next chapter) to display the module

Configuration

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published