• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-COVID19

Scheduled Pinned Locked Moved Health
63 Posts 25 Posters 21.2k Views 24 Watching
Loading More Posts
  • 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 Offline
    start-the-fire
    last edited by Mar 23, 2020, 9:42 AM

    @almostgithub
    First you need to add the module “twice” into your config: MagicMirrorFolder/config/config.js

    modules: [
                   
                    {
                        module: 'MMM-COVID19'
                      },
    etc ...
    

    afterwards you need to enter your preferred settings & variables

     {
                        module: 'MMM-COVID19',
                          position: "bottom_bar",
                          config: {
    
                          header: "COVID-19 Stats",
                          worldStats: true,
                          rapidapiKey: "yourverylongapikey",
                          orderCountriesByName: "false",
                          countries: [ "Austria", "Germany", "Italy" ],
                          updateInterval: 10000000,
                          lastUpdateInfo: "true",
                          headerRowClass: "small",
                          infoRowClass: "medium",
                                }
                      },
    

    Let me know if this solves your problem

    1 Reply Last reply Reply Quote 0
    • F Offline
      fireport @totof60
      last edited by Mar 23, 2020, 10:07 AM

      @totof60 Thank you. Now it works.

      T 1 Reply Last reply Mar 23, 2020, 1:01 PM Reply Quote 0
      • T Offline
        totof60 @fireport
        last edited by Mar 23, 2020, 1:01 PM

        @fireport :winking_face:

        1 Reply Last reply Reply Quote 0
        • A Offline
          almostgithub @bibaldo
          last edited by Mar 24, 2020, 1:38 AM

          @bibaldo checked all that, was all working fine. Ended up rebooting my PI and it came up flawlessly!

          Thank you

          1 Reply Last reply Reply Quote 0
          • L Offline
            Lordy
            last edited by Mar 24, 2020, 11:31 AM

            Hello,

            First of all thanks for the exact status.
            How can I rename “Confirmed, Deaths, …”, since older people live in the house and only speak your mother tongue?
            This is not meant to be evil or racist.
            So, once again, our heartfelt thanks to the Forum.

            I 1 Reply Last reply Mar 24, 2020, 10:41 PM Reply Quote 0
            • A Offline
              asdean
              last edited by Mar 24, 2020, 5:24 PM

              This is awesome! Anyway to add individual States in the United States? For instance California, Michigan, New York?

              R 1 Reply Last reply Mar 25, 2020, 6:00 PM Reply Quote 1
              • I Offline
                irich @Lordy
                last edited by irich Mar 24, 2020, 10:45 PM Mar 24, 2020, 10:41 PM

                @Lordy Hello, you can change this in the MMM-COVID19.js (you find it in /MagicMirror/modules/MMM-COVID19) .

                   .......
                    headerconfirmedCell.innerHTML = 'Confirmed'
                    .....
                    headerNewConfirmedCell.innerHTML = 'New Cases'
                    .....
                    headerdeathsCell.innerHTML = 'Deaths'
                    ......
                    headerNewDeathsCell.innerHTML = 'New Deaths'
                    ......
                    header.recoveredCell.innerHTML = 'Recovered'
                    ......
                    headeractiveCell.innerHTML = 'Active'
                ....
                
                

                Just type in the “” the text you would like to see on the module.

                i have translated it into german

                headerCountryNameCell.innerHTML = ''
                    headerconfirmedCell.className = 'number confirmed ' + this.config.headerRowClass
                    headerconfirmedCell.innerHTML = 'Bestätigt'
                    headerNewConfirmedCell.className = 'number confirmed ' + this.config.headerRowClass
                    headerNewConfirmedCell.innerHTML = 'Neue Fälle'
                    headerdeathsCell.className = 'number deaths ' + this.config.headerRowClass
                    headerdeathsCell.innerHTML = 'Tote'
                    headerNewDeathsCell.className = 'number deaths ' + this.config.headerRowClass
                    headerNewDeathsCell.innerHTML = 'Neue Tote'
                    headerrecoveredCell.className = 'number recovered ' + this.config.headerRowClass
                    headerrecoveredCell.innerHTML = 'Erholt'
                    headeractiveCell.className = 'number active ' + this.config.headerRowClass
                    headeractiveCell.innerHTML = 'Aktiv'
                

                Just replace the part.
                Ersetze einfach die Stelle

                L Z 2 Replies Last reply Mar 25, 2020, 8:22 AM Reply Quote 0
                • L Offline
                  Lordy @irich
                  last edited by Mar 25, 2020, 8:22 AM

                  @irich said in MMM-COVID19:
                  Das ist genau was ich haben wollte.
                  Kann man die Umbenennung auch irgendwie Config eintragen, nicht das Änderung beim nächsten Update abhanden kommt?

                  Thank you:thumbs_up_medium-light_skin_tone:
                  Can you enter the renaming somehow Config, not that the change is lost in the next update?

                  1 Reply Last reply Reply Quote 0
                  • Z Offline
                    Zinkeler @irich
                    last edited by Mar 25, 2020, 11:10 AM

                    @irich Hallo, das hab ich auch schon geschafft. Weiß denn jemand, wie ich die “,” durch “.” ersetzen kann. Will anstatt 434,595 das deutsche Format haben.
                    Danke für eventuelle Antworten.

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by A Former User Mar 25, 2020, 12:53 PM Mar 25, 2020, 12:34 PM

                      This post is deleted!
                      ? 1 Reply Last reply Mar 26, 2020, 4:19 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 2 / 7
                      2 / 7
                      • First post
                        20/63
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy