Skip to content

fhinder/MMM-RKI-Covid19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A MagicMirror module for RKI-Covid19 Data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published