A MagicMirror² module for Covid19 Vaccination Data for Germany
Using the data from "Berliner Morgenpost":
Using the data from "BMI, RKI":
This module reads data from one of the following sources. The source can be configured in the config file.
"Berliner Morgenpost", https://interaktiv.morgenpost.de/data/corona/rki-vaccinations.json
"Impfdashboard.de, BMG, RKI"
The API can be used without any registration.
The total population for each state for the relative calculation is taken from: Statistisches Bundesamt visited on 2021-02-01.
Go to your MagicMirror's module folder: cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/fhinder/MMM-Covid19-Vaccination.git
Add the module to the modules list in your config file:
{
module: "MMM-Covid19-Vaccination",
position: "top_right",
config:{
reloadInterval: 60*60*1000,
tableClass: "small",
percentage: true,
dataSource: "BMG",
states: [
'Deutschland',
'Berlin',
'Baden-Württemberg',
'Nordrhein-Westfalen'
]
}
},
option | description |
---|---|
reloadInterval | Reload Interval in ms Possible values: number Default value: 3600000 |
tableClass | Table configuration Default value: "small" |
dataSource | Switch to select the data source <Possible values: "Morgenpost" or "BMG" Devault value: "BMG" |
percentage | if true, vaccination progress is calculated in percentage of population. Possible values: true, false Default value : true |
states | Array of states in Germany to be displayed. If the array is empty, all states will be shown. Possible values: array of string Default value: ["Deutschland", "Berlin", "Baden-Würtemberg", "Nordrhein-Westfalen"] |
If an official API for the vaccination in Germany is available, the source can be changed. Please create an issue, if a better API is known.