• 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 25.9k 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 @bibaldo
    last edited by Mar 22, 2020, 4:09 PM

    @bibaldo Thank you very much

    Looks great - One visual add-on towards headerRowClass would be the option to change also the size of the country names and the numbers. Those are quite big.
    I think the best would be to add two additional size classes for the country/numbers and one of the main header

    All the best!

    1 Reply Last reply Reply Quote 0
    • B Offline
      bobwilliams
      last edited by Mar 22, 2020, 5:57 PM

      how to resize letters

      1 Reply Last reply Reply Quote 1
      • A Offline
        almostgithub
        last edited by almostgithub Mar 22, 2020, 7:11 PM Mar 22, 2020, 6:49 PM

        Love how simple this looks! Having a little trouble pulling from the API however… I put in my API key but nothing displays under the “confirmed Deaths recovered active” header bar.

        Not getting any errors, only thing i changed was adding in the x-rapidapi key from the link. do i need to add the host as well?

        Thanks and stay safe! @bibaldo

        ? 1 Reply Last reply Mar 26, 2020, 12:29 PM Reply Quote 0
        • B Offline
          bibaldo
          last edited by Mar 22, 2020, 7:54 PM

          @bobwilliams I’ve added new configuration for the letter font-size. Please read again the README

          @almostgithub you have to put your rapidapikey at your global config file only.
          If you have more issues, please output here your logs.

          A 1 Reply Last reply Mar 22, 2020, 9:54 PM Reply Quote 0
          • A Offline
            almostgithub @bibaldo
            last edited by Mar 22, 2020, 9:54 PM

            @bibaldo No errors or warnings related to the COVID-19 module in my logs. In my main config.js file i just copied your sample and then changed the API key. Was i supposed to do anything else?

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil
              last edited by Mar 22, 2020, 10:14 PM

              see another tracker, with line charts

              https://forum.magicmirror.builders/topic/12387/covid-bell-curve-line-graph-tracker

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • B Offline
                bibaldo
                last edited by Mar 23, 2020, 1:58 AM

                @almostgithub no, nothing more than that (if you have the module up-to-date).
                I would suggest you to perform a curl from your magicmirror (raspi or whatever) and check if the API is responding well.

                A 1 Reply Last reply Mar 24, 2020, 1:38 AM Reply Quote 0
                • D Offline
                  dc331903
                  last edited by Mar 23, 2020, 4:25 AM

                  Nice job! Looking good and thank you for the additions.

                  To add to that ordering of countries by name… allowing the ‘countries’ list to set the order. It looks like ‘orderCountriesbyName’ alphabetizes them, but I wasn’t able to figure out how to have them list in any other way.

                  Great job getting this going so quickly and appreciate it. Always like to have current information showing.

                  My Sample Code:

                   {
                      module: 'MMM-COVID19',
                      position: 'top_left',
                      config: {
                        updateInterval: 300000,
                        orderCountriesByName: true,
                        worldStats: true,
                        countries: [ "Canada", "Italy", "USA", "Mexico" ],
                        headerRowClass: "medium",
                        infoRowClass: "small",
                        rapidapiKey : “xxxxxxxxxxx ADD YOUR OWN API KEY xxxxxxxxx”  \
                      }
                    },
                  
                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fireport
                    last edited by fireport Mar 23, 2020, 6:40 AM Mar 23, 2020, 6:30 AM

                    I have no output in my MagicMirror and no error in log file. I tried a curl and the output it’s ok.

                    curl -H "x-rapidapi-host: coronavirus-monitor.p.rapidapi.com" -H "x-rapidapi-key: mykey"  'https://coronavirus-monitor.p.rapidapi.com/coronavirus/cases_by_country.php'
                    

                    This is my config:

                    {
                       module: 'MMM-COVID19',
                       config: {
                           position: 'top_center',
                         updateInterval: 300000,
                         worldStats: true,
                         countries: [  "Italy" ],
                         headerRowClass: "small",
                         rapidapiKey : "my api key" 
                       }
                     },
                    

                    Any suggestion ?

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      totof60
                      last edited by totof60 Mar 23, 2020, 8:11 AM Mar 23, 2020, 8:05 AM

                      @fireport
                      i suggest you, in the config, to put the " position" before “config”

                      {
                          module: "MMM-COVID19",
                      	position: "top_center",
                          config: {
                            updateInterval: 300000,
                            worldStats: true,
                            countries: [ "France", "China", "Italy", "Spain" ],
                            headerRowClass: "small",
                            rapidapiKey : "xxxxxxxxxxxxxxxxxx" 
                          }
                        },
                      
                      F 1 Reply Last reply Mar 23, 2020, 10:07 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 1 / 7
                      1 / 7
                      • First post
                        10/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