Read the statement by Michael Teeuw here.
MMM-COVID19
-
@paulie420 The RapidAPI seems to be working fine. No need to pay. Can you post your config?
-
@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”,
}
}, -
@mumblebaj Same problem here. Looks like its paid now. curl shows “You are not subscribed to this API”
-
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 wellrapidhost
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’ -
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", } },
-
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
-
@dubalda when u use the url in a browser does it return the right data?
-
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
-
@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
-
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.