MMM-COVID19
MMM-COVID19 copied to clipboard
Fairly new to this and have a question
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!
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.