Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Tester
  4. Test Coronavirus Statistics for ioBroker

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.9k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

Test Coronavirus Statistics for ioBroker

Scheduled Pinned Locked Moved Tester
adapter installationadapterentwicklungtesten
1.2k Posts 120 Posters 357.4k Views 94 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S stimezo

    Kann man sich aber auch schnell selber basteln :-) :

    Unbenannt-1.jpg

    Gruß
    Christian

    C Offline
    C Offline
    Coffeelover
    wrote on last edited by
    #28

    @stimezo Würdest du deine VIS teilen?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leif1
      wrote on last edited by
      #29

      Danke, läuft einwandfrei. Bei einem Land steht "Ich rannte". Auto Complete beim Iran? :)

      sigi234S 1 Reply Last reply
      0
      • L leif1

        Danke, läuft einwandfrei. Bei einem Land steht "Ich rannte". Auto Complete beim Iran? :)

        sigi234S Online
        sigi234S Online
        sigi234
        Forum Testing Most Active
        wrote on last edited by
        #30

        @leif1 sagte in Test Coronavirus Statistics for ioBroker:

        Bei einem Land steht "Ich rannte"

        Und Diamantprinzessin

        Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
        Immer Daten sichern!

        1 Reply Last reply
        0
        • harrymH Offline
          harrymH Offline
          harrym
          wrote on last edited by
          #31

          es erschreckende derzeit ist eher, dass in A und Co (wo echt harte Maßnahmen getroffen wurden) die Verbreitung stagniert.

          Bei uns in D sieht es derzeit anders aus :/

          Bildschirmfoto vom 2020-03-16 23-53-03.png

          ASRock FM2A88X-ITX+ mit 32GB RAM, 128GB SSD mit Proxmox, 3x1 TB SSD als RAID mit CT und VMs.

          sigi234S 1 Reply Last reply
          0
          • harrymH harrym

            es erschreckende derzeit ist eher, dass in A und Co (wo echt harte Maßnahmen getroffen wurden) die Verbreitung stagniert.

            Bei uns in D sieht es derzeit anders aus :/

            Bildschirmfoto vom 2020-03-16 23-53-03.png

            sigi234S Online
            sigi234S Online
            sigi234
            Forum Testing Most Active
            wrote on last edited by
            #32

            @harrym sagte in Test Coronavirus Statistics for ioBroker:

            Bei uns in D sieht es derzeit anders aus

            Und Warum wohl ?

            Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
            Immer Daten sichern!

            harrymH 1 Reply Last reply
            0
            • sigi234S sigi234

              @harrym sagte in Test Coronavirus Statistics for ioBroker:

              Bei uns in D sieht es derzeit anders aus

              Und Warum wohl ?

              harrymH Offline
              harrymH Offline
              harrym
              wrote on last edited by
              #33

              @sigi234 weil es eben merkel ned so macht wie kurz .... sry 4 OT

              ASRock FM2A88X-ITX+ mit 32GB RAM, 128GB SSD mit Proxmox, 3x1 TB SSD als RAID mit CT und VMs.

              1 Reply Last reply
              0
              • DutchmanD Dutchman
                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.com

                Advanced 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:

                List with country names

                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

                sigi234S Online
                sigi234S Online
                sigi234
                Forum Testing Most Active
                wrote on last edited by sigi234
                #34

                @All

                View fertig.

                Screenshot (2058).png

                Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                Immer Daten sichern!

                crunchipC Uli977U 2 Replies Last reply
                2
                • sigi234S sigi234

                  @All

                  View fertig.

                  Screenshot (2058).png

                  crunchipC Away
                  crunchipC Away
                  crunchip
                  Forum Testing Most Active
                  wrote on last edited by
                  #35

                  @sigi234 hab ich was über-sehen/lesen? Woher kommt der 7te Wert?

                  umgestiegen von Proxmox auf Unraid

                  sigi234S 1 Reply Last reply
                  0
                  • crunchipC crunchip

                    @sigi234 hab ich was über-sehen/lesen? Woher kommt der 7te Wert?

                    sigi234S Online
                    sigi234S Online
                    sigi234
                    Forum Testing Most Active
                    wrote on last edited by
                    #36

                    @crunchip sagte in Test Coronavirus Statistics for ioBroker:

                    @sigi234 hab ich was über-sehen/lesen? Woher kommt der 7te Wert?

                    Gute Frage, kommt vom Widget. In den Objekten gibt es aber nur 6.

                    Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                    Immer Daten sichern!

                    1 Reply Last reply
                    0
                    • LatziL Online
                      LatziL Online
                      Latzi
                      wrote on last edited by
                      #37

                      Der 7. Wert (Aktuell) wird berechnet (Aktuell = Bestätigt - Gesund - Todesfälle, vermute ich) und ein Rechtschreibfehler im widget, "Gesund" anstatt "Gesung".

                      BluefoxB 1 Reply Last reply
                      0
                      • LatziL Latzi

                        Der 7. Wert (Aktuell) wird berechnet (Aktuell = Bestätigt - Gesund - Todesfälle, vermute ich) und ein Rechtschreibfehler im widget, "Gesund" anstatt "Gesung".

                        BluefoxB Offline
                        BluefoxB Offline
                        Bluefox
                        wrote on last edited by
                        #38

                        @Latzi Fixed in 0.2.2

                        1 Reply Last reply
                        2
                        • C Offline
                          C Offline
                          Coffeelover
                          wrote on last edited by
                          #39

                          Habt ihr noch einen Tipp, um das Widget zu sehen?
                          Ich habe schon den Browser-Cache geleert (Firefox und Chrome getestet), den Browser neu gestartet (Firefox und Chrome getestet), den VIS-Adapter neu gestartet. Ich bekomme das VIS nicht angezeigt...

                          DutchmanD 1 Reply Last reply
                          0
                          • C Coffeelover

                            Habt ihr noch einen Tipp, um das Widget zu sehen?
                            Ich habe schon den Browser-Cache geleert (Firefox und Chrome getestet), den Browser neu gestartet (Firefox und Chrome getestet), den VIS-Adapter neu gestartet. Ich bekomme das VIS nicht angezeigt...

                            DutchmanD Offline
                            DutchmanD Offline
                            Dutchman
                            Developer Most Active Administrators
                            wrote on last edited by
                            #40

                            @Coffeelover sagte in Test Coronavirus Statistics for ioBroker:

                            Habt ihr noch einen Tipp, um das Widget zu sehen?

                            system mal neu gestartet ?

                            C 1 Reply Last reply
                            1
                            • DutchmanD Dutchman

                              @Coffeelover sagte in Test Coronavirus Statistics for ioBroker:

                              Habt ihr noch einen Tipp, um das Widget zu sehen?

                              system mal neu gestartet ?

                              C Offline
                              C Offline
                              Coffeelover
                              wrote on last edited by Coffeelover
                              #41

                              @Dutchman Das habe ich gerade erfolgreich nachgeholt. :) Thx.
                              Zumindest so, dass ich das Widget sehe. Für Länder bekomme ich noch keine Zahlen angezeigt. Für "Alle" funktioniert es.

                              LatziL 1 Reply Last reply
                              0
                              • C Coffeelover

                                @Dutchman Das habe ich gerade erfolgreich nachgeholt. :) Thx.
                                Zumindest so, dass ich das Widget sehe. Für Länder bekomme ich noch keine Zahlen angezeigt. Für "Alle" funktioniert es.

                                LatziL Online
                                LatziL Online
                                Latzi
                                wrote on last edited by
                                #42

                                @Coffeelover
                                Iobroker stop vis
                                Iobroker upload vis
                                Iobroker start vis
                                Browser neu starten und Cache leeren

                                1 Reply Last reply
                                2
                                • Dominik F.D Offline
                                  Dominik F.D Offline
                                  Dominik F.
                                  wrote on last edited by
                                  #43

                                  @Dutchman
                                  Vielen Dank für den Adapter. Ich fände es schön, wenn man die Symbole in der Farbe anpassen könnte. Ich nutze einen dunklen Hintergrund und da sind die Symbole schwer erkennbar.

                                  1 Reply Last reply
                                  0
                                  • ScroungerS Offline
                                    ScroungerS Offline
                                    Scrounger
                                    Developer
                                    wrote on last edited by
                                    #44

                                    Da mich schon immer die Werte pro Kontinent intressiert haben, aber ich dazu nix brauchbares im Netz finden kann, hab ich mal ein kleines Skript geschrieben, dass die Daten dieses Adapters verwendet.

                                    Voraussetzung:

                                    • Javascript NPM-Module: country-list-js

                                    Unter der Javascript instanz wird folgende Struktur automatisch angelegt:
                                    c7461f3c-0149-4062-817f-b195e9a6c3a6-grafik.png

                                    Skript:

                                    const countryJs = require("country-list-js");
                                    
                                    let selector = `[id=coronavirus-statistics.0.*.cases]`
                                    let allCountries = $(selector);
                                    
                                    // Fehlermeldung ausgeben, wenn selector kein result liefert
                                    if (allCountries.length === 0) {
                                        console.error(`no result for selector '${selector}'`)
                                    }
                                    
                                    on({ id: 'coronavirus-statistics.0.global_totals.updated', change: 'any' }, statsForContinents);
                                    
                                    function statsForContinents() {
                                        setTimeout(function () {
                                            console.log('Corona Statistik für Kontinente wird erstellt');
                                    
                                            let countryTranslator = {
                                                // https://github.com/i-rocky/country-list-js/blob/master/data/names.json
                                                "Vatican_City": "Vatican",
                                                "USA": "United States",
                                                "UK": "United Kingdom",
                                                "UAE": "United Arab Emirates",
                                                "US_Virgin_Islands": "U.S. Virgin Islands",
                                                "St_Vincent_Grenadines": "Saint Vincent and the Grenadines",
                                                "St_Barth": "Saint Barthelemy",
                                                "S_Korea": "South Korea",
                                                "Palestine": "Palestinian Territory",
                                                "North_Macedonia": "Macedonia",
                                                "Faeroe_Islands": "Faroe Islands",
                                                "Eswatini": "Swaziland",
                                                "Czechia": "Czech Republic",
                                                "Congo": "Republic of the Congo",
                                                "CAR": "Central African Republic",
                                                "DRC": "Democratic Republic of the Congo",
                                                "Channel_Islands": "France"                             // gehört zu Europa, deshalb Frankreich einfach vergeben
                                            }
                                    
                                            var continentsStats = {};
                                            countryJs.continents().forEach(function (continent, index) {
                                                continentsStats[continent] = {
                                                    cases: 0,
                                                    critical: 0,
                                                    deaths: 0,
                                                    recovered: 0,
                                                    todayCases: 0,
                                                    todayDeaths: 0,
                                                }
                                            });
                                    
                                            for (var i = 0; i <= allCountries.length - 1; i++) {
                                                let idCases = allCountries[i];
                                                let idCritical = idCases.replace('.cases', '.critical');
                                                let idDeaths = idCases.replace('.cases', '.deaths');
                                                let idRecovered = idCases.replace('.cases', '.recovered');
                                                let idTodayCases = idCases.replace('.cases', '.todayCases');
                                                let idTodayDeaths = idCases.replace('.cases', '.todayDeaths');
                                    
                                                let countryName = idCases.split('.')[2];
                                    
                                                let country = countryJs.findByName(countryName.replace(/_/g, ' ').replace('é', 'e').replace('ç', 'c'));
                                                if (country) {
                                                    calcStats(country);
                                                } else {
                                                    country = countryJs.findByName(countryTranslator[countryName]);
                                                    if (country) {
                                                        calcStats(country);
                                                    } else {
                                                        if (countryName !== 'global_totals' && countryName !== 'Diamond_Princess') {
                                                            console.warn(`${countryName} nicht in gefunden. Korrekter Name muss im skript manuell hinzugefügt werden!`);
                                                        }
                                                    }
                                                }
                                    
                                                function calcStats(country) {
                                                    if (country.continent) {
                                                        continentsStats[country.continent].cases = continentsStats[country.continent].cases + getState(idCases).val;
                                                        continentsStats[country.continent].critical = continentsStats[country.continent].critical + getState(idCritical).val;
                                                        continentsStats[country.continent].deaths = continentsStats[country.continent].deaths + getState(idDeaths).val;
                                                        continentsStats[country.continent].recovered = continentsStats[country.continent].recovered + getState(idRecovered).val;
                                                        continentsStats[country.continent].todayCases = continentsStats[country.continent].todayCases + getState(idTodayCases).val;
                                                        continentsStats[country.continent].todayDeaths = continentsStats[country.continent].todayDeaths + getState(idTodayDeaths).val;
                                                    } else {
                                                        console.warn(`Für ${countryName} existiert kein Kontinent!`);
                                                    }
                                                }
                                            }
                                    
                                            for (var continent in continentsStats) {
                                                for (var prop in continentsStats[continent]) {
                                                    let dpId = `corona.continents.${continent}.${prop}`
                                    
                                                    if (existsState(dpId)) {
                                                        setState(dpId, continentsStats[continent][prop], true);
                                                    } else {
                                                        createState(dpId, continentsStats[continent][prop], {
                                                            name: `${continent} ${prop}`,
                                                            read: true,
                                                            write: false,
                                                            desc: `${continent} ${prop}`,
                                                            type: "number",
                                                            def: 0,
                                                        });
                                                    }
                                                }
                                            }
                                        }, 30000);
                                    }
                                    
                                    // Bei JS Start ausführen
                                    statsForContinents();
                                    
                                    
                                    sigi234S DutchmanD Uli977U 3 Replies Last reply
                                    1
                                    • sigi234S sigi234

                                      @Tobias

                                      CSS Font und Text

                                      1Topf1 Offline
                                      1Topf1 Offline
                                      1Topf
                                      wrote on last edited by
                                      #45

                                      @sigi234 sagte in Test Coronavirus Statistics for ioBroker:

                                      @Tobias

                                      CSS Font und Text

                                      Ich sehe die unterste Zeile auch kaum bzw. gar nicht, egal welche Schriftart ich einstelle. :confused:

                                      ? 1 Reply Last reply
                                      0
                                      • 1Topf1 1Topf

                                        @sigi234 sagte in Test Coronavirus Statistics for ioBroker:

                                        @Tobias

                                        CSS Font und Text

                                        Ich sehe die unterste Zeile auch kaum bzw. gar nicht, egal welche Schriftart ich einstelle. :confused:

                                        ? Offline
                                        ? Offline
                                        A Former User
                                        wrote on last edited by
                                        #46

                                        @1Topf Dann verbreitere das Widget mal...

                                        ScroungerS 1 Reply Last reply
                                        1
                                        • ? A Former User

                                          @1Topf Dann verbreitere das Widget mal...

                                          ScroungerS Offline
                                          ScroungerS Offline
                                          Scrounger
                                          Developer
                                          wrote on last edited by
                                          #47

                                          @Yetiberg @1Topf

                                          per css könnt ihr gezielt alles einstellen:

                                          .covid-div-title{
                                              color: #44739e;
                                              font-family: RobotoCondensed-Regular;
                                              font-weight: normal !important;
                                              margin-bottom: 4px;
                                          }
                                          
                                          .covid-div-number{
                                              color: gray;
                                              font-family: RobotoCondensed-LightItalic;
                                              margin-top: 2px;
                                          }
                                          
                                          .covid-div-img {
                                              height: 30px !important;
                                          }
                                          
                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          721

                                          Online

                                          32.6k

                                          Users

                                          82.3k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe