Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Coronavirus Statistics for ioBroker

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Test Coronavirus Statistics for ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      deta Most Active @Dutchman last edited by deta

      @Dutchman
      1700603a-bf31-4969-861c-811b65b69c94-grafik.png

      Kann man irgendwie in dem Widget auch z.b. eine Region anzeigen lassen. Region Hannover oder nur Niedersachsen.
      Oder ist noch ein anderes Widget was ich noch nicht gesehen habe.

      cu Deta

      1 Reply Last reply Reply Quote 0
      • D
        deta Most Active @Dutchman last edited by deta

        Hat sich erledigt, hatte falsch gedacht.

        Was mir noch fehlt ist der Vergleich zum Vortag

        1 Reply Last reply Reply Quote 0
        • D
          deta Most Active @jlssmt last edited by

          @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
          
          J 1 Reply Last reply Reply Quote 0
          • J
            jlssmt @deta last edited by

            @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));
            }
            
            D 1 Reply Last reply Reply Quote 0
            • D
              deta Most Active @jlssmt last edited by

              @jlssmt Wo muss das genau rein? Hab noch ein JavaScript angelegt extra. Aber trotzdem die Fehlermeldung? Muss das ein bestimmten Namen haben?

              J 1 Reply Last reply Reply Quote 0
              • J
                jlssmt @deta last edited by

                @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:
                6e311678-2670-44d9-850c-900cd625d30a-image.png
                f92c5098-c8a2-4986-b3e1-5c618a07a794-image.png

                D 1 Reply Last reply Reply Quote 0
                • Nashra
                  Nashra Most Active Forum Testing last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • D
                    deta Most Active @jlssmt last edited by deta

                    @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.

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jlssmt @deta last edited by jlssmt

                      @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 😉

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        deta Most Active @jlssmt last edited by

                        @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..

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          jlssmt @deta last edited by

                          @deta
                          Du musst die einfach mal anschauen, was die total cases today sind.
                          Das sind nicht die heutigen neuen Zahlen, sondern die Zahlen seit Ausbruch der Pandemie.

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            deta Most Active @jlssmt last edited by

                            @jlssmt Werde ich morgen sehen, hatte noch gesehen, das ich ein Datenpunkt noch nicht angelegt hatte.
                            Danke erst mal

                            1 Reply Last reply Reply Quote 0
                            • D
                              deta Most Active @Dutchman last edited by deta

                              hat sich erledigt

                              1 Reply Last reply Reply Quote 0
                              • D
                                deta Most Active @Dutchman last edited by

                                @Dutchman Habe gerade diese Seite gefunden, vom RKI Region Hannover,
                                da ist links unten alle einzelenen Orte eingetragen, mit den Zahlen. Sieht doch so aus, als wenn die Daten doch da wo als API zur Verfügung stehen. Ich will jetzt keinen extra Account anlegen wollen um weiter zu Forschen, kannst du das mal bitte Prüfen und wäre toll, diese Unterteilungen auch noch abrufen zu können.
                                https://experience.arcgis.com/experience/7d52c64b899d4d72bde23950dad56ffb
                                b2811f27-1505-42ca-b599-01e27ddab330-grafik.png

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Supermicha last edited by

                                  Moin zusammen

                                  mein Corona-Adapter aktualisiert seit ca. einer Woche nicht mehr.

                                  Wenn ich ihn neu starte, dann kommen 1-2 mal neue Werte rein, danach nichts mehr.

                                  Hier mal das Log von heute Nacht

                                  2020-12-06 04:00:00.014  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-06 04:15:04.045  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-06 04:30:00.014  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-06 04:45:04.048  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-06 05:00:00.016  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-06 05:15:04.055  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-06 05:30:00.015  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-06 05:45:04.044  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-06 06:00:00.014  - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  

                                  und hier mal von eben, da scheint er aktualisiert zu haben...

                                  2020-12-06 14:45:01.173  - debug: coronavirus-statistics.0 (15812) Redis Objects: Use Redis connection: 127.0.0.1:9001
                                  2020-12-06 14:45:01.273  - debug: coronavirus-statistics.0 (15812) Objects client ready ... initialize now
                                  2020-12-06 14:45:01.280  - debug: coronavirus-statistics.0 (15812) Objects create System PubSub Client
                                  2020-12-06 14:45:01.283  - debug: coronavirus-statistics.0 (15812) Objects create User PubSub Client
                                  2020-12-06 14:45:01.286  - debug: coronavirus-statistics.0 (15812) Objects client initialize lua scripts
                                  2020-12-06 14:45:01.326  - debug: coronavirus-statistics.0 (15812) Objects connected to redis: 127.0.0.1:9001
                                  2020-12-06 14:45:01.341  - debug: coronavirus-statistics.0 (15812) objectDB connected
                                  2020-12-06 14:45:01.345  - debug: coronavirus-statistics.0 (15812) Redis States: Use Redis connection: 127.0.0.1:9000
                                  2020-12-06 14:45:01.363  - debug: coronavirus-statistics.0 (15812) States create User PubSub Client
                                  2020-12-06 14:45:01.369  - debug: coronavirus-statistics.0 (15812) States create System PubSub Client
                                  2020-12-06 14:45:01.405  - debug: coronavirus-statistics.0 (15812) States connected to redis: 127.0.0.1:9000
                                  2020-12-06 14:45:01.407  - debug: coronavirus-statistics.0 (15812) statesDB connected
                                  2020-12-06 14:45:02.369  - debug: coronavirus-statistics.0 (15812) Plugin sentry Initialize Plugin (enabled=true)
                                  2020-12-06 14:45:02.594  - info: coronavirus-statistics.0 (15812) starting. Version 0.6.3 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v12.20.0, js-controller: 3.1.6
                                  2020-12-06 14:45:02.636  - debug: coronavirus-statistics.0 (15812) Configuration object before config load : {"deleteUnused":true,"getContinents":true,"getGermanyFederalStates":true,"getGermanyCities":true,"getGermanyCounties":false,"getAllGermanyFederalStates":true,"getAllGermanyCities":false,"getAllGermanyCounties":false,"loadAllCountrys":false,"selectedGermanyFederalStates":[],"selectedGermanyCities":["Rostock"],"selectedGermanyCounties":[],"countries":["Australia","Austria","China","Denmark","Germany","Italy","Poland","Russia","Spain","Switzerland","United Kingdom","United States"]}
                                  2020-12-06 14:45:07.054  - debug: coronavirus-statistics.0 (15812) Data from COVID-19 API received : [object Object]
                                  2020-12-06 14:45:07.055  - debug: coronavirus-statistics.0 (15812) Create_state called for : global_totals.updated with value : 1607261771117
                                  2020-12-06 14:45:07.056  - debug: coronavirus-statistics.0 (15812) Write value : false
                                  2020-12-06 14:45:07.108  - debug: coronavirus-statistics.0 (15812) Create_state called for : global_totals.cases with value : 66991090
                                  2020-12-06 14:45:07.109  - debug: coronavirus-statistics.0 (15812) Write value : false
                                  2020-12-06 14:45:07.129  - debug: coronavirus-statistics.0 (15812) Create_state called for : global_totals.todayCases with value : 150887
                                  2020-12-06 14:45:07.131  - debug: coronavirus-statistics.0 (15812) Write value : false
                                  2020-12-06 14:45:07.151  - debug: coronavirus-statistics.0 (15812) Create_state called for : global_totals.deaths with value : 1536864
                                  2020-12-06 14:45:07.153  - debug: coronavirus-statistics.0 (15812) Write value : false
                                  2020-12-06 14:45:07.177  - debug: coronavirus-statistics.0 (15812) Create_state called for : global_totals.todayDeaths with value : 3033
                                  2020-12-06 14:45:07.177  - debug: coronavirus-statistics.0 (15812) Write value : false
                                  2020-12-06 14:45:07.232  - debug: coronavirus-statistics.0 (15812) Create_state called for : global_totals.recovered with value : 46364717
                                  2020-12-06 14:45:07.234  - debug: coronavirus-statistics.0 (15812) Write value : false
                                  
                                  ...
                                  
                                  2020-12-06 14:46:17.832  - debug: coronavirus-statistics.0 (15812) Plugin sentry destroyed
                                  2020-12-06 14:46:17.833  - info: coronavirus-statistics.0 (15812) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                  

                                  Kann mir da keinen Reim drauf machen, woran es liegen könnte... Sieht für mich unauffällig aus...

                                  auch wenn ich ihn jetzt nach dem Adapter-Neustart beobachte, läuft alles glatt, aber irgendwann scheint er sich auszuklinken... habe ihn gestern abend mal komplett deinstalliert und wieder neu installiert, danach lief alles gut. und als ich heute früh geguckt habe, war die letzte Aktualisierung 23:15....

                                  das log von gestern abend mal vollständig...
                                  (da stand die Log-Stufe allerdings nur auf Info)

                                  2020-12-05 22:30:02.380 - info: coronavirus-statistics.0 (22350) starting. Version 0.6.3 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v12.20.0, js-controller: 3.1.6
                                  2020-12-05 22:31:12.416 - info: coronavirus-statistics.0 (22350) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                  2020-12-05 22:45:07.100 - info: coronavirus-statistics.0 (2844) starting. Version 0.6.3 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v12.20.0, js-controller: 3.1.6
                                  2020-12-05 22:46:11.495 - info: coronavirus-statistics.0 (2844) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                  2020-12-05 23:00:02.370 - info: coronavirus-statistics.0 (15530) starting. Version 0.6.3 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v12.20.0, js-controller: 3.1.6
                                  2020-12-05 23:01:06.733 - info: coronavirus-statistics.0 (15530) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                  2020-12-05 23:15:07.221 - info: coronavirus-statistics.0 (28230) starting. Version 0.6.3 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v12.20.0, js-controller: 3.1.6
                                  2020-12-05 23:30:00.029 - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  2020-12-05 23:45:04.050 - warn: host.ioBroker instance system.adapter.coronavirus-statistics.0 already running with pid 28230
                                  

                                  um 23:30 kommt die erste Warnung...

                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    kwittig @Supermicha last edited by

                                    @Supermicha
                                    Das Problem hatte ich auch, es half nur die Instance zu deinstallieren und neu zu installieren.
                                    Anscheinend wird der Adapter manchmal nach der Abfrage der Daten nicht richtig beendet.
                                    Beim nächsten Startversuch tritt dann der Fehler auf.
                                    Seit dem ich die Abfragezeit auf 30 Minuten eingestellt habe, ist das nicht mehr vorgekommen.
                                    Gruss Klaus

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bauerpower last edited by

                                      Hallo zusammen,

                                      kurze Frage ... von der Logik her sollte das Bundesland eigentlich höhere Zahlen haben als
                                      der Kreis... oder !!??

                                      Habe mir die Datenpunkte angesehen und die sind richtig?

                                      18b2b2ee-abc8-470f-860f-b79503180d67-image.jpeg

                                      Liebe Grüsse

                                      Jörg

                                      K 1 Reply Last reply Reply Quote 0
                                      • K
                                        kwittig @bauerpower last edited by

                                        @bauerpower
                                        Das sind die Fälle je 100K in 7 Tagen. warum sollten diese unbedingt im gesamten Bundesland grösser sein?

                                        B 1 Reply Last reply Reply Quote 0
                                        • B
                                          bauerpower @kwittig last edited by

                                          @kwittig
                                          Alles klar Du hast Recht... ich war so mit dem implementieren beschäftigt das ich nur die Zahlen betrachtet habe!

                                          Lieben Dank!

                                          Jörg

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            deta Most Active last edited by deta

                                            Kann es sein, das die API hinterher hängt?
                                            Ich update immer immer um 00:00 Uhr die Daten. Denke das ist der Schnittpunkt oder?
                                            Heute z.b.
                                            Deutschlandzahlen lt. Abfrage API 28179,
                                            aber direkt auf der RKi Seite 29.875

                                            Wie kommt das zustande?

                                            767b693d-b41a-4d17-ad21-21ebca8b0a7f-grafik.png

                                            lobomau 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter installation adapterentwicklung testen
                                            120
                                            1177
                                            232142
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo