NEWS
Test Coronavirus Statistics for ioBroker
-
Habe gerade auf die 0.4.8 geupdatet.
Danach hatte ich auch diese Fehlermeldung im Log
https://forum.iobroker.net/post/400117Ich hab dann mal die Instance gelöscht und neu erstellt - Log Eintrag ist geblieben.
Also mal den ganzen Adapter gelöscht und neu installiert.
Danach hatte ich ein sehr eigenartiges Problem. Bei Neuinstallation muss man ja einmalig "alle Länder" aktivieren.
Ich konnte zwar diesen Regler aktivieren, diese Einstellung konnte ich aber nicht speichern. Man sieht nur wie unten "Speichern / Speichern und Schließen" kurz dunkler werden (blinken) und dann wieder in den Status gehen, das Sie sich nicht bedienen lassen. Ich hoffe ich drücke mich hier verständlich aus.
Ich habe mir dann erstmal damit beholfen, das ich die io-package.json manuell editiert habe"loadAllCountrys": true,Danach lies sich der Adapter wieder normal benutzen und die Daten wurden geladen.
Vielleicht kann ja mal jemand eine Neuinstallation testen, ob das Problem mit dem speichern generell besteht.Diese Warn Meldungen werden aktuell ausgegeben:
coronavirus-statistics.0 2020-03-26 17:00:51.904 warn (2356) Libyan_Arab_Jamahiriya not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.864 warn (2356) Holy_See_(Vatican_City_State) not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.858 warn (2356) Syrian_Arab_Republic not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.848 warn (2356) Lao_People's_Democratic_Republic not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.818 warn (2356) Tanzania,_United_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.775 warn (2356) Congo,_the_Democratic_Republic_of_the not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.760 warn (2356) Coast_D'Ivoire not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.758 warn (2356) Palestinian_Territory,_Occupied not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.750 warn (2356) Venezuela,_Bolivarian_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.736 warn (2356) Viet_Nam not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.724 warn (2356) Moldova,_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.723 warn (2356) Bosnia not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.719 warn (2356) Macedonia,_the_former_Yugoslav_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-26 17:00:51.633 warn (2356) Iran,_Islamic_Republic_of not found in lib! Must be added to the country name translator.@Knallochse bzw hiersteht wie die fehlenden Länder nachgetragen werden können
-

Hat sich hier was an der API geändert? Glaub bei ca 46 Millionen Spaniern ist 1 nicht ganz richtig..

