MMM-COVID19 icon indicating copy to clipboard operation
MMM-COVID19 copied to clipboard

Fairly new to this and have a question

Open hlbringas opened this issue 4 years ago • 1 comments

at the end of the page, the author says to use the endpoints from the API page but doesn't explain where they are to go. If anyone can help me out or show me anything I may be missing, I would really appreciate it!

hlbringas avatar Jan 09 '21 03:01 hlbringas

You have to change endpoints within https://github.com/bibaldo/MMM-COVID19/blob/master/node_helper.js

var byCountryUrl = 'https://coronavirus-monitor.p.rapidapi.com/coronavirus/cases_by_country.php'
var worldStatsUrl = 'https://coronavirus-monitor.p.rapidapi.com/coronavirus/worldstat.php'

Further, you have to provide the correct value for 'x-rapidapi-host': 'coronavirus-monitor.p.rapidapi.com' in both functions getGlobalStats and getStatsByCoutry

Unfortunately this API is not free anymore, you have to subscribe at least for basic access which means $0.01 / request.

JAusD avatar Jan 10 '21 22:01 JAusD