NEWS
Test Coronavirus Statistics for ioBroker
-
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@latest
Adapter 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.countryTranslator
you 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
-
Hallo, wie kann ich das Widget anwenden?
Erledigt, ein Neustart hat geholfen. -
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
COVID-19
coronavirus-statistics.0 2020-03-16 13:29:07.148 error at endReadableNT (_stream_readable.js:1145:12) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at IncomingMessage.emit (events.js:203:15) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Object.onceWrapper (events.js:286:20) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at IncomingMessage.<anonymous> (C:\Program Files\iobroker\Test\node_modules\request\request.js:1076:12) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.emit (events.js:198:13) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.<anonymous> (C:\Program Files\iobroker\Test\node_modules\request\request.js:1154:10) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.emit (events.js:198:13) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.self.callback (C:\Program Files\iobroker\Test\node_modules\request\request.js:185:22) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.request [as _callback] (C:\Program Files\iobroker\Test\node_modules\iobroker.coronavirus-statistics\main.js:51:26) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at JSON.parse (<anonymous>) coronavirus-statistics.0 2020-03-16 13:29:07.148 error (14256) SyntaxError: Unexpected end of JSON input coronavirus-statistics.0 2020-03-16 13:29:07.148 error (14256) uncaught exception: Unexpected end of JSON input
-
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
COVID-19
coronavirus-statistics.0 2020-03-16 13:29:07.148 error at endReadableNT (_stream_readable.js:1145:12) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at IncomingMessage.emit (events.js:203:15) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Object.onceWrapper (events.js:286:20) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at IncomingMessage.<anonymous> (C:\Program Files\iobroker\Test\node_modules\request\request.js:1076:12) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.emit (events.js:198:13) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.<anonymous> (C:\Program Files\iobroker\Test\node_modules\request\request.js:1154:10) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.emit (events.js:198:13) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.self.callback (C:\Program Files\iobroker\Test\node_modules\request\request.js:185:22) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at Request.request [as _callback] (C:\Program Files\iobroker\Test\node_modules\iobroker.coronavirus-statistics\main.js:51:26) coronavirus-statistics.0 2020-03-16 13:29:07.148 error at JSON.parse (<anonymous>) coronavirus-statistics.0 2020-03-16 13:29:07.148 error (14256) SyntaxError: Unexpected end of JSON input coronavirus-statistics.0 2020-03-16 13:29:07.148 error (14256) uncaught exception: Unexpected end of JSON input
das passiert wen die API nicht erreichbar ist, keine sorge nach 15 min probieren wir es nochmal.
Ich spiele mit dem Gedanken direkt einen retry ein zu bauen aber denke mal 15 min ist ok damit die API auch nicht überlastet wird -
sollte mit 0.2.0 nicht mehr passieren
-
Test:
In der Land Liste sind undefinierbare Länder drinnen
Wünsche:
Ein DP als Table
Land ein/aus blendbar
Zahlen konfigurierbar -
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
Ein DP als Table
gerne gitissue erstellen, kan ich es abarbeiten
Land ein/aus blendbar
same here
Zahlen konfigurierbar
sie meinen ?
-
-
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
sie meinen ?
Größe änderbar
welche Größe ?
-
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
sie meinen ?
Größe änderbar
welche Größe ?
-
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
@Dutchman sagte in Test Coronavirus Statistics for ioBroker:
sie meinen ?
Größe änderbar
welche Größe ?
da bin ich raus @Bluefox war so nett die zu machen front-end ist nicht meine stärke
-
coronavirus-statistics.0 2020-03-16 15:18:59.329 info (13556) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason coronavirus-statistics.0 2020-03-16 15:18:55.508 warn (13556) State attribute definition missing for + updated coronavirus-statistics.0 2020-03-16 15:18:50.119 info (13556) starting. Version 0.2.0 in C:/Program Files/iobroker/Test/node_modules/iobroker.coronavirus-statistics, node: v10.16.3
-
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
Hallo, wie kann ich das Widget anwenden?
Die Frage stellt sich mir auch, dummerweise hat ein Neustart mir nicht die Augen geöffnet. Kannst du mir bitte weiterhelfen?
-
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
coronavirus-statistics.0 2020-03-16 15:18:59.329 info (13556) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason coronavirus-statistics.0 2020-03-16 15:18:55.508 warn (13556) State attribute definition missing for + updated coronavirus-statistics.0 2020-03-16 15:18:50.119 info (13556) starting. Version 0.2.0 in C:/Program Files/iobroker/Test/node_modules/iobroker.coronavirus-statistics, node: v10.16.3
Habe das WARN auch
-
@Latzi sagte in Test Coronavirus Statistics for ioBroker:
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
Hallo, wie kann ich das Widget anwenden?
Die Frage stellt sich mir auch, dummerweise hat ein Neustart mir nicht die Augen geöffnet. Kannst du mir bitte weiterhelfen?
-
Habt ihr auch ein Problem mit der Darstellung?
Unterste Zeile...
-
CSS Font und Text
-
Kann man sich aber auch schnell selber basteln :
Gruß
Christian -
Kannst du die Icons zur Verfügung stellen?
-
@sigi234 sagte in Test Coronavirus Statistics for ioBroker:
Kannst du die Icons zur Verfügung stellen?
Per mail?
Gruß
Christian