Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fairly new to this and have a question #61

Open
hlbringas opened this issue Jan 9, 2021 · 1 comment
Open

Fairly new to this and have a question #61

hlbringas opened this issue Jan 9, 2021 · 1 comment

Comments

@hlbringas
Copy link

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!

@JAusD
Copy link

JAusD commented Jan 10, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants