NEWS
Test Coronavirus Statistics for ioBroker
-
@Dutchman
wie oft werden die Daten den aktualliersiert? Wirklich alle 15 Minuten?
Leider ist Region Hannover nicht dabei. In der Aufschüsselung, der einzelnen Orte von der Region,@deta Region Hannover findest du unter "Landkreise"
-
@deta Region Hannover findest du unter "Landkreise"
@Feuersturm sagte in Test Coronavirus Statistics for ioBroker:
@deta Region Hannover findest du unter "Landkreise"
Das ist klar, aber nicht die Aufschlüsselung des Landkreises so z.b.:

-
@Dutchman
wie oft werden die Daten den aktualliersiert? Wirklich alle 15 Minuten?
Leider ist Region Hannover nicht dabei. In der Aufschüsselung, der einzelnen Orte von der Region,@deta sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman
wie oft werden die Daten den aktualliersiert? Wirklich alle 15 Minuten?
Leider ist Region Hannover nicht dabei. In der Aufschüsselung, der einzelnen Orte von der Region,Der Adapter fragt die APi alle 15 minuten ab, daten selber auf der api einmal am Tag soweit ich weis
-
@deta sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman
wie oft werden die Daten den aktualliersiert? Wirklich alle 15 Minuten?
Leider ist Region Hannover nicht dabei. In der Aufschüsselung, der einzelnen Orte von der Region,Der Adapter fragt die APi alle 15 minuten ab, daten selber auf der api einmal am Tag soweit ich weis
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
@deta sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman
wie oft werden die Daten den aktualliersiert? Wirklich alle 15 Minuten?
Leider ist Region Hannover nicht dabei. In der Aufschüsselung, der einzelnen Orte von der Region,Der Adapter fragt die APi alle 15 minuten ab, daten selber auf der api einmal am Tag soweit ich weis
Warum soll er default alle 15 Minuten? Wenn die API nur einmal am Tag aktuallisiert wird?
Ich hab das jetzt mal auf 2 mal am Tag gesetzt. Denke das langt. Weis jemand wann die API aktuell immer ist? -
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
@deta sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman
wie oft werden die Daten den aktualliersiert? Wirklich alle 15 Minuten?
Leider ist Region Hannover nicht dabei. In der Aufschüsselung, der einzelnen Orte von der Region,Der Adapter fragt die APi alle 15 minuten ab, daten selber auf der api einmal am Tag soweit ich weis
Warum soll er default alle 15 Minuten? Wenn die API nur einmal am Tag aktuallisiert wird?
Ich hab das jetzt mal auf 2 mal am Tag gesetzt. Denke das langt. Weis jemand wann die API aktuell immer ist?@deta sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
@deta sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman
wie oft werden die Daten den aktualliersiert? Wirklich alle 15 Minuten?
Leider ist Region Hannover nicht dabei. In der Aufschüsselung, der einzelnen Orte von der Region,Der Adapter fragt die APi alle 15 minuten ab, daten selber auf der api einmal am Tag soweit ich weis
Warum soll er default alle 15 Minuten? Wenn die API nur einmal am Tag aktuallisiert wird?
Ich hab das jetzt mal auf 2 mal am Tag gesetzt. Denke das langt. Weis jemand wann die API aktuell immer ist?weil ich nicht einschätzen kan wan die APi daten liefert, das jeden tag unterschiedlich ist und der shedule halt so aufgebaut werden kan.
Is die default setting, kan und darf jeder aendern wie er es mag .... -
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
@deta sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman
wie oft werden die Daten den aktualliersiert? Wirklich alle 15 Minuten?
Leider ist Region Hannover nicht dabei. In der Aufschüsselung, der einzelnen Orte von der Region,Der Adapter fragt die APi alle 15 minuten ab, daten selber auf der api einmal am Tag soweit ich weis
Warum soll er default alle 15 Minuten? Wenn die API nur einmal am Tag aktuallisiert wird?
Ich hab das jetzt mal auf 2 mal am Tag gesetzt. Denke das langt. Weis jemand wann die API aktuell immer ist? -
@deta kann man nicht fest sagen. Hier als Beispiel kamen in 24 Stunden 12 neue Zahlen (BRD neue Fälle) rein:

Edit: Italien schickt meist nur einmal am Tag seine Daten. -
Aktuelle Test Version 0.6.9 Veröffentlichungsdatum 22-03-2021 Github Link https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/blob/master/README.md NPM npm i ioBroker.coronavirus-statistics@latestAdapter to show Global Corona Virus information and current reports
Coronavirus Live Statistics adapter for ioBroker
Adapter to show Global Corona Virus information and current reports
There is no configuration required, after installation it will :
- Receive global information world-wide and write it to "global_totals"
- Create a folder for each country with all relevant information regarding COVID-19
- Update the information every 15 minutes
The following information is available :
Datapoint Details active Amount of current infected people cases Amount of totally known cases casesPerOneMillion Amount of totally known cases per million citizen critical Amount of critical situation (Hospitalized) deaths Amount of current registered deaths deathsPerOneMillion Amount of current registered deaths per million citizen recovered Amount of totally known recovered cases todayCases New Cases by Today todayDeaths Amount of totally known people died today test Total number of covid-19 tests taken globally tests per one million counties Total number of covid-19 tests taken globally per one million Please be aware this adapter uses as much as possible up-to-date information but there can be an delay of several hours depending on the country's report.
German Federal States : https://npgeo-corona-npgeo-de.hub.arcgis.com/ s
Generic Source : https://coronavirus-19-api.herokuapp.comAdvanced settings
Option Description All Countries Get data for all countries World-Wide (Default: false) Continents Group total amounts by continent in seperate state (Default: false) Delete unused States Delete data when countries are deselected (Default: false) German counties Get counties data for Germany (Selected only, Default false) German federal states Get federal state data for Germany (Selected only, Default false) Get all German federal states Get federal state data for Germany (Default false) Get all German counties Get all counties data for Germany (Default false) For Germany only
It's possible to get data for federal states (Bundesländer) and counties (Landeskreise).
You can choose to recieve all data or just select specific regions in advanced settings.Please note : After activation the the adapter must run 1 time to get all federal states and counties before table loads !
Add missing countries
It may happen that countries are not recognized correctly because the API delivers some country names not ISO conform. In such a case you will get a warning message in the log, which looks like this
coronavirus-statistics.0 2020-03-21 09:05:31.328 warn (22937) Timor-Leste not found in lib! Must be added to the country name translator.Using the datapoint
coronavirus-statistics.0.countryTranslatoryou can assign a country yourself. Look for the name of the corresponding country here:With the selected country name you have to create a JSON string and enter it in the datapoint
coronavirus-statistics.0.countryTranslator.
The JSON string then looks like this, for example:{ "Cabo_Verde": "Cape Verde", "Timor-Leste": "East Timor" }As first value the name from the warning message must be taken from the log. The name of the country from the List with country names is then assigned to this.
Changelog
https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/blob/master/README.md
Habt Ihr mal Lust eure Umsetzungen für VIS hier zu Posten.
Wäre klasse.
[https://forum.iobroker.net/topic/38895/coronavirus-statistics-for-iobroker-vis-umsetzung](Link Adresse) -
Aktuelle Test Version 0.6.9 Veröffentlichungsdatum 22-03-2021 Github Link https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/blob/master/README.md NPM npm i ioBroker.coronavirus-statistics@latestAdapter to show Global Corona Virus information and current reports
Coronavirus Live Statistics adapter for ioBroker
Adapter to show Global Corona Virus information and current reports
There is no configuration required, after installation it will :
- Receive global information world-wide and write it to "global_totals"
- Create a folder for each country with all relevant information regarding COVID-19
- Update the information every 15 minutes
The following information is available :
Datapoint Details active Amount of current infected people cases Amount of totally known cases casesPerOneMillion Amount of totally known cases per million citizen critical Amount of critical situation (Hospitalized) deaths Amount of current registered deaths deathsPerOneMillion Amount of current registered deaths per million citizen recovered Amount of totally known recovered cases todayCases New Cases by Today todayDeaths Amount of totally known people died today test Total number of covid-19 tests taken globally tests per one million counties Total number of covid-19 tests taken globally per one million Please be aware this adapter uses as much as possible up-to-date information but there can be an delay of several hours depending on the country's report.
German Federal States : https://npgeo-corona-npgeo-de.hub.arcgis.com/ s
Generic Source : https://coronavirus-19-api.herokuapp.comAdvanced settings
Option Description All Countries Get data for all countries World-Wide (Default: false) Continents Group total amounts by continent in seperate state (Default: false) Delete unused States Delete data when countries are deselected (Default: false) German counties Get counties data for Germany (Selected only, Default false) German federal states Get federal state data for Germany (Selected only, Default false) Get all German federal states Get federal state data for Germany (Default false) Get all German counties Get all counties data for Germany (Default false) For Germany only
It's possible to get data for federal states (Bundesländer) and counties (Landeskreise).
You can choose to recieve all data or just select specific regions in advanced settings.Please note : After activation the the adapter must run 1 time to get all federal states and counties before table loads !
Add missing countries
It may happen that countries are not recognized correctly because the API delivers some country names not ISO conform. In such a case you will get a warning message in the log, which looks like this
coronavirus-statistics.0 2020-03-21 09:05:31.328 warn (22937) Timor-Leste not found in lib! Must be added to the country name translator.Using the datapoint
coronavirus-statistics.0.countryTranslatoryou can assign a country yourself. Look for the name of the corresponding country here:With the selected country name you have to create a JSON string and enter it in the datapoint
coronavirus-statistics.0.countryTranslator.
The JSON string then looks like this, for example:{ "Cabo_Verde": "Cape Verde", "Timor-Leste": "East Timor" }As first value the name from the warning message must be taken from the log. The name of the country from the List with country names is then assigned to this.
Changelog
https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/blob/master/README.md
-
Aktuelle Test Version 0.6.9 Veröffentlichungsdatum 22-03-2021 Github Link https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/blob/master/README.md NPM npm i ioBroker.coronavirus-statistics@latestAdapter to show Global Corona Virus information and current reports
Coronavirus Live Statistics adapter for ioBroker
Adapter to show Global Corona Virus information and current reports
There is no configuration required, after installation it will :
- Receive global information world-wide and write it to "global_totals"
- Create a folder for each country with all relevant information regarding COVID-19
- Update the information every 15 minutes
The following information is available :
Datapoint Details active Amount of current infected people cases Amount of totally known cases casesPerOneMillion Amount of totally known cases per million citizen critical Amount of critical situation (Hospitalized) deaths Amount of current registered deaths deathsPerOneMillion Amount of current registered deaths per million citizen recovered Amount of totally known recovered cases todayCases New Cases by Today todayDeaths Amount of totally known people died today test Total number of covid-19 tests taken globally tests per one million counties Total number of covid-19 tests taken globally per one million Please be aware this adapter uses as much as possible up-to-date information but there can be an delay of several hours depending on the country's report.
German Federal States : https://npgeo-corona-npgeo-de.hub.arcgis.com/ s
Generic Source : https://coronavirus-19-api.herokuapp.comAdvanced settings
Option Description All Countries Get data for all countries World-Wide (Default: false) Continents Group total amounts by continent in seperate state (Default: false) Delete unused States Delete data when countries are deselected (Default: false) German counties Get counties data for Germany (Selected only, Default false) German federal states Get federal state data for Germany (Selected only, Default false) Get all German federal states Get federal state data for Germany (Default false) Get all German counties Get all counties data for Germany (Default false) For Germany only
It's possible to get data for federal states (Bundesländer) and counties (Landeskreise).
You can choose to recieve all data or just select specific regions in advanced settings.Please note : After activation the the adapter must run 1 time to get all federal states and counties before table loads !
Add missing countries
It may happen that countries are not recognized correctly because the API delivers some country names not ISO conform. In such a case you will get a warning message in the log, which looks like this
coronavirus-statistics.0 2020-03-21 09:05:31.328 warn (22937) Timor-Leste not found in lib! Must be added to the country name translator.Using the datapoint
coronavirus-statistics.0.countryTranslatoryou can assign a country yourself. Look for the name of the corresponding country here:With the selected country name you have to create a JSON string and enter it in the datapoint
coronavirus-statistics.0.countryTranslator.
The JSON string then looks like this, for example:{ "Cabo_Verde": "Cape Verde", "Timor-Leste": "East Timor" }As first value the name from the warning message must be taken from the log. The name of the country from the List with country names is then assigned to this.
Changelog
https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/blob/master/README.md
Hat sich erledigt, hatte falsch gedacht.
Was mir noch fehlt ist der Vergleich zum Vortag
-
@Feuersturm
Also ich hab die RKI Daten jetzt mal direkt um 9 Uhr (wenn auch meine Auswertung stattfindet) mit meinen verglichen.
Ich hab die "8685" 1:1 mit meiner Implementierung berechnet.
(Total Cases Today) minus (Total Cases Yesterday)
Falls jemand an meiner Automatisierung Interesse hat: Schickt um 9 eine Nachricht an alle, die beim Bot angemeldet sind (Freunde von mir nutzen es auch mit). Default Stadt/ Landkreis ist in der For Schleife am Ende. Ansonsten müssen die Nutzer bei den IFs und davor angepasst werden.
schedule("0 9 * * *", () => { let regensburgCases = getState("coronavirus-statistics.0.Germany.Stadt.Regensburg.cases7_per_100k").val.toFixed(1); let berlinMitteCases = getState("coronavirus-statistics.0.Germany.Stadt.Berlin_Mitte.cases7_per_100k").val.toFixed(1); let germanyCases = (getState("coronavirus-statistics.0.Germany.cases").val - getState("javascript.0.covid.germany").val).toString(); let netherlandsCases = (getState("coronavirus-statistics.0.Netherlands.cases").val - getState("javascript.0.covid.netherlands").val).toString(); regensburgCases = `<b>Regensburg (Stadt)</b>\n${regensburgCases} ${getSmiley(regensburgCases)}`; berlinMitteCases = `<b>Berlin Mitte</b>\n${berlinMitteCases} ${getSmiley(berlinMitteCases)}`; germanyCases = `<b>Deutschland (Differenz zum Vortag)</b>\n${germanyCases}`; netherlandsCases = `<b>Niederlande (Differenz zum Vortag)</b>\n${netherlandsCases}`; const customUser1 = 7834520085; const customUser2 = 7852254548; for (let user of Object.keys(JSON.parse(getState("telegram.2.communicate.users").val))) { user = +user; if (user === customUser1) { sendTelegramCovid(`${berlinMitteCases}\n\n${germanyCases}`, user); continue; } if (user === customUser2) { sendTelegramCovid(`${netherlandsCases}\n\n${germanyCases}`, user); continue; } sendTelegramCovid(`${regensburgCases}\n\n${germanyCases}`, user); } setState("javascript.0.covid.germany", getState("coronavirus-statistics.0.Germany.cases").val); setState("javascript.0.covid.netherlands", getState("coronavirus-statistics.0.Netherlands.cases").val); }); function getSmiley(value) { if (+value < 35) return "😊"; if (+value > 35 && +value < 50) return "🔥"; return "🆘"; }@jlssmt Bei deinen Telegram Skript , bekomme ich noch diese Meldung
javascript.0 2020-11-28 19:54:00.041 error (2930) at Job.job (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1291:34) javascript.0 2020-11-28 19:54:00.040 error (2930) at Object.<anonymous> (script.js.Telegramm.Corona-Zahlen:51:13) javascript.0 2020-11-28 19:54:00.038 error (2930) Error in callback: ReferenceError: sendTelegramCovid is not defined -
@jlssmt Bei deinen Telegram Skript , bekomme ich noch diese Meldung
javascript.0 2020-11-28 19:54:00.041 error (2930) at Job.job (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1291:34) javascript.0 2020-11-28 19:54:00.040 error (2930) at Object.<anonymous> (script.js.Telegramm.Corona-Zahlen:51:13) javascript.0 2020-11-28 19:54:00.038 error (2930) Error in callback: ReferenceError: sendTelegramCovid is not defined@deta
Äh, jo.
Das ist ne Funktion von mir in nem Global Script.
Also entweder du schreibst dir was eigenes, oder nimmst meins copy paste.
Musst aber vmtl die 2 in Zeile 12 durch eine 0 ersetzen:function generateProperties(message, notification, chatId) { const properties = { text: message, disable_notification: !notification, parse_mode: "HTML" }; if(!!chatId) properties.chatId = chatId; return properties; } function sendTelegramCovid(message, chatId) { sendTo("telegram.2", generateProperties(message, true, chatId)); } -
@deta
Äh, jo.
Das ist ne Funktion von mir in nem Global Script.
Also entweder du schreibst dir was eigenes, oder nimmst meins copy paste.
Musst aber vmtl die 2 in Zeile 12 durch eine 0 ersetzen:function generateProperties(message, notification, chatId) { const properties = { text: message, disable_notification: !notification, parse_mode: "HTML" }; if(!!chatId) properties.chatId = chatId; return properties; } function sendTelegramCovid(message, chatId) { sendTo("telegram.2", generateProperties(message, true, chatId)); } -
@jlssmt Wo muss das genau rein? Hab noch ein JavaScript angelegt extra. Aber trotzdem die Fehlermeldung? Muss das ein bestimmten Namen haben?
-
Moin, bei dem Widget gibt es ein kleines Problem mit Netherlands und UK d.h.
bei Netherlands wird nichts angezeigt und bei UK auch nicht, wobei beim
letzteren im DP United_Kingdom steht und nicht UK. -
@deta
das muss entweder in den global ordner, oder einfach unter das covid script.
der global ordner war früher standardmäßig sichtbar, jetzt musst du ihn erst einblenden:


-
@jlssmt jup geht danke
Deutschland (Differenz zum Vortag) Ist doch eigentlich nicht das Ergebniss Covid aktuell - Covid neu gestern, sondern Covid Neu gestern ist die Differenz. Oder versteh ich da was falsch.
@deta
Du verstehst auf jeden Fall die Rechtschreibung von "Differenz" falsch ;-)
Spaß beiseite: Der zweite Wert in der Subtraktion ist ein von mir zwischengespeicherter Wert, welcher die Total Cases von Gestern beinhaltet.
Damit sind die Total Cases Today minus den eben erwähnten Wert, die für heute neu hinzugekommenen Cases.
Weiß nicht, ob es einigermaßen verständlich war, aber du siehst ja morgen (bzw. nach 24h), dass es funktioniert ;-) -
@deta
Du verstehst auf jeden Fall die Rechtschreibung von "Differenz" falsch ;-)
Spaß beiseite: Der zweite Wert in der Subtraktion ist ein von mir zwischengespeicherter Wert, welcher die Total Cases von Gestern beinhaltet.
Damit sind die Total Cases Today minus den eben erwähnten Wert, die für heute neu hinzugekommenen Cases.
Weiß nicht, ob es einigermaßen verständlich war, aber du siehst ja morgen (bzw. nach 24h), dass es funktioniert ;-)@jlssmt ok schau das mir an, werde ich morgen schauen. Es war nur eine Komische Zahl und wenn ich weis ich 1000 Gesamt Infektionen am Tag, den Tag davor Abziehe, 300 Würde das ja 700 Ergeben, das ist aber ja nicht die Differnz. Mh..
-
@jlssmt ok schau das mir an, werde ich morgen schauen. Es war nur eine Komische Zahl und wenn ich weis ich 1000 Gesamt Infektionen am Tag, den Tag davor Abziehe, 300 Würde das ja 700 Ergeben, das ist aber ja nicht die Differnz. Mh..
