2020-07-26 10:50:34 +02:00
|
|
|
# Module: MMM-covid19
|
|
|
|
|
|
|
|
This module displays COVID-19 data aggregated by [rp-online](https://rp-online.de).
|
|
|
|
|
2020-07-26 15:35:36 +02:00
|
|
|

|
|
|
|
|
2020-07-26 10:50:34 +02:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
1. Navigate to the `MagicMirror/modules` directory.
|
|
|
|
1. Clone the module
|
|
|
|
1. Configure the module as per below
|
|
|
|
1. Restart MagicMirror
|
|
|
|
|
|
|
|
|
|
|
|
## Using the module
|
|
|
|
```javascript
|
|
|
|
modules: [
|
|
|
|
{
|
|
|
|
module: "MMM-covid19",
|
|
|
|
position: "top_left",
|
|
|
|
config: {
|
|
|
|
// The config property is optional.
|
|
|
|
// See 'Configuration options' for more information.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
## Configuration options
|
|
|
|
|
|
|
|
| Option | Description |
|
|
|
|
| ------ | ----------- |
|
|
|
|
| `region` | Choose region to be fetched <br> **Default:** `Bonn` |
|
|
|
|
| `updateInterval` | How often does the content needs to be fetched? (Milliseconds) <br> **Default:** 10800000 (4 hours) |
|
2020-08-05 22:11:13 +02:00
|
|
|
| `showHeader` | Show *COVID-19 Daten* as module header? <br> **Values:** `true` or `/false` <br> **Default:** `true` |
|
2020-07-26 10:50:34 +02:00
|
|
|
| `appendLocationNameToHeader` | Append region name to header? <br> **Values:** `true` or `/false` <br> **Default:** `true` |
|
|
|
|
|
|
|
|
### List available regions
|
|
|
|
|
|
|
|
`curl https://rp-online.de/app/interaktiv_server/data/rki_nrw_mapped.json.php | jq | awk '/^ "/ {print}'`
|
2020-08-05 20:54:19 +02:00
|
|
|
|
|
|
|
## MMPM integration
|
|
|
|
```
|
|
|
|
mmpm add-ext-pkg \
|
|
|
|
--title="MMM-covid19" \
|
|
|
|
--author="smark" \
|
|
|
|
--repo="https://git.smsvc.net/MagicMirror/MMM-covid19" \
|
|
|
|
--desc="covid19 statistics"
|
|
|
|
```
|