A MagicMirror² module for RKI-Covid19 Data
This module depends on the following API:
https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0
The API can be used without any registration
Go to your MagicMirror's module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/fhinder/MMM-RKI-Covid19.git
Execute npm install in the module’s directory:
cd MMM-RKI-Covid19
npm install
Add the module to the modules list in your config file:
{
module: "MMM-RKI-Covid19",
position: "top_right",
header: "RKI-Data",
config:{
reloadInterval: 60*60*1000,
showUpdateTimestampInHeader: false,
showUpdateTimestampInFooter: false,
tableClass: "small",
counties: [
'SK Köln',
'SK Berlin Mitte',
'SK München'
],
states: [
'Nordrhein-Westfalen',
'Berlin',
'Baden-Würtemberg'
]
}
},
option | description |
---|---|
reloadInterval | Reload Interval in ms Possible values: number Default value: 3600000 |
showUpdateTimestampInHeader | Boolean to switch "last update time" in header on or off. If the last update is older than 24hours, the last update time is shown independent of this switch to indicate outdated data. Possible values: true, false |
showUpdateTimestampInFooter | Boolean to show "last update time" below the table. Possible values: true, false |
tableClass | Table configuration . Check the general MagicMirror css file for possible values. Default value: "small" |
counties | Array of counties to be displayed. List of counties can be found in the API manual (check dependencies). Possible values: array of string Default value: ['SK Köln', 'SK Berlin Mitte', 'SK München'] |
states | Array of states to be displayed. List of states can be found in the API manual (check dependencies). Possible values: array of string Default value: ['Nordrhein-Westfalen', 'Berlin', 'Baden-Würtemberg'] |
The module is in WIP, but the basic functionality is available.