Skip to content

Latest commit

 

History

History
65 lines (56 loc) · 2.39 KB

README.md

File metadata and controls

65 lines (56 loc) · 2.39 KB

MMM-RKI-Covid19

A MagicMirror² module for RKI-Covid19 Data

Example

Dependencies

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

Installation

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'
		]
	}
},

Configuration

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 Default value: true
showUpdateTimestampInFooter Boolean to show "last update time" below the table.
Possible values: true, false Default value: 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']

Development Status

The module is in WIP, but the basic functionality is available.