GithubHelp home page GithubHelp logo

drozmotix / iobroker.coronavirus-statistics Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 19.0 1.65 MB

Adapter to show Global Corona Virus information and current reports

License: MIT License

HTML 40.15% CSS 0.68% JavaScript 59.16%
corona coronavirus coronavirus-info coronavirus-real-time coronavirus-tracker coronavirus-tracking covid-19 iobroker vis

iobroker.coronavirus-statistics's People

Contributors

alcalzone avatar dependabot[bot] avatar dutchmannl avatar germanbluefox avatar iobroker22 avatar jey-cee avatar jlssmt avatar kampfratte avatar klvn avatar lembnau avatar lindi200000 avatar scrounger avatar simatec avatar snyk-bot avatar stan23 avatar yazgoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.coronavirus-statistics's Issues

Testing Update to js-controller 3

Updated the js-controller to v3.

Log entry

coronavirus-statistics.0 2020-04-08 20:15:23.110 warn (8779) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-04-08 20:15:23.109 warn (8779) Object countryTranslator is invalid: obj.type has to exist

Berlin districts not resolved

Hi,
when selecting Berlin, districts are not resolved and are hence not in the list of objects. There is an error log per district: "Unknown Bezirk received containing {"attributes":...".

Upgrade from 0.57 to 0.59 fails

Hello,

I try to update the adapter from version 0.57 to 0.59 but it fails. Log details here:

