diff --git a/MMM-covid19.js b/MMM-covid19.js index c378db1..b6ef413 100644 --- a/MMM-covid19.js +++ b/MMM-covid19.js @@ -17,6 +17,7 @@ Module.register("MMM-covid19", { }, cases: { new7: "N/A", + new7_100k: "N/A", active: "N/A", total: "N/A", death: "N/A", @@ -71,6 +72,7 @@ Module.register("MMM-covid19", { // extract data this.cases.new7 = data[this.config.region]["last_7"]; + this.cases.new7_100k = data[this.config.region]["last_7_100000"]; this.cases.active = data[this.config.region]["active"]; this.cases.total = data[this.config.region]["cases"]; this.cases.death = data[this.config.region]["tot"]; diff --git a/MMM-covid19.njk b/MMM-covid19.njk index 3c616a1..8decfaf 100644 --- a/MMM-covid19.njk +++ b/MMM-covid19.njk @@ -1,5 +1,5 @@
- Neu: {{ cases.new7 }} {{ cases.trend | safe }}
+ Neu: {{ cases.new7 }} ({{ cases.new7_100k }}) {{ cases.trend | safe }}
Aktiv: {{ cases.active }}
Gesamt: {{ cases.total }}
Tote: {{ cases.death }}