DOC: minor updates in comments and README

This commit is contained in:
Sebastian Mark 2020-07-26 15:39:18 +02:00
parent 0a278e4b1c
commit 2fa36aa014
2 changed files with 3 additions and 4 deletions

View file

@ -94,7 +94,7 @@ Module.register("MMM-covid19", {
}, },
update_data: function() { update_data: function() {
// get and parse json data from source // get and parse json data from source
var xmlHttp = new XMLHttpRequest(); var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", this.config.data_url, false ); // false for synchronous request xmlHttp.open( "GET", this.config.data_url, false ); // false for synchronous request
xmlHttp.send( null ); xmlHttp.send( null );
@ -107,10 +107,10 @@ Module.register("MMM-covid19", {
this.cases.death = data[this.config.region]["tot"]; this.cases.death = data[this.config.region]["tot"];
this.cases.cured = data[this.config.region]["gesund"]; this.cases.cured = data[this.config.region]["gesund"];
this.cases.ts = data[this.config.region]["date"]; this.cases.ts = data[this.config.region]["date"];
// determine trend: // determine trend:
// calc this and last weeks cases and substract // calc this and last weeks cases and substract
// results the different of new cases between this and last week // result is the difference of new cases between this and last week
// +10: red (arrow up) // +10: red (arrow up)
// +0: orange (arrow up) // +0: orange (arrow up)
// 0: normal (arrow right) // 0: normal (arrow right)

View file

@ -20,7 +20,6 @@ modules: [
position: "top_left", position: "top_left",
config: { config: {
// The config property is optional. // The config property is optional.
// If no config is set, an example calendar is shown.
// See 'Configuration options' for more information. // See 'Configuration options' for more information.
} }
} }