From b2b121c0b1da028af9f8065f039140a9e9a10e65 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Sun, 27 Sep 2020 19:52:25 +0200 Subject: [PATCH] FEAT: add new cases per 100k --- MMM-covid19.js | 2 ++ MMM-covid19.njk | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 }}