*2020-04-26 14:09:21.883 - �[32minfo�[39m: host.server iobroker upgrade coronavirus-statistics
2020-04-26 14:09:23.001 - �[32minfo�[39m: host.server iobroker Update coronavirus-statistics from @0.5.7 to @0.5.9
2020-04-26 14:09:24.122 - �[32minfo�[39m: host.server iobroker NPM version: 6.14.4
2020-04-26 14:09:24.123 - �[32minfo�[39m: host.server iobroker npm install [email protected] --loglevel error --prefix "C:/iobroker" (System call)
2020-04-26 14:09:25.467 - �[32minfo�[39m: host.server iobroker npm
2020-04-26 14:09:25.468 - �[32minfo�[39m: host.server iobroker ERR! Cannot read property 'resolve' of undefined
2020-04-26 14:09:25.476 - �[32minfo�[39m: host.server iobroker
2020-04-26 14:09:25.477 - �[32minfo�[39m: host.server iobroker npm ERR! A complete log of this run can be found in:npm ERR! C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm-cache_logs\2020-04-26T12_09_25_467Z-debug.log
2020-04-26 14:09:25.501 - �[32minfo�[39m: host.server iobroker upload [4] coronavirus-statistics.admin C:/iobroker/node_modules/iobroker.coronavirus-statistics/admin/words.js words.js application/javascript
2020-04-26 14:09:25.639 - �[32minfo�[39m: host.server iobroker upload [3] coronavirus-statistics.admin C:/iobroker/node_modules/iobroker.coronavirus-statistics/admin/style.css style.css text/css
2020-04-26 14:09:25.711 - �[32minfo�[39m: host.server iobroker upload [2] coronavirus-statistics.admin C:/iobroker/node_modules/iobroker.coronavirus-statistics/admin/index_m.html index_m.html text/html
2020-04-26 14:09:25.779 - �[32minfo�[39m: host.server iobroker upload [1] coronavirus-statistics.admin C:/iobroker/node_modules/iobroker.coronavirus-statistics/admin/coronavirus-statistics.png coronavirus-statistics.png image/png
2020-04-26 14:09:25.843 - �[32minfo�[39m: host.server iobroker upload [0] coronavirus-statistics.admin C:/iobroker/node_modules/iobroker.coronavirus-statistics/admin/admin.d.ts admin.d.ts video/mp2t
2020-04-26 14:09:25.898 - �[32minfo�[39m: host.server iobroker Adapter "coronavirus-statistics" updated
2020-04-26 14:09:26.917 - �[32minfo�[39m: host.server iobroker exit 0

Für einige Länder fehlt "cases per million", bzw. es wird "1" angezeigt

Zuerst einmal DANKE und Respekt für die tolle Arbeit, auch wenn das Thema Corona selbst weniger angenehm ist.

Ich weiss nicht ob das Problem mit den gelieferten Werten oder der App selbst zusammenhängt.
Bei mir fehlen bei einigen Ländern seit zwei Tagen die "cases per million", d.h. es steht dort nur die Ziffer 1. Z.B. Italien und Spanien.
grafik
Habe auch schon eine neue Instanz angelegt, dabei ändert sich nichts.

Add 7 day incidence for all countries

Hi

Thanks for this really great adapter! One nice to have enhancement is the 7 day incidence for all countries. This would ease the post processing a lot.

Thanks for listening
Daniel

Erweiterte Einstellungen nicht möglich

Ich würde gern für Deutschland spezielle Landkreise auswählen.
Leider sind alle Schalter in den erweiterten Einstellungen deaktiviert.
Ich habe den Adapter bereits mehrmals neu installiert (ohne Erfolg).
Der ioBroker läuft bei mir auf einem RPI 4 mit 4GB RAM und etlichen weiteren Adaptern.

German specific tables do not load

Expected behavior when not selected to receive information (get federal states and counties)

ToDo : Ensure in frontend tables are not loaded when not used

Some strange logs...

That´s in my log by starting the adapter:

coronavirus-statistics.0 2020-03-23 16:43:00.881 info (31228) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
coronavirus-statistics.0 2020-03-23 16:43:00.407 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:59.980 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:59.729 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:59.433 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:59.095 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:58.792 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:58.557 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:58.451 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:58.450 warn (31228) Turks_and_Caicos not found in lib! Must be added to the country name translator.
coronavirus-statistics.0 2020-03-23 16:42:58.250 warn (31228) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-23 16:42:58.000 warn (31228) State attribute definition missing for + countryInfo

state update

Please only update states if a change has also been made.

This endpoint has been deprecated...Values missing

Hi,
today I discovered I am missing values, restart did not hep. So I checked the Log
`

coronavirus-statistics.0 2020-04-17 11:45:24.021 info (13670) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
coronavirus-statistics.0 2020-04-17 11:45:24.020 error (13670) [loadCountries] error: 410 - "{"message":"This endpoint has been deprecated. Use /v2/countries instead.","docs":"http://corona.lmao.ninja/docs\"}", stack: StatusCodeError: 410 - "{"mes
coronavirus-statistics.0 2020-04-17 11:45:23.859 error (13670) [loadAll] error: 410 - "{"message":"This endpoint has been deprecated. Use /v2/all instead.","docs":"http://corona.lmao.ninja/docs\"}", stack: StatusCodeError: 410 - "{"message":"Thi
coronavirus-statistics.0 2020-04-17 11:45:14.521 info (13670) starting. Version 0.5.5 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v10.19.0
coronavirus-statistics.0 2020-04-17 11:39:06.652 info (13547) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
coronavirus-statistics.0 2020-04-17 11:39:06.651 error (13547) [loadCountries] error: 410 - "{"message":"This endpoint has been deprecated. Use /v2/countries instead.","docs":"http://corona.lmao.ninja/docs\"}", stack: StatusCodeError: 410 - "{"mes
coronavirus-statistics.0 2020-04-17 11:39:06.513 error (13547) [loadAll] error: 410 - "{"message":"This endpoint has been deprecated. Use /v2/all instead.","docs":"http://corona.lmao.ninja/docs\"}", stack: StatusCodeError: 410 - "{"message":"Thi
coronavirus-statistics.0 2020-04-17 11:39:03.619 info (13547) starting. Version 0.5.5 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v10.19.0

`

The countries cannot be selected.

Germany is switched on by default, but it´s not possible to select other countries.

(Ik ben Nederlands maar geboren in Duitsland.
Ik kan Nederlands verstaan, maar ik kan het niet schrijven.
Ik heb tante Google nodig om te helpen :-) )

Issue with Federal states of Germany

Describe the bug
If Federal states are enabled, the log will be spammed with

coronavirus-statistics.0 | 2020-03-24 19:09:57.649 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:57.503 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:57.314 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:57.125 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:56.997 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:56.895 | warn | (2047) State attribute definition missing for + deathsPerOneMillion

To Reproduce
Steps to reproduce the behavior:

  1. Enable "Federal states" (and "Get every federal state", not sure if this is the English translation, I use ioBroker in German language)
  2. Stop, Start, Reload Corona-Adapter
  3. Open log

Expected behavior
No warnings in the log file :D

Screenshots & Logfiles
see above.

Versions:

  • Adapter version: 0.4.0
  • JS-Controller version: 2.2.9
  • Node version: v10.19.0
  • Operating system: Raspbian Buster

Additional context
Looks like this line is involved: https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/blob/147324ecba3f7ac85b34ec84c5f9872afc56dc12/main.js#L258

World_Sum und global_totals

Hallo

ich hätte da mal eine Frage. Der Zweig World_Sum und global_total zeigt doch die Zahlen Weltweit ein. Müssten dann die Zahlen der einzelnen nicht identisch sein? Das sind sie bei mir nämlich nicht, wie man dem angehängten Screen entnehmen kann.
Bildschirmfoto 2020-03-29 um 13 00 48

[v0.5.1] Instance crash loop

Describe the bug
Crash loop of adapter instance. Instance is constantly restarting ( Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason).

To Reproduce
Steps to reproduce the behavior:

  1. Start instance

Expected behavior
Instance not crashing.

Screenshots & Logfiles
image

Versions:

  • Adapter version: 0.5.1
  • JS-Controller version: 2.2.9
  • Node version: v10.19.0
  • Operating system: Raspbian Buster

Additional info:
Already tried the following to solve the problem:

  • delete full objecte tree and restart adapter
  • update latest version vom Github

Adapter configuration:

system.adapter.coronavirus-statistics.0.json.txt

die Berechnung der Faelle pro Million bei den Kontinenten scheint falsch zu sein.

In der Berechnung der Cases per Million scheint ein Fehler zu sein.
Beispiel Amerika:
Amerika

Active: 48380
casesPerOneMillion 2198
48380 Cases/2198 casesPerOne Million = 22,01 Mio (Einwohner)
Dies würde bedeuten, dass Amerika ca 22 Mio Einwohner hätte.
Laut Wikipedia hat Amerika jedoch 911 Mio Einwohner.

Die Berechnung der casesPerOneMillion muss also lauten:
48380 Cases/911 Mio = 53,1 casesPerOne Million

Das gleiche gilt für die anderen Kontinente.

History Fortschreibung auch bei gleichen Werten

Gefühlt seit dem letzten Update werden History-Werte in sql.0 auch geschrieben, wenn diese nicht geändert wurden. Bei anderen Adaptern habe ich das Problem nicht.

Einstellung History:

image

Geschriebene Werte (ich habe den Aufruf auf 3 Stunden runter gesetzt:

image

Verhalten tritt erst nach letztem Update auf:

image

Danke für den Adapter!

Gruß, Ralf

Missing Counter for Quarantaine

Is it possible to add a Countdown for Quarantaine Time remaining?

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

ioBroker Version auf 0.4.0

Hi,

vielen Dank für den den Adapter.

In meiner ioBroker Instanz wird der Adapter nicht aktualisiert und steht auf Version 0.4.0. Des Weitern werden die Zahlen außer für Deutschland nicht mehr aktualisiert. Handelt es sich hierbei um ein lokales Problem?

Viele Grüße,
Bastian

Fehler für Berliner Bezirke obwohl Berlin nicht genutzt wird !?

Hallo, seit heute habe ich plötzlich folgende Fehler im Log. Scheinen ja alles Berliner Bezirke zu sein, ich nutze aber Berlin nicht. Muss ich mir Gedanken machen ?

`

coronavirus-statistics.0 2020-05-14 16:00:50.451 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":415,"GEN":"Berlin Tempelhof-Schöneberg","BEZ":"Bezirk","death_rate":3.24074074074074,"cases":648,"deaths":21,"cases_per_100k":184.
coronavirus-statistics.0 2020-05-14 16:00:50.451 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":414,"GEN":"Berlin Friedrichshain-Kreuzberg","BEZ":"Bezirk","death_rate":1.02459016393443,"cases":488,"deaths":5,"cases_per_100k":1
coronavirus-statistics.0 2020-05-14 16:00:50.450 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":413,"GEN":"Berlin Mitte","BEZ":"Bezirk","death_rate":1.19176598049837,"cases":923,"deaths":11,"cases_per_100k":240.256968232979,"c
coronavirus-statistics.0 2020-05-14 16:00:50.450 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":412,"GEN":"Berlin Steglitz-Zehlendorf","BEZ":"Bezirk","death_rate":2.30326295585413,"cases":521,"deaths":12,"cases_per_100k":168.7
coronavirus-statistics.0 2020-05-14 16:00:50.449 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":411,"GEN":"Berlin Spandau","BEZ":"Bezirk","death_rate":2.29007633587786,"cases":262,"deaths":6,"cases_per_100k":107.387171741599,"
coronavirus-statistics.0 2020-05-14 16:00:50.446 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":410,"GEN":"Berlin Marzahn-Hellersdorf","BEZ":"Bezirk","death_rate":0.595238095238095,"cases":336,"deaths":2,"cases_per_100k":125.1
coronavirus-statistics.0 2020-05-14 16:00:50.445 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":409,"GEN":"Berlin Lichtenberg","BEZ":"Bezirk","death_rate":3.2967032967033,"cases":273,"deaths":9,"cases_per_100k":93.668940340090
coronavirus-statistics.0 2020-05-14 16:00:50.426 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":408,"GEN":"Berlin Neukölln","BEZ":"Bezirk","death_rate":4.29184549356223,"cases":699,"deaths":30,"cases_per_100k":212.016706552499
coronavirus-statistics.0 2020-05-14 16:00:50.426 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":407,"GEN":"Berlin Pankow","BEZ":"Bezirk","death_rate":3.81679389312977,"cases":655,"deaths":25,"cases_per_100k":160.631736416809,"
coronavirus-statistics.0 2020-05-14 16:00:50.425 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":406,"GEN":"Berlin Treptow-Köpenick","BEZ":"Bezirk","death_rate":2.6865671641791,"cases":335,"deaths":9,"cases_per_100k":123.546484
coronavirus-statistics.0 2020-05-14 16:00:50.425 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":405,"GEN":"Berlin Charlottenburg-Wilmersdorf","BEZ":"Bezirk","death_rate":3.05555555555556,"cases":720,"deaths":22,"cases_per_100k
coronavirus-statistics.0 2020-05-14 16:00:50.411 error (24053) Unknown Bezirk received containing {"attributes":{"OBJECTID":404,"GEN":"Berlin Reinickendorf","BEZ":"Bezirk","death_rate":4.35684647302905,"cases":482,"deaths":21,"cases_per_100k":181.7324912

`

npm install ioBroker.coronavirus-statistics delivers 404

!!! Before you start !!!

  1. Verify if there is not already an issue requesting the same
  2. Is this realy a bug of current code or an enhancement request ?

Describe the bug
A clear and concise description of what the bug is.
D:>npm install ioBroker.coronavirus-statistics
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/ioBroker.coronavirus-statistics - Not found
npm ERR! 404
npm ERR! 404 'ioBroker.coronavirus-statistics@latest' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404 1. name can no longer contain capital letters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

https://registry.npmjs.org/ioBroker.coronavirus-statistics => {"error":"Not found"}

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'ioBroker.coronavirus-statistics' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 16868aeef1422015
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 404 https://registry.npmjs.org/ioBroker.coronavirus-statistics 3857ms
8 http fetch GET 404 https://registry.npmjs.org/ioBroker.coronavirus-statistics 1073ms
9 silly fetchPackageMetaData error for ioBroker.coronavirus-statistics@latest 404 Not Found - GET https://registry.npmjs.org/ioBroker.coronavirus-statistics - Not found
10 timing stage:rollbackFailedOptional Completed in 1ms
11 timing stage:runTopLevelLifecycles Completed in 8912ms
12 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/ioBroker.coronavirus-statistics - Not found
12 verbose stack at res.buffer.catch.then.body (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:104:15)
12 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)
13 verbose statusCode 404
14 verbose pkgid ioBroker.coronavirus-statistics@latest
15 verbose cwd D:
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "ioBroker.coronavirus-statistics"
18 verbose node v10.16.0
19 verbose npm v6.9.0
20 error code E404
21 error 404 Not Found - GET https://registry.npmjs.org/ioBroker.coronavirus-statistics - Not found
22 error 404
23 error 404 'ioBroker.coronavirus-statistics@latest' is not in the npm registry.
24 error 404 Your package name is not valid, because
25 error 404 1. name can no longer contain capital letters
26 error 404 Note that you can also install from a
27 error 404 tarball, folder, http url, or git url.
28 verbose exit [ 1, true ]

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:

D:>node -v
v10.16.0

  • Operating system:

Windows 10

Additional context
Add any other context about the problem here.

Installed iobroker-1.5.14.b-windows-installer.exe

New Cases

Wäre es möglich yesterdayCases und yesterdayDeaths zu implementieren?

Possibility to only request Country

Could we get a possibility to pick certain Countrys in an option menu?
It reduces the load on the API and not everyone needs all the data from ever country.

Thanks :)

Adpater throws error messages about iterations

Describe the bug
See log. Looks like a bug to me. Happens after updating to 0.6.2

Expected behavior
A working adapter.

Versions:

  • Adapter version: 0.6.2
  • JS-Controller version: 3.1.6
  • Node version: 12.19.0
  • Operating system: Linux arm

Screenshots & Logfiles

2020-11-04 10:00:56.700 - error: coronavirus-statistics.0 (14707) [germanyFederalStates] error: values.features is not iterable, stack: TypeError: values.features is not iterable
--
at germanyBundersland (/opt/iobroker/node_modules/iobroker.coronavirus-statistics/main.js:302:35)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Covid19.onReady (/opt/iobroker/node_modules/iobroker.coronavirus-statistics/main.js:529:5)
2020-11-04 10:00:56.710 - error: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
2020-11-04 10:00:56.711 - error: coronavirus-statistics.0 (14707) unhandled promise rejection: Cannot read property 'captureException' of undefined
2020-11-04 10:00:56.712 - error: coronavirus-statistics.0 (14707) TypeError: Cannot read property 'captureException' of undefined
at Covid19.errorHandling (/opt/iobroker/node_modules/iobroker.coronavirus-statistics/main.js:686:37)
at germanyBundersland (/opt/iobroker/node_modules/iobroker.coronavirus-statistics/main.js:389:11)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Covid19.onReady (/opt/iobroker/node_modules/iobroker.coronavirus-statistics/main.js:529:5)
2020-11-04 10:00:57.263 - info: coronavirus-statistics.0 (14707) terminating
2020-11-04 10:00:57.266 - info: coronavirus-statistics.0 (14707) Terminated (NO_ERROR): Without reason
2020-11-04 10:00:57.802 - info: host.Casper instance system.adapter.coronavirus-statistics.0 terminated with code 0 (NO_ERROR)


German Federal States for Vis widget

Hi,

i am using 4.2 combined with the covid-19 info widget. I´m not able to choose the federal states of germany in the dropdown. Is it possible at the moment?

Would be nice to display those values, aswell.

e: nvm changed to materialdesign

State attribute definition missing for + countryInfo

Aktuell kommt es zum folgenden Fehler...

coronavirus-statistics.0 2020-03-24 10:30:36.909 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:36.777 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:36.657 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:36.536 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:36.367 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:36.248 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:36.075 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:35.890 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:35.883 warn (18092) Turks_and_Caicos not found in lib! Must be added to the country name translator.
coronavirus-statistics.0 2020-03-24 10:30:34.089 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:33.930 warn (18092) State attribute definition missing for + countryInfo
coronavirus-statistics.0 2020-03-24 10:30:28.217 warn (18092) Error getting API response, will retry at next shedule

It slows down ioBroker

First: This is a very useful program and I would like to thank the programmer.

But:
I use a Raspberry 4, actually fast enough.
However, I have a rather slow internet connection.
It is around 9.7 Mbit / s.

If the instance is installed, the connection to the script page is interrupted every 15 minutes. So whenever the app updates.
In addition, ioBroker then does not respond to my voice instructions.

It would be great if the data that was needed were adjustable.
I personally only need "global", "Germany" and "Norway".

Objects not updating

Hello,

i am running the coronavirus-statistics adapter on 2 different RPis. Currently i am having problems on one of them getting the objects updated (initially i could not select the countries, it just loaded and loaded). Now i am able to select the countries and it adds the corresponding new objects, but the 15min update of the objects is not working. Have tried reinstalling the adapter, that does an update for the moment, but that is about it. Sometimes i am also not able to remove the instance and objects created by the adapter.

On the second RPi everything seems to be running fine. Any ideas what might cause this?

Adrian

After deleting adapter and trying to access settings
grafik

grafik

widget

Platform
Windows
Betriebssystem
win32
Architektur
x64
CPUs
16
Geschwindigkeit
2800 MHz
Modell
Intel(R) Xeon(R) CPU X5560 @ 2.80GHz
RAM
23.99 GB
System Betriebszeit
00:12:37
Node.js
v12.18.3
NPM
6.14.6

my location are not working in widget
Luxembourg
widget is empty but data exist in iobroker
Untitled

coronavirus-statistics.0 2020-09-03 23:37:00.156 warn (6280) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-09-03 23:37:00.155 warn (6280) Object coronavirus-statistics.0.Luxembourg.criticalPerOneMillion is invalid: obj.common.type has an invalid value (value) but has to be one of number, string, boolean, array, object, mixed, fi
coronavirus-statistics.0 2020-09-03 23:37:00.148 warn (6280) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-09-03 23:37:00.148 warn (6280) Object coronavirus-statistics.0.Luxembourg.recoveredPerOneMillion is invalid: obj.common.type has an invalid value (value) but has to be one of number, string, boolean, array, object, mixed, f
coronavirus-statistics.0 2020-09-03 23:37:00.140 warn (6280) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-09-03 23:37:00.140 warn (6280) Object coronavirus-statistics.0.Luxembourg.activePerOneMillion is invalid: obj.common.type has an invalid value (value) but has to be one of number, string, boolean, array, object, mixed, file
coronavirus-statistics.0 2020-09-03 23:37:00.134 warn (6280) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-09-03 23:37:00.133 warn (6280) Object coronavirus-statistics.0.Luxembourg.oneTestPerPeople is invalid: obj.common.type has an invalid value (value) but has to be one of number, string, boolean, array, object, mixed, file, j
coronavirus-statistics.0 2020-09-03 23:37:00.126 warn (6280) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-09-03 23:37:00.126 warn (6280) Object coronavirus-statistics.0.Luxembourg.oneDeathPerPeople is invalid: obj.common.type has an invalid value (value) but has to be one of number, string, boolean, array, object, mixed, file,
coronavirus-statistics.0 2020-09-03 23:37:00.120 warn (6280) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-09-03 23:37:00.119 warn (6280) Object coronavirus-statistics.0.Luxembourg.oneCasePerPeople is invalid: obj.common.type has an invalid value (value) but has to be one of number, string, boolean, array, object, mixed, file, j
coronavirus-statistics.0 2020-09-03 23:37:00.107 warn (6280) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-09-03 23:37:00.106 warn (6280) Object coronavirus-statistics.0.Luxembourg.population is invalid: obj.common.type has an invalid value (value) but has to be one of number, string, boolean, array, object, mixed, file, json
coronavirus-statistics.0 2020-09-03 23:37:00.061 warn (6280) This object will not be created in future versions. Please report this to the developer.
coronavirus-statistics.0 2020-09-03 23:37:00.061 warn (6280) Object coronavirus-statistics.0.Luxembourg.todayRecovered is invalid: obj.common.type has an invalid value (value) but has to be one of number, string, boolean, array, object, mixed, file, jso
coronavirus-statistics.0 2020-09-03 23:36:59.930 warn (3200) Terminated (ADAPTER_ALREADY_RUNNING): Without reason

München is shown twice in the options (and LK München missing?)

In version 0.4.5 in the advanced settings, the county "München" is shown twice (and selecting one will save both but in the objects, there is obviously just one "München").
Since I couldn't find the county "Landkreis München" I assume that simply one of these two "Münchens" is supposed to be the LK but since they are called the same it is not possible to select it (or the city is not selectable and only the LK is, who knows).

Thousands-Sign for Numbers

First of all, thanks for the adapter!

I have just one idea for improvement. Even though it is quite sad, but the numbers are raising in most countries, and already reached thousands. To read it better, would it be possible to add a thousands sign (e.g. 1.200) to the widget? Or is this something which should be done via css?

Kind regards,
Jack

Warning messages in log

The log shows some warnings and some errors. The errors are for a not selected information. I dont need the information of Berlin.
Fehler

Zahlen werden nicht mehr aktualisiert

Seit dem letzten Update werden bei mir die Daten nicht mehr aktualisiert. Das letzte Update ist laut Anzeige vom Samstag 04.04.2020.

Neustart des Adapters hat keine Verbesserung gebracht.

Adapter wird nicht beendet

Guten morgen zusammen

ich habe des öfteren das Problem, dass der Adapter nach der API-Abfrage sich nicht beendet und ich dann nur folgende Fehlermeldung bekomme. Wenn ich dann pkill io.corona im Shell eingebe, läuft der Adapter wieder ne Zeit lang wie gewohnt.

Bildschirmfoto 2020-04-24 um 07 48 42

Top 5 countries

Can you add a category Top 10 countries of cases and death?

Hallo,

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

How to get the program working?

!!! Before you start !!!!
Verify if there is not already an issue requesting the same Enhancement

Describe wanted Enhancement !
A clear description of the wanted functionality

Please give a step by step instruction. Your fine work is in vain if users cannot use it.

Why should we put effort in it ?
Please add some additional information why this Enhancement should be integrated

I spent quite some time to find my way and switched to https://github.com/ahmadawais/corona-cli to get going, but I do not get there what I want (see ahmadawais/corona-cli#94). I hope corona-virus-statistics answers some of the questions I have.

Additional context
Add any other context about the problem here.

I am on windows (my linux box runs without a graphical interface), so I installed iobroker-1.5.14.b-windows-installer.exe. At first run, it showed a lot (guess: 50-100) adapters. I managed to install corona-virus-statistics, so I thought.

Next I had to reboot my machine. ioBroker had only 3 adapters then. No idea where all the others had gone. I installed corona-virus-statistics again (alternative command ./iobroker url "https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/tarball/master" coronavirus-statistics). It looked right and took some time, and when I looked again, I still had 3 adapters. No corona-virus-statistics. I could not believe it and repeated the procedure, with the same result.

Now what?

Obviously, your pals know what to do. I dont't and run out of ideas.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.