Skip to content

MagicMirror module to show historical COVID19 incidence rate per german district

License

Notifications You must be signed in to change notification settings

lavolp3/MMM-COVID19-Inc

Repository files navigation

MMM-COVID19-Inc

A MagicMirror module showing last days COVID19 incidence rates.
Uses data from RKI.
Only available for Germany

Installation

  1. Navigate into your MagicMirror's modules folder and execute git clone https://github.com/lavolp3/MMM-COVID19-Inc.git.
  2. Navigate into the module folder and install npm dependencies: cd MMM-COVID19-Inc && npm install
  3. Add the module in config.js placing it where you prefer.
{
    module: "MMM-COVID19-Inc",
    position: "top_right",   // see mirror settings for options
    header: "Inzidenzen",
    config: {
        width: 400,
        days: 7,
        districts: ['Berlin', 'Hamburg'],
        chartType: "line",  //use "line" or "bar"
        showGraph: true,
        showMap: true,
        showRanks: true,
        ranks: 5,
    },
},

Config options

Option Description
chartType Type of chart
Type: string
Values: 'line', 'bar'
Default: "line"
width Width of the graph
Type: Integer
Default: 400
chartHeight Height of the chart
Type: Integer
Default: 300
days Number of days to show
Type: Integer
Default: 7
districts Array with districts to show (see below!)
Type: array
Values:['region1', 'region2', ...]
Default: ['Berlin', 'Hamburg']
showYAxis Show Y-Axis of chart
Type: boolean
Default: false
showGraph Show graph of seleced regions
Type: boolean
Default: true
showMap Show heatmap of Germany
Type: boolean
Default: true
mapWidth Control the maps width/height with this
Type: integer
Default: 250
showRanks Show ranks of Regions with highest/lowest Incidence rates
Type: boolean
Default: true
ranks Number of entries with highest/lowest Incidence
Type: integer
Default: 5
debug Debug mode (increased console output)
Type: boolean
Default: false

Districts

You can have the module search for districts (Landkreise) by just including the name of the district.
If it doesn't show on the graph, you probably haven't used the proper name of the district.
E.g. "Wesel" will work (Kreis Wesel). "Moers" will not (part of "Kreis Wesel").

Screenshot

Incidence rates Screenshot

Source

Data provided by api.corona-zahlen.org, provided by Marlon Lückert
Thanks Marlon!

About

MagicMirror module to show historical COVID19 incidence rate per german district

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published