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 33.7k 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
      Saeijou
      last edited by Saeijou

      I don’t know what I am doing wrong, I can’t get it to work.

      I have that in my config:

       {
          module: 'MMM-COVID19',
          positon: "top_left",
          config: {
            updateInterval: 300000,
            worldStats: true,
            countries: ["Germany","USA"],
            headerRowClass: "small",
            rapidapiKey: "API_KEY"
          }
        },
      

      when I execute the curl command posted here I also get an output with my API key.

      I am not 100% sure what is meant with “posting it twice”, why would that be?

      Thank you for any help!

      Edit: MM is loading normally - no errors. the module is just not there

      H 1 Reply Last reply Reply Quote 0
      • H Offline
        hweigel @Saeijou
        last edited by

        @Saeijou said in MMM-COVID19:

        positon

        Hey @Saeijou,

        try using

        position: "top_left",
        

        instead of

        positon: "top_left",
        

        That should do the trick :-)

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          Saeijou @hweigel
          last edited by

          @hweigel OH MY GOODNESS!!! I debugged that thing for HOURS! thank you so much :)

          1 Reply Last reply Reply Quote 1
          • K Offline
            KD
            last edited by sdetweil

            Hi Guys, I cannot get this to work - not sure what i am doing wrong…i can only see the header displaying and nothing else… please help! my config looks like this:

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

            Many Thanks in advance

            S mumblebajM 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @KD
              last edited by

              @KD please use code block marks , mark the text and hit the </> button

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                KD @sdetweil
                last edited by

                @sdetweil Will do thank you - apologies i am new first post actually :)

                1 Reply Last reply Reply Quote 0
                • P Offline
                  paulie420
                  last edited by

                  Ok, I pulled the MMM-Covid19 git. I added the module in config.js, and entered my APIkey… However, it only displays the COVID-19 title and no data.
                  Am I correct in stating that its not working because now rapidapi has made the coronavirus monitor API paid? Because I think I have it all setup correctly, I notice that the API in rapidapi states PAID, and nothing shows… I want Covid data; is there a way, or am I doing something wrong? OR do I just need to pay and then it’ll show up??

                  mumblebajM 1 Reply Last reply Reply Quote 0
                  • mumblebajM Offline
                    mumblebaj Module Developer @KD
                    last edited by

                    @KD remove the comma after “medium” and you should be fine.

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories
                    Check my blog-post: https://mumblebaj.xyz/
                    Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                    1 Reply Last reply Reply Quote 0
                    • mumblebajM Offline
                      mumblebaj Module Developer @paulie420
                      last edited by

                      @paulie420 The RapidAPI seems to be working fine. No need to pay. Can you post your config?

                      Check out my modules at: https://github.com/mumblebaj?tab=repositories
                      Check my blog-post: https://mumblebaj.xyz/
                      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                      J A 2 Replies Last reply Reply Quote 0
                      • J Offline
                        Joeri @mumblebaj
                        last edited by Joeri

                        @mumblebaj Hello, I’ve got the same problem, this is my config.

                        {
                        module: “MMM-COVID19”,
                        position: “lower_third”,
                        config: {
                        updateInterval: 300000,
                        worldStats: true,
                        delta: true,
                        headerRowClass: ‘small’,
                        orderCountriesByName: “false”,
                        lastUpdateInfo: true,
                        countries: [ “Argentina”, “USA” ],
                        headerRowClass: “small”,
                        infoRowClass: “medium”,
                        rapidapiKey : “MY KEY”,
                        }
                        },

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          andfha @mumblebaj
                          last edited by

                          @mumblebaj Same problem here. Looks like its paid now. curl shows “You are not subscribed to this API”

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            menckow
                            last edited by

                            There are two versions of the api. A paid and a freemium version. The freemium one is the V2!
                            If you want to use the freemium version you will have to edit the node_helper.js file in the module directory (MMM-COVID19) and change the rapidapihost entry and the GET URL as well

                            rapidhost
                            NEW: “x-rapidapi-host”: “coronavirus-monitor-v2.p.rapidapi.com”,
                            OLD: “x-rapidapi-host”: “coronavirus-monitor.p.rapidapi.com”,

                            GET URL
                            NEW: ‘https://coronavirus-monitor-V2.p.rapidapi.com/coronavirus/cases_by_country.php’
                            OLD: ‘https://coronavirus-monitor.p.rapidapi.com/coronavirus/worldstat.php’

                            1 Reply Last reply Reply Quote 1
                            • I Offline
                              Indiz
                              last edited by Indiz

                              Bonjour j’ai le même problème, je n’ai que le titre COVID-19 qui apparait et aucunes données.
                              Voici ma config:

                              {
                              	module: "MMM-COVID19",
                              	position: "top_right",
                              	config: {
                              	  updateInterval: 300000,
                              	  worldStats: true,
                              	  delta: true,
                              	  lastUpdateInfo: true,
                              	  countries: [ "USA", "France", "Spain" ],
                              	  headerRowClass: "small",
                              	  rapidapiKey : "KEY",
                              	}
                              },
                              
                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                dubalda
                                last edited by

                                Hi guys,

                                I’m not getting much luck getting this to work. I just get the header and no errors in the log.

                                {
                                module: “MMM-COVID19”,
                                position: “top_left”,
                                config: {
                                updateInterval: 300000,
                                worldStats: true,
                                delta: true,
                                lastUpdateInfo: true,
                                countries: [ “Argentina”, “China”, “Italy”, “Spain” ],
                                headerRowClass: “small”,
                                rapidapiKey : “xxx”
                                }
                                },

                                I’ve also amended the node_helper.js for the module to include the new rapidhost URLs

                                var byCountryUrl = ‘https://coronavirus-monitor-V2.p.rapidapi.com/coronavirus/cases_by_country.php’

                                getGlobalStats: function(key) {
                                var self = this
                                var options = {
                                method: ‘GET’,
                                url: worldStatsUrl,
                                headers: {
                                //‘x-rapidapi-host’: ‘coronavirus-monitor.p.rapidapi.com’,
                                ‘x-rapidapi-host’: ‘coronavirus-monitor-v2.p.rapidapi.com’,
                                ‘x-rapidapi-key’: key
                                }
                                }

                                getStatsByCoutry: function(key) {
                                var self = this
                                var options = {
                                method: ‘GET’,
                                url: byCountryUrl,
                                headers: {
                                //‘x-rapidapi-host’: ‘coronavirus-monitor.p.rapidapi.com’,
                                ‘x-rapidapi-host’: ‘coronavirus-monitor-v2.p.rapidapi.com’,
                                ‘x-rapidapi-key’: key
                                }
                                }

                                Any help would be great!

                                Thanks

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @dubalda
                                  last edited by

                                  @dubalda when u use the url in a browser does it return the right data?

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    dubalda
                                    last edited by

                                    Hi Sam,

                                    I just get "{“message”:“Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info.”}

                                    Sorry, perhaps I missing something here…are you refering this URL

                                    https://coronavirus-monitor-V2.p.rapidapi.com/coronavirus/cases_by_country.php

                                    Thx

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @dubalda
                                      last edited by sdetweil

                                      @dubalda whatever api you use. i always test in a browser first.

                                      u need to add the apikey to the url

                                      i am making it up (not exact text) cause i am on my phone in hospital

                                      url.php&api_key=whatever is the key

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        dubalda
                                        last edited by

                                        Sorry to hear you’re in hospital! Hopefully it’s nothing to serious.

                                        I tried…

                                        https://coronavirus-monitor.p.rapidapi.com/coronavirus/united_states_cases.php&api_key=xxx

                                        and received.

                                        {“message”:“Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info.”}

                                        RapidAPI does see it’s free service. I’ve amened the entries in node_helper.js back to the their defaults but still no joy there. Very strange.

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sdetweil @dubalda
                                          last edited by sdetweil

                                          @dubalda free and requiring a key are different.

                                          if u require a key you know who consumes your service

                                          i said dont take my words exactly.

                                          what does the service say is the apikey parameter name, exact spelling

                                          this aint magic, its grunt work getting the parms right

                                          i do my.own covid charts MyCovid19, see

                                          https://github.com/sdetweil/MyCovid19

                                          they have changed the data on me 3 times in a year. hard to keep up

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            dubalda
                                            last edited by

                                            I’ve tried…

                                            curl -H “x-rapidapi-host: coronavirus-monitor-v2.p.rapidapi.com” -H “x-rapidapi-key: xxx” ‘https://coronavirus-monitor-v2.p.rapidapi.com/coronavirus/cases_by_country.php’

                                            And have copied the key (copy/paste) exactly from the website but get the message…

                                            “message”:“You are not subscribed to this API.”

                                            I think I’ll just get the Covid numbers from the news! Thanks for your help @sdetweil !

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              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