-
Anbei der aktuelle countryTranslator:
{ "Libyan_Arab_Jamahiriya": "Libya", "Syrian_Arab_Republic": "Syria", "Lao_People's_Democratic_Republic": "Laos", "Tanzania,_United_Republic_of": "Tanzania", "Congo,_the_Democratic_Republic_of_the": "Democratic Republic of the Congo", "Coast_D'Ivoire": "Ivory Coast", "Palestinian_Territory,_Occupied": "Palestinian Territory", "Venezuela,_Bolivarian_Republic_of": "Venezuela", "Viet_Nam": "Vietnam", "Moldova,_Republic_of": "Moldova", "Bosnia": "Bosnia and Herzegovina", "Macedonia,_the_former_Yugoslav_Republic_of": "Macedonia", "Iran,_Islamic_Republic_of": "Iran", "Holy_See_(Vatican_City_State)": "Vatican" } -
Anbei der aktuelle countryTranslator:
{ "Libyan_Arab_Jamahiriya": "Libya", "Syrian_Arab_Republic": "Syria", "Lao_People's_Democratic_Republic": "Laos", "Tanzania,_United_Republic_of": "Tanzania", "Congo,_the_Democratic_Republic_of_the": "Democratic Republic of the Congo", "Coast_D'Ivoire": "Ivory Coast", "Palestinian_Territory,_Occupied": "Palestinian Territory", "Venezuela,_Bolivarian_Republic_of": "Venezuela", "Viet_Nam": "Vietnam", "Moldova,_Republic_of": "Moldova", "Bosnia": "Bosnia and Herzegovina", "Macedonia,_the_former_Yugoslav_Republic_of": "Macedonia", "Iran,_Islamic_Republic_of": "Iran", "Holy_See_(Vatican_City_State)": "Vatican" }@Scrounger sagte in Test Coronavirus Statistics for ioBroker:
Anbei der aktuelle countryTranslator:
{ "Libyan_Arab_Jamahiriya": "Libya", "Syrian_Arab_Republic": "Syria", "Lao_People's_Democratic_Republic": "Laos", "Tanzania,_United_Republic_of": "Tanzania", "Congo,_the_Democratic_Republic_of_the": "Democratic Republic of the Congo", "Coast_D'Ivoire": "Ivory Coast", "Palestinian_Territory,_Occupied": "Palestinian Territory", "Venezuela,_Bolivarian_Republic_of": "Venezuela", "Viet_Nam": "Vietnam", "Moldova,_Republic_of": "Moldova", "Bosnia": "Bosnia and Herzegovina", "Macedonia,_the_former_Yugoslav_Republic_of": "Macedonia", "Iran,_Islamic_Republic_of": "Iran", "Holy_See_(Vatican_City_State)": "Vatican" }Wie und wo füge ich das ein?
Grüße
-
@Scrounger sagte in Test Coronavirus Statistics for ioBroker:
Anbei der aktuelle countryTranslator:
{ "Libyan_Arab_Jamahiriya": "Libya", "Syrian_Arab_Republic": "Syria", "Lao_People's_Democratic_Republic": "Laos", "Tanzania,_United_Republic_of": "Tanzania", "Congo,_the_Democratic_Republic_of_the": "Democratic Republic of the Congo", "Coast_D'Ivoire": "Ivory Coast", "Palestinian_Territory,_Occupied": "Palestinian Territory", "Venezuela,_Bolivarian_Republic_of": "Venezuela", "Viet_Nam": "Vietnam", "Moldova,_Republic_of": "Moldova", "Bosnia": "Bosnia and Herzegovina", "Macedonia,_the_former_Yugoslav_Republic_of": "Macedonia", "Iran,_Islamic_Republic_of": "Iran", "Holy_See_(Vatican_City_State)": "Vatican" }Wie und wo füge ich das ein?
Grüße
@rudiraz sagte in Test Coronavirus Statistics for ioBroker:
@Scrounger sagte in Test Coronavirus Statistics for ioBroker:
Anbei der aktuelle countryTranslator:
{ "Libyan_Arab_Jamahiriya": "Libya", "Syrian_Arab_Republic": "Syria", "Lao_People's_Democratic_Republic": "Laos", "Tanzania,_United_Republic_of": "Tanzania", "Congo,_the_Democratic_Republic_of_the": "Democratic Republic of the Congo", "Coast_D'Ivoire": "Ivory Coast", "Palestinian_Territory,_Occupied": "Palestinian Territory", "Venezuela,_Bolivarian_Republic_of": "Venezuela", "Viet_Nam": "Vietnam", "Moldova,_Republic_of": "Moldova", "Bosnia": "Bosnia and Herzegovina", "Macedonia,_the_former_Yugoslav_Republic_of": "Macedonia", "Iran,_Islamic_Republic_of": "Iran", "Holy_See_(Vatican_City_State)": "Vatican" }Wie und wo füge ich das ein?
Grüße
Alles klar. Hab den Datenpunkt gefunden :-)
-
Läuft gut, nochmals Danke! Anbei mein Use Case mit den reinen RKI-Daten:
- Auslastung der Beatmungsplätze
- Wachstumsraten der Verstorbenen
- Wachstumsraten der Infizierten
- etc.
Man kann anhand der Zahlen sehr gut nachvollziehen, wieso Herr Söder vorprescht und das Baden-Württemberg jetzt große Probleme hat, über die in den Medien noch nicht so deutlich berichtet wird:
📊 Auslastung der Beatmungsplätze
DE (gesamt): 69.4% von 25000
〰️〰️〰️〰️〰️
BW: 164.9% von 2208
BY: 99.9% von 4000
HE: 59.4% von 1815
HH: 98.8% von 640
NRW: 58.1% von 6823
SH: 53.7% von 628📉 Wachstumsraten der Verstorbenen
DE (gesamt): 32.89%
〰️〰️〰️〰️〰️
BW: 51.35%
BY: 27.03%
HE: 50%
HH: 0%
NRW: 23.26%
SH: 0%-> Meine Quellen stehen transparent als Kommentar im Code! Wenn jemand da neue Zahlen hat, gerne hergeben!
-> Eine Unschärfe sind die Genesenen, genauer gesagt die fehlende Anzahl der aktiven Erkrankungen auf Ebene der Bundesländer. Diese Zahl stellt das RKI leider nicht zur Verfügung. Wenn jemand da etwas hat, gerne hergeben! Letztlich ist die Auslastung der Geräte auch nur als Randnotiz gedacht, zumal noch weitere Kapazitäten aufgebaut werden und nur die ECMO Geräte die höchste Überlebenschancen bieten. Die Genauigkeit der Prognose lässt sich (LEIDER!) durch die Relation mit den Wachstumsraten der Verstorbenen nachvollziehen; wo kein Platz, da viel mehr Tote. (Siehe Baden-Württemberg)
var timeout, timeout2, timeout3, timeout5, varAnzahlBeatmungDE, varAnzahlBeatmungBW, varAnzahlBeatmungBY, varAnzahlBeatmungHH, varAnzahlBeatmungHE, varAnzahlBeatmungNRW, varAnzahlBeatmungSH, timeout4; schedule("0 8 * * *", function () { sendTo("telegram.1", "send", { text: (['☣️ Anzahl der Infizierten ','\n','\n',['DE (gesamt): ',getState("0_userdata.0.corona.infizierte-de-now").val,' (+',getState("0_userdata.0.corona.infizierte-de-now").val - getState("0_userdata.0.corona.infizierte-de-last").val,') ','\n'].join(''),'〰️〰️〰️〰️〰️ ','\n',['BW: ',getState("0_userdata.0.corona.infizierte-bw-now").val,' (+',getState("0_userdata.0.corona.infizierte-bw-now").val - getState("0_userdata.0.corona.infizierte-bw-last").val,') ','\n'].join(''),['BY: ',getState("0_userdata.0.corona.infizierte-by-now").val,' (+',getState("0_userdata.0.corona.infizierte-by-now").val - getState("0_userdata.0.corona.infizierte-by-last").val,') ','\n'].join(''),['HE: ',getState("0_userdata.0.corona.infizierte-he-now").val,' (+',getState("0_userdata.0.corona.infizierte-he-now").val - getState("0_userdata.0.corona.infizierte-he-last").val,') ','\n'].join(''),['HH: ',getState("0_userdata.0.corona.infizierte-hh-now").val,' (+',getState("0_userdata.0.corona.infizierte-hh-now").val - getState("0_userdata.0.corona.infizierte-hh-last").val,') ','\n'].join(''),['NRW: ',getState("0_userdata.0.corona.infizierte-nrw-now").val,' (+',getState("0_userdata.0.corona.infizierte-nrw-now").val - getState("0_userdata.0.corona.infizierte-nrw-last").val,') ','\n'].join(''),['SH: ',getState("0_userdata.0.corona.infizierte-sh-now").val,' (+',getState("0_userdata.0.corona.infizierte-sh-now").val - getState("0_userdata.0.corona.infizierte-sh-last").val,') ','\n'].join('')].join('')), disable_notification: true }); timeout = setTimeout(function () { sendTo("telegram.1", "send", { text: ([['⚰️ Anzahl der Verstorbenen ','\n','\n'].join(''),['DE (gesamt): ',getState("0_userdata.0.corona.tote-de-now").val,' (+',getState("0_userdata.0.corona.tote-de-now").val - getState("0_userdata.0.corona.tote-de-last").val,') ','\n'].join(''),'〰️〰️〰️〰️〰️ ','\n',['BW: ',getState("0_userdata.0.corona.tote-bw-now").val,' (+',getState("0_userdata.0.corona.tote-bw-now").val - getState("0_userdata.0.corona.tote-bw-last").val,') ','\n'].join(''),['BY: ',getState("0_userdata.0.corona.tote-by-now").val,' (+',getState("0_userdata.0.corona.tote-by-now").val - getState("0_userdata.0.corona.tote-by-last").val,') ','\n'].join(''),['HE: ',getState("0_userdata.0.corona.tote-he-now").val,' (+',getState("0_userdata.0.corona.tote-he-now").val - getState("0_userdata.0.corona.tote-he-last").val,') ','\n'].join(''),['HH: ',getState("0_userdata.0.corona.tote-hh-now").val,' (+',getState("0_userdata.0.corona.tote-hh-now").val - getState("0_userdata.0.corona.tote-hh-last").val,') ','\n'].join(''),['NRW: ',getState("0_userdata.0.corona.tote-nrw-now").val,' (+',getState("0_userdata.0.corona.tote-nrw-now").val - getState("0_userdata.0.corona.tote-nrw-last").val,') ','\n'].join(''),['SH: ',getState("0_userdata.0.corona.tote-sh-now").val,' (+',getState("0_userdata.0.corona.tote-sh-now").val - getState("0_userdata.0.corona.tote-sh-last").val,') ','\n'].join('')].join('')), disable_notification: true }); timeout2 = setTimeout(function () { sendTo("telegram.1", "send", { text: ([['💀 Aktuelle Sterblichkeitsraten ','\n','\n'].join(''),['DE (gesamt): ',getState("0_userdata.0.corona.sterblichkeitsrate-de").val,'% ','\n'].join(''),'〰️〰️〰️〰️〰️ ','\n',['BW: ',getState("0_userdata.0.corona.sterblichkeitsrate-bw").val,'% ','\n'].join(''),['BY: ',getState("0_userdata.0.corona.sterblichkeitsrate-by").val,'% ','\n'].join(''),['HE: ',getState("0_userdata.0.corona.sterblichkeitsrate-he").val,'% ','\n'].join(''),['HH: ',getState("0_userdata.0.corona.sterblichkeitsrate-hh").val,'% ','\n'].join(''),['NRW: ',getState("0_userdata.0.corona.sterblichkeitsrate-nrw").val,'% ','\n'].join(''),['SH: ',getState("0_userdata.0.corona.sterblichkeitsrate-sh").val,'% ','\n'].join('')].join('')), disable_notification: true }); timeout3 = setTimeout(function () { sendTo("telegram.1", "send", { text: ([['📈 Wachstumsraten der Infizierten ','\n','\n'].join(''),['DE (gesamt): ',Math.round(((getState("0_userdata.0.corona.infizierte-de-now").val - getState("0_userdata.0.corona.infizierte-de-last").val) / (getState("0_userdata.0.corona.infizierte-de-last").val / 100))*100)/100,'% ','\n'].join(''),'〰️〰️〰️〰️〰️ ','\n',['BW: ',Math.round(((getState("0_userdata.0.corona.infizierte-bw-now").val - getState("0_userdata.0.corona.infizierte-bw-last").val) / (getState("0_userdata.0.corona.infizierte-bw-last").val / 100))*100)/100,'% ','\n'].join(''),['BY: ',Math.round(((getState("0_userdata.0.corona.infizierte-by-now").val - getState("0_userdata.0.corona.infizierte-by-last").val) / (getState("0_userdata.0.corona.infizierte-by-last").val / 100))*100)/100,'% ','\n'].join(''),['HE: ',Math.round(((getState("0_userdata.0.corona.infizierte-he-now").val - getState("0_userdata.0.corona.infizierte-he-last").val) / (getState("0_userdata.0.corona.infizierte-he-last").val / 100))*100)/100,'% ','\n'].join(''),['HH: ',Math.round(((getState("0_userdata.0.corona.infizierte-hh-now").val - getState("0_userdata.0.corona.infizierte-hh-last").val) / (getState("0_userdata.0.corona.infizierte-hh-last").val / 100))*100)/100,'% ','\n'].join(''),['NRW: ',Math.round(((getState("0_userdata.0.corona.infizierte-nrw-now").val - getState("0_userdata.0.corona.infizierte-nrw-last").val) / (getState("0_userdata.0.corona.infizierte-nrw-last").val / 100))*100)/100,'% ','\n'].join(''),['SH: ',Math.round(((getState("0_userdata.0.corona.infizierte-sh-now").val - getState("0_userdata.0.corona.infizierte-sh-last").val) / (getState("0_userdata.0.corona.infizierte-sh-last").val / 100))*100)/100,'% ','\n'].join('')].join('')), disable_notification: true }); sendTo("telegram.1", "send", { text: ([['📉 Wachstumsraten der Verstorbenen','\n','\n'].join(''),['DE (gesamt): ',Math.round(((getState("0_userdata.0.corona.tote-de-now").val - getState("0_userdata.0.corona.tote-de-last").val) / (getState("0_userdata.0.corona.tote-de-last").val / 100))*100)/100,'% ','\n'].join(''),'〰️〰️〰️〰️〰️ ','\n',['BW: ',Math.round(((getState("0_userdata.0.corona.tote-bw-now").val - getState("0_userdata.0.corona.tote-bw-last").val) / (getState("0_userdata.0.corona.tote-bw-last").val / 100))*100)/100,'% ','\n'].join(''),['BY: ',Math.round(((getState("0_userdata.0.corona.tote-by-now").val - getState("0_userdata.0.corona.tote-by-last").val) / (getState("0_userdata.0.corona.tote-by-last").val / 100))*100)/100,'% ','\n'].join(''),['HE: ',Math.round(((getState("0_userdata.0.corona.tote-he-now").val - getState("0_userdata.0.corona.tote-he-last").val) / (getState("0_userdata.0.corona.tote-he-last").val / 100))*100)/100,'% ','\n'].join(''),['HH: ',Math.round(((getState("0_userdata.0.corona.tote-hh-now").val - getState("0_userdata.0.corona.tote-hh-last").val) / (getState("0_userdata.0.corona.tote-hh-last").val / 100))*100)/100,'% ','\n'].join(''),['NRW: ',Math.round(((getState("0_userdata.0.corona.tote-nrw-now").val - getState("0_userdata.0.corona.tote-nrw-last").val) / (getState("0_userdata.0.corona.tote-nrw-last").val / 100))*100)/100,'% ','\n'].join(''),['SH: ',Math.round(((getState("0_userdata.0.corona.tote-sh-now").val - getState("0_userdata.0.corona.tote-sh-last").val) / (getState("0_userdata.0.corona.tote-sh-last").val / 100))*100)/100,'% ','\n'].join('')].join('')), disable_notification: true }); timeout5 = setTimeout(function () { // DE 20k: https://www.handelsblatt.com/politik/deutschland/coronakrise-deutsche-krankenhausgesellschaft-wir-sind-besser-vorbereitet-als-italien/25651268.html // DE 20k: https://www.wetterauer-zeitung.de/wetterau/friedberg-ort28695/wetterauer-krankenhaeuser-ruesten-wegen-coronavirus-13606699.html // DE 25k: https://www.merkur.de/welt/coronavirus-deutschland-spahn-news-berlin-bayern-tote-infizierte-nrw-merkel-grenzen-sars-cov-2-covid-19-zr-13600553.html varAnzahlBeatmungDE = 25000; // BW 2208: https://web.de/magazine/regio/baden-wuerttemberg/krankenhaeuser-erhoehen-zahl-intensivplaetze-34549904 varAnzahlBeatmungBW = 2208; // BY 4000: https://www.theeuropean.de/markus-soeder/bayerns-schutzschirm-gegen-corona/ varAnzahlBeatmungBY = 4000; // HH 640: https://www.ndr.de/nachrichten/hamburg/Hamburgs-Kliniken-ruesten-sich-fuer-mehr-Corona-Faelle,coronavirus872.html varAnzahlBeatmungHH = 640; // HE 1815: https://www.fnp.de/frankfurt/coronavirus-corona-coronakrise-pandemie-hessen-faelle-verwirrung-zr-13605653.html varAnzahlBeatmungHE = 1815; // NRW 6823: https://www.rundschau-online.de/region/coronavirus-10-467-infizierte-in-nrw---kostenlose-mietwagen-fuer-klinikpersonal-36439428 varAnzahlBeatmungNRW = 6823; // SH 628: https://www.kn-online.de/Nachrichten/Schleswig-Holstein/SH-im-Corona-Modus-Neuer-Krisenplan-fuer-die-Kliniken varAnzahlBeatmungSH = 628; sendTo("telegram.1", "send", { text: ([['📊 Auslastung der Beatmungsplätze ','\n','\n'].join(''),['DE (gesamt): ',Math.round(((getState("coronavirus-statistics.0.Germany.active").val * 0.1) / ((varAnzahlBeatmungDE * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungDE,'\n'].join(''),'〰️〰️〰️〰️〰️ ','\n',['BW: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Baden-Württemberg.cases").val * 0.1) / ((varAnzahlBeatmungBW * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungBW,'\n'].join(''),['BY: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Bayern.cases").val * 0.1) / ((varAnzahlBeatmungBY * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungBY,'\n'].join(''),['HE: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Hessen.cases").val * 0.1) / ((varAnzahlBeatmungHE * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungHE,'\n'].join(''),['HH: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Hamburg.cases").val * 0.1) / ((varAnzahlBeatmungHH * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungHH,'\n'].join(''),['NRW: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Nordrhein-Westfalen.cases").val * 0.1) / ((varAnzahlBeatmungNRW * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungNRW,'\n'].join(''),['SH: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Schleswig-Holstein.cases").val * 0.1) / ((varAnzahlBeatmungSH * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungSH,'\n'].join('')].join('')), disable_notification: true }); console.log("telegram: " + ([['📊 Auslastung der Beatmungsplätze ','\n','\n'].join(''),['DE (gesamt): ',Math.round(((getState("coronavirus-statistics.0.Germany.active").val * 0.1) / ((varAnzahlBeatmungDE * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungDE,'\n'].join(''),'〰️〰️〰️〰️〰️ ','\n',['BW: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Baden-Württemberg.cases").val * 0.1) / ((varAnzahlBeatmungBW * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungBW,'\n'].join(''),['BY: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Bayern.cases").val * 0.1) / ((varAnzahlBeatmungBY * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungBY,'\n'].join(''),['HE: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Hessen.cases").val * 0.1) / ((varAnzahlBeatmungHE * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungHE,'\n'].join(''),['HH: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Hamburg.cases").val * 0.1) / ((varAnzahlBeatmungHH * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungHH,'\n'].join(''),['NRW: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Nordrhein-Westfalen.cases").val * 0.1) / ((varAnzahlBeatmungNRW * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungNRW,'\n'].join(''),['SH: ',Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Schleswig-Holstein.cases").val * 0.1) / ((varAnzahlBeatmungSH * 0.2) / 100))*10)/10,'% von ',varAnzahlBeatmungSH,'\n'].join('')].join(''))); timeout4 = setTimeout(function () { sendTo("telegram.1", "send", { text: 'Quellen und Code: https://forum.iobroker.net/topic/31245/test-coronavirus-statistics-for-iobroker/378' }); }, 2000); }, 2000); }, 2000); }, 2000); }, 2000); });var timeout4, timeout19, timeout13, timeout5, timeout21, timeout20, timeout15, timeout14, timeout11, timeout22, timeout17, timeout16, timeout12, timeout18; schedule("0 1 * * *", function () { setState("0_userdata.0.corona.infizierte-de-last"/*infizierte-de-last*/, getState("0_userdata.0.corona.infizierte-de-now").val, true); setState("0_userdata.0.corona.tote-de-last"/*tote-de-last*/, getState("0_userdata.0.corona.tote-de-now").val, true); timeout4 = setTimeout(function () { setState("0_userdata.0.corona.infizierte-de-now"/*infizierte-de-now*/, (getState("coronavirus-statistics.0.Germany.Federal_States.Baden-Württemberg.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Bayern.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Berlin.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Brandenburg.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Bremen.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Hamburg.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Hessen.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Mecklenburg-Vorpommern.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Niedersachsen.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Nordrhein-Westfalen.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Rheinland-Pfalz.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Saarland.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Sachsen.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Sachsen-Anhalt.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Schleswig-Holstein.cases").val + getState("coronavirus-statistics.0.Germany.Federal_States.Thüringen.cases").val), true); setState("0_userdata.0.corona.tote-de-now"/*tote-de-now*/, (getState("coronavirus-statistics.0.Germany.Federal_States.Baden-Württemberg.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Bayern.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Berlin.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Brandenburg.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Bremen.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Hamburg.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Hessen.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Mecklenburg-Vorpommern.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Niedersachsen.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Nordrhein-Westfalen.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Rheinland-Pfalz.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Saarland.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Sachsen.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Sachsen-Anhalt.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Schleswig-Holstein.deaths").val + getState("coronavirus-statistics.0.Germany.Federal_States.Thüringen.deaths").val), true); timeout5 = setTimeout(function () { setState("0_userdata.0.corona.sterblichkeitsrate-de"/*sterblichkeitsrate-de*/, Math.round(((getState("0_userdata.0.corona.tote-de-now").val / getState("0_userdata.0.corona.infizierte-de-now").val) * 100)*10)/10, true); }, 1000); }, 1000); }); schedule("5 1 * * *", function () { setState("0_userdata.0.corona.infizierte-bw-last"/*infizierte-bw-last*/, getState("0_userdata.0.corona.infizierte-bw-now").val, true); setState("0_userdata.0.corona.tote-bw-last"/*tote-bw-last*/, getState("0_userdata.0.corona.tote-bw-now").val, true); timeout19 = setTimeout(function () { setState("0_userdata.0.corona.infizierte-bw-now"/*infizierte-bw-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Baden-Württemberg.cases").val, true); setState("0_userdata.0.corona.tote-bw-now"/*tote-bw-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Baden-Württemberg.deaths").val, true); timeout20 = setTimeout(function () { setState("0_userdata.0.corona.sterblichkeitsrate-bw"/*sterblichkeitsrate-bw*/, Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Baden-Württemberg.deaths").val / getState("coronavirus-statistics.0.Germany.Federal_States.Baden-Württemberg.cases").val) * 100)*10)/10, true); }, 1000); }, 1000); }); schedule("5 1 * * *", function () { setState("0_userdata.0.corona.infizierte-by-last"/*infizierte-by-last*/, getState("0_userdata.0.corona.infizierte-by-now").val, true); setState("0_userdata.0.corona.tote-by-last"/*tote-by-last*/, getState("0_userdata.0.corona.tote-by-now").val, true); timeout13 = setTimeout(function () { setState("0_userdata.0.corona.infizierte-by-now"/*infizierte-by-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Bayern.cases").val, true); setState("0_userdata.0.corona.tote-by-now"/*tote-by-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Bayern.deaths").val, true); timeout14 = setTimeout(function () { setState("0_userdata.0.corona.sterblichkeitsrate-by"/*sterblichkeitsrate-by*/, Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Bayern.deaths").val / getState("coronavirus-statistics.0.Germany.Federal_States.Bayern.cases").val) * 100)*10)/10, true); }, 1000); }, 1000); }); schedule("5 1 * * *", function () { setState("0_userdata.0.corona.infizierte-he-last"/*infizierte-he-last*/, getState("0_userdata.0.corona.infizierte-he-now").val, true); setState("0_userdata.0.corona.tote-he-last"/*tote-he-last*/, getState("0_userdata.0.corona.tote-he-now").val, true); timeout21 = setTimeout(function () { setState("0_userdata.0.corona.infizierte-he-now"/*infizierte-he-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Hessen.cases").val, true); setState("0_userdata.0.corona.tote-he-now"/*tote-he-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Hessen.deaths").val, true); timeout22 = setTimeout(function () { setState("0_userdata.0.corona.sterblichkeitsrate-he"/*sterblichkeitsrate-he*/, Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Hessen.deaths").val / getState("coronavirus-statistics.0.Germany.Federal_States.Hessen.cases").val) * 100)*10)/10, true); }, 1000); }, 1000); }); schedule("5 1 * * *", function () { setState("0_userdata.0.corona.infizierte-hh-last"/*infizierte-hh-last*/, getState("0_userdata.0.corona.infizierte-hh-now").val, true); setState("0_userdata.0.corona.tote-hh-last"/*tote-hh-last*/, getState("0_userdata.0.corona.tote-hh-now").val, true); timeout15 = setTimeout(function () { setState("0_userdata.0.corona.infizierte-hh-now"/*infizierte-hh-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Hamburg.cases").val, true); setState("0_userdata.0.corona.tote-hh-now"/*tote-hh-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Hamburg.deaths").val, true); timeout16 = setTimeout(function () { setState("0_userdata.0.corona.sterblichkeitsrate-hh"/*sterblichkeitsrate-hh*/, Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Hamburg.deaths").val / getState("coronavirus-statistics.0.Germany.Federal_States.Hamburg.cases").val) * 100)*10)/10, true); }, 1000); }, 1000); }); schedule("5 1 * * *", function () { setState("0_userdata.0.corona.infizierte-nrw-last"/*infizierte-nrw-last*/, getState("0_userdata.0.corona.infizierte-nrw-now").val, true); setState("0_userdata.0.corona.tote-nrw-last"/*tote-nrw-last*/, getState("0_userdata.0.corona.tote-nrw-now").val, true); timeout11 = setTimeout(function () { setState("0_userdata.0.corona.infizierte-nrw-now"/*infizierte-nrw-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Nordrhein-Westfalen.cases").val, true); setState("0_userdata.0.corona.tote-nrw-now"/*tote-nrw-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Nordrhein-Westfalen.deaths").val, true); timeout12 = setTimeout(function () { setState("0_userdata.0.corona.sterblichkeitsrate-nrw"/*sterblichkeitsrate-nrw*/, Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Nordrhein-Westfalen.deaths").val / getState("coronavirus-statistics.0.Germany.Federal_States.Nordrhein-Westfalen.cases").val) * 100)*10)/10, true); }, 1000); }, 1000); }); schedule("5 1 * * *", function () { setState("0_userdata.0.corona.infizierte-sh-last"/*infizierte-sh-last*/, getState("0_userdata.0.corona.infizierte-sh-now").val, true); setState("0_userdata.0.corona.tote-sh-last"/*tote-sh-last*/, getState("0_userdata.0.corona.tote-sh-now").val, true); timeout17 = setTimeout(function () { setState("0_userdata.0.corona.infizierte-sh-now"/*infizierte-sh-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Schleswig-Holstein.cases").val, true); setState("0_userdata.0.corona.tote-sh-now"/*tote-sh-now*/, getState("coronavirus-statistics.0.Germany.Federal_States.Schleswig-Holstein.deaths").val, true); timeout18 = setTimeout(function () { setState("0_userdata.0.corona.sterblichkeitsrate-sh"/*sterblichkeitsrate-sh*/, Math.round(((getState("coronavirus-statistics.0.Germany.Federal_States.Schleswig-Holstein.deaths").val / getState("coronavirus-statistics.0.Germany.Federal_States.Schleswig-Holstein.cases").val) * 100)*10)/10, true); }, 1000); }, 1000); });Nachtrag bezüglich der Beatmungsplätze:
1500 Intfälle, davon 1100 beatmet = Anteil 73,333%
https://m.focus.de/gesundheit/news/coronavirus-news-trump-befuerchtet-100-000-tote-in-den-usa-nrw-plant-epidemie-gesetz_id_11576018.htmlDE 28k: https://www.bundesgesundheitsministerium.de/presse/interviews/interviews-2020/bams-090320.html
BY 4000: https://www.theeuropean.de/markus-soeder/bayerns-schutzschirm-gegen-corona/
Ich freue mich über jeden weiteren Artikel/valide Quelle mit konkreten Angaben bezüglich der Beatmungsplätze zu den (noch) fehlenden Bundesländern! Ich mache das nicht für mich.
-
@S0NIC sagte in Test Coronavirus Statistics for ioBroker:
Anhand der Zahlen und öffentlichen Informationen kann auch berechnet werden, wann in Deutschland die Beatmungsgeräte (schätzungsweise) zu 100% ausgelastet sind:
Jein. Hier in der Region gibt es ein Krankenhaus das stillgelegt, aber noch nicht zurückgebaut wurde. Derzeit werden dort knapp 40 Intensivplätze wieder reaktiviert. Die Anzahl der Beatmungsplätze kenne ich allerdings nicht.
Diese Plätze tauchen auch derzeit in keiner Statistik auf weil sie ja eigentlich nicht existent sind.
Aber das Problem dürften vermutlich nicht die Plätze sein sondern die Personalstärke diese Plätze zu betreuen.Stimmt, aber es gibt Quellen...
-> https://www.divi.de/register/intensivregister?view=items&start
-> https://forum.iobroker.net/topic/31245/test-coronavirus-statistics-for-iobroker/378 -
Anbei der aktuelle countryTranslator:
{ "Libyan_Arab_Jamahiriya": "Libya", "Syrian_Arab_Republic": "Syria", "Lao_People's_Democratic_Republic": "Laos", "Tanzania,_United_Republic_of": "Tanzania", "Congo,_the_Democratic_Republic_of_the": "Democratic Republic of the Congo", "Coast_D'Ivoire": "Ivory Coast", "Palestinian_Territory,_Occupied": "Palestinian Territory", "Venezuela,_Bolivarian_Republic_of": "Venezuela", "Viet_Nam": "Vietnam", "Moldova,_Republic_of": "Moldova", "Bosnia": "Bosnia and Herzegovina", "Macedonia,_the_former_Yugoslav_Republic_of": "Macedonia", "Iran,_Islamic_Republic_of": "Iran", "Holy_See_(Vatican_City_State)": "Vatican" }@Scrounger dafür kommt aber nun dieses bei allen neu hinzugefügten, als Beispiel Tanzania....
coronavirus-statistics.0 2020-03-26 22:50:03.965 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.deathsPerOneMillion changed to coronavirus-statistics.0.Tanzania__United_Republic_of.deathsPerOneMillion coronavirus-statistics.0 2020-03-26 22:50:03.853 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.casesPerOneMillion changed to coronavirus-statistics.0.Tanzania__United_Republic_of.casesPerOneMillion coronavirus-statistics.0 2020-03-26 22:50:03.810 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.critical changed to coronavirus-statistics.0.Tanzania__United_Republic_of.critical coronavirus-statistics.0 2020-03-26 22:50:03.789 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.active changed to coronavirus-statistics.0.Tanzania__United_Republic_of.active coronavirus-statistics.0 2020-03-26 22:50:03.768 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.recovered changed to coronavirus-statistics.0.Tanzania__United_Republic_of.recovered coronavirus-statistics.0 2020-03-26 22:50:03.689 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.todayDeaths changed to coronavirus-statistics.0.Tanzania__United_Republic_of.todayDeaths coronavirus-statistics.0 2020-03-26 22:50:03.563 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.deaths changed to coronavirus-statistics.0.Tanzania__United_Republic_of.deaths coronavirus-statistics.0 2020-03-26 22:50:03.518 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.todayCases changed to coronavirus-statistics.0.Tanzania__United_Republic_of.todayCases coronavirus-statistics.0 2020-03-26 22:50:03.383 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.cases changed to coronavirus-statistics.0.Tanzania__United_Republic_of.cases coronavirus-statistics.0 2020-03-26 22:50:02.790 warn (12113) Used invalid characters: coronavirus-statistics.0.Tanzania,_United_Republic_of.flag changed to coronavirus-statistics.0.Tanzania__United_Republic_of.flag -
nach welchem wert richtet sich denn die Top 5 - > Cases?
- China: 81285
- USA: 82179
müsste USA nicht jetzt auf Platz 1 stehen, mit den meisten infizierten Menschen?
@dos1973 wenn ich mir den Code richtig anschaue, dann kann der Programmierer dieses Widgets das nicht ändern, da diese Daten in exakt dieser Reihenfolge von der ab zu rufenden Seite übergeben werden. Das müsste dann der ändern, der die abzurufende Seite zur Verfügung stellt.
-
Anbei der aktuelle countryTranslator:
{ "Libyan_Arab_Jamahiriya": "Libya", "Syrian_Arab_Republic": "Syria", "Lao_People's_Democratic_Republic": "Laos", "Tanzania,_United_Republic_of": "Tanzania", "Congo,_the_Democratic_Republic_of_the": "Democratic Republic of the Congo", "Coast_D'Ivoire": "Ivory Coast", "Palestinian_Territory,_Occupied": "Palestinian Territory", "Venezuela,_Bolivarian_Republic_of": "Venezuela", "Viet_Nam": "Vietnam", "Moldova,_Republic_of": "Moldova", "Bosnia": "Bosnia and Herzegovina", "Macedonia,_the_former_Yugoslav_Republic_of": "Macedonia", "Iran,_Islamic_Republic_of": "Iran", "Holy_See_(Vatican_City_State)": "Vatican" }@Scrounger
aktuelle countryTranslator:hallo kann mir mal einer helfen stehe auf dem schlauch wo ich das genau einfüge
bei NATIV oder RAW oder ganz wo anderdanke
-
@Scrounger
aktuelle countryTranslator:hallo kann mir mal einer helfen stehe auf dem schlauch wo ich das genau einfüge
bei NATIV oder RAW oder ganz wo anderdanke
-
@Scrounger
aktuelle countryTranslator:hallo kann mir mal einer helfen stehe auf dem schlauch wo ich das genau einfüge
bei NATIV oder RAW oder ganz wo anderdanke
-
-
-
@sigi234
@Scrounger
Jup Danke euch zweien jetzt hab auch ich es kapierthttps://forum.iobroker.net/post/400701
https://forum.iobroker.net/post/401110 -
nach welchem wert richtet sich denn die Top 5 - > Cases?
- China: 81285
- USA: 82179
müsste USA nicht jetzt auf Platz 1 stehen, mit den meisten infizierten Menschen?
@dos1973 habe gerade ein Issue erstellt, da ich herausgefunden habe, dass die Abfrage der API für die Top5 ein bisschen verändert werden müsste, damit es in der richtigen Reihenfolge dann auch abgefragt wird.
-
Be jedem Aufruf kommen diese Warn-Meldungen
coronavirus-statistics.0 2020-03-27 20:00:23.179 warn (1939) Libyan_Arab_Jamahiriya not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:22.989 warn (1939) Holy_See_(Vatican_City_State) not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:22.930 warn (1939) Syrian_Arab_Republic not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:22.819 warn (1939) Lao_People's_Democratic_Republic not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:22.228 warn (1939) Tanzania,_United_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:21.965 warn (1939) Congo,_the_Democratic_Republic_of_the not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:21.701 warn (1939) Palestinian_Territory,_Occupied not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:21.629 warn (1939) Coast_D'Ivoire not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:21.585 warn (1939) Venezuela,_Bolivarian_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:19.638 warn (1939) Moldova,_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:19.554 warn (1939) Bosnia not found in lib! Must be added to the country name translator. -
Be jedem Aufruf kommen diese Warn-Meldungen
coronavirus-statistics.0 2020-03-27 20:00:23.179 warn (1939) Libyan_Arab_Jamahiriya not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:22.989 warn (1939) Holy_See_(Vatican_City_State) not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:22.930 warn (1939) Syrian_Arab_Republic not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:22.819 warn (1939) Lao_People's_Democratic_Republic not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:22.228 warn (1939) Tanzania,_United_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:21.965 warn (1939) Congo,_the_Democratic_Republic_of_the not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:21.701 warn (1939) Palestinian_Territory,_Occupied not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:21.629 warn (1939) Coast_D'Ivoire not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:21.585 warn (1939) Venezuela,_Bolivarian_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:19.638 warn (1939) Moldova,_Republic_of not found in lib! Must be added to the country name translator. coronavirus-statistics.0 2020-03-27 20:00:19.554 warn (1939) Bosnia not found in lib! Must be added to the country name translator.3 Beiträge unten.......
