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

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Coronavirus Statistics for ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • Latzi
      Latzi @MartyBr last edited by

      @MartyBr sagte in Test Coronavirus Statistics for ioBroker:

      Im VIS Editor? Ich habe den ioBroker schon neu gestartet, finde ihn aber nicht

      benutzt du Firefox? Da hab ich auch das Problem gehabt (trotz cache leeren). Mit Chrome hat´s funktioniert.

      M 1 Reply Last reply Reply Quote 0
      • M
        MartyBr @Latzi last edited by

        @Latzi
        Nein Safari (Mac). Habe Safari neu gestartet und nun ist es da!
        Vielen Dank

        1 Reply Last reply Reply Quote 0
        • C
          Coffeelover @stimezo last edited by

          @stimezo Würdest du deine VIS teilen?

          1 Reply Last reply Reply Quote 0
          • L
            leif1 last edited by

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

            sigi234 1 Reply Last reply Reply Quote 0
            • sigi234
              sigi234 Forum Testing Most Active @leif1 last edited by

              @leif1 sagte in Test Coronavirus Statistics for ioBroker:

              Bei einem Land steht "Ich rannte"

              Und Diamantprinzessin

              1 Reply Last reply Reply Quote 0
              • harrym
                harrym last edited by

                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

                sigi234 1 Reply Last reply Reply Quote 0
                • sigi234
                  sigi234 Forum Testing Most Active @harrym last edited by

                  @harrym sagte in Test Coronavirus Statistics for ioBroker:

                  Bei uns in D sieht es derzeit anders aus

                  Und Warum wohl ?

                  harrym 1 Reply Last reply Reply Quote 0
                  • harrym
                    harrym @sigi234 last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • sigi234
                      sigi234 Forum Testing Most Active @Dutchman last edited by sigi234

                      @All

                      View fertig.

                      Screenshot (2058).png

                      crunchip Uli977 2 Replies Last reply Reply Quote 2
                      • crunchip
                        crunchip Forum Testing Most Active @sigi234 last edited by

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

                        sigi234 1 Reply Last reply Reply Quote 0
                        • sigi234
                          sigi234 Forum Testing Most Active @crunchip last edited by

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

                          1 Reply Last reply Reply Quote 0
                          • Latzi
                            Latzi last edited by

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

                            Bluefox 1 Reply Last reply Reply Quote 0
                            • Bluefox
                              Bluefox @Latzi last edited by

                              @Latzi Fixed in 0.2.2

                              1 Reply Last reply Reply Quote 2
                              • C
                                Coffeelover last edited by

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

                                Dutchman 1 Reply Last reply Reply Quote 0
                                • Dutchman
                                  Dutchman Developer Most Active Administrators @Coffeelover last edited by

                                  @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 Reply Quote 1
                                  • C
                                    Coffeelover @Dutchman last edited by 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.

                                    Latzi 1 Reply Last reply Reply Quote 0
                                    • Latzi
                                      Latzi @Coffeelover last edited by

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

                                      1 Reply Last reply Reply Quote 2
                                      • Dominik F.
                                        Dominik F. last edited by

                                        @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 Reply Quote 0
                                        • Scrounger
                                          Scrounger Developer last edited by

                                          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();
                                          
                                          
                                          sigi234 Dutchman Uli977 3 Replies Last reply Reply Quote 1
                                          • 1Topf
                                            1Topf @sigi234 last edited by

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

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            585
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter installation adapterentwicklung testen
                                            120
                                            1177
                                            245998
                                            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