FEAT: add new cases per 100k

This commit is contained in:
Sebastian Mark 2020-09-27 19:52:25 +02:00
parent 1cf7484c64
commit b2b121c0b1
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@ Module.register("MMM-covid19", {
}, },
cases: { cases: {
new7: "N/A", new7: "N/A",
new7_100k: "N/A",
active: "N/A", active: "N/A",
total: "N/A", total: "N/A",
death: "N/A", death: "N/A",
@ -71,6 +72,7 @@ Module.register("MMM-covid19", {
// extract data // extract data
this.cases.new7 = data[this.config.region]["last_7"]; 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.active = data[this.config.region]["active"];
this.cases.total = data[this.config.region]["cases"]; this.cases.total = data[this.config.region]["cases"];
this.cases.death = data[this.config.region]["tot"]; this.cases.death = data[this.config.region]["tot"];

View file

@ -1,5 +1,5 @@
<div class="small covid19"> <div class="small covid19">
<span class="bright new7">Neu: {{ cases.new7 }} {{ cases.trend | safe }}</span><br/> <span class="bright new7">Neu: {{ cases.new7 }} ({{ cases.new7_100k }}) {{ cases.trend | safe }}</span><br/>
<span class="bright active">Aktiv: {{ cases.active }}</span><br/> <span class="bright active">Aktiv: {{ cases.active }}</span><br/>
<span class="total">Gesamt: {{ cases.total }}</span><br/> <span class="total">Gesamt: {{ cases.total }}</span><br/>
<span class="death">Tote: {{ cases.death }}</span><br/> <span class="death">Tote: {{ cases.death }}</span><br/>