Read the statement by Michael Teeuw here.
MMM-COVID19
-
Description
MMM-COVID19 allows you to track reported cases of Corona Virus (COVID-19) around the globe.
It has a simple interface and you can put which countries do you want to be listed.The repo is https://github.com/bibaldo/MMM-COVID19 and feel free to open any Issue (suggestions and ideas are more than welcome)
Credits
The data is being updating in real time from rapidadpi API
-
Hi bibaldo,
thanks for this minimal COVID19 stat for the MMM.
Would it be possible to add the world state to the module as well?Stay safe & healthy
-
Yes, it would be nice to have it as an option. I will do my best
-
@start-the-fire I’ve updated the module in order to have worldStats support. You can enable/disable it via config
Enjoy
-
@bibaldo cool… could u not sort the country list
I have 3 of these showing reports… (all different of course)…
-
@bibaldo Thank you very much
Looks great - One visual add-on towards headerRowClass would be the option to change also the size of the country names and the numbers. Those are quite big.
I think the best would be to add two additional size classes for the country/numbers and one of the main headerAll the best!
-
how to resize letters
-
Love how simple this looks! Having a little trouble pulling from the API however… I put in my API key but nothing displays under the “confirmed Deaths recovered active” header bar.
Not getting any errors, only thing i changed was adding in the x-rapidapi key from the link. do i need to add the host as well?
Thanks and stay safe! @bibaldo
-
@bobwilliams I’ve added new configuration for the letter font-size. Please read again the README
@almostgithub you have to put your rapidapikey at your global config file only.
If you have more issues, please output here your logs. -
@bibaldo No errors or warnings related to the COVID-19 module in my logs. In my main config.js file i just copied your sample and then changed the API key. Was i supposed to do anything else?
-
see another tracker, with line charts
https://forum.magicmirror.builders/topic/12387/covid-bell-curve-line-graph-tracker
-
@almostgithub no, nothing more than that (if you have the module up-to-date).
I would suggest you to perform a curl from your magicmirror (raspi or whatever) and check if the API is responding well. -
Nice job! Looking good and thank you for the additions.
To add to that ordering of countries by name… allowing the ‘countries’ list to set the order. It looks like ‘orderCountriesbyName’ alphabetizes them, but I wasn’t able to figure out how to have them list in any other way.
Great job getting this going so quickly and appreciate it. Always like to have current information showing.
My Sample Code:
{ module: 'MMM-COVID19', position: 'top_left', config: { updateInterval: 300000, orderCountriesByName: true, worldStats: true, countries: [ "Canada", "Italy", "USA", "Mexico" ], headerRowClass: "medium", infoRowClass: "small", rapidapiKey : “xxxxxxxxxxx ADD YOUR OWN API KEY xxxxxxxxx” \ } }, -
I have no output in my MagicMirror and no error in log file. I tried a curl and the output it’s ok.
curl -H "x-rapidapi-host: coronavirus-monitor.p.rapidapi.com" -H "x-rapidapi-key: mykey" 'https://coronavirus-monitor.p.rapidapi.com/coronavirus/cases_by_country.php'This is my config:
{ module: 'MMM-COVID19', config: { position: 'top_center', updateInterval: 300000, worldStats: true, countries: [ "Italy" ], headerRowClass: "small", rapidapiKey : "my api key" } },Any suggestion ?
-
@fireport
i suggest you, in the config, to put the " position" before “config”{ module: "MMM-COVID19", position: "top_center", config: { updateInterval: 300000, worldStats: true, countries: [ "France", "China", "Italy", "Spain" ], headerRowClass: "small", rapidapiKey : "xxxxxxxxxxxxxxxxxx" } }, -
@almostgithub
First you need to add the module “twice” into your config: MagicMirrorFolder/config/config.jsmodules: [ { module: 'MMM-COVID19' }, etc ...afterwards you need to enter your preferred settings & variables
{ module: 'MMM-COVID19', position: "bottom_bar", config: { header: "COVID-19 Stats", worldStats: true, rapidapiKey: "yourverylongapikey", orderCountriesByName: "false", countries: [ "Austria", "Germany", "Italy" ], updateInterval: 10000000, lastUpdateInfo: "true", headerRowClass: "small", infoRowClass: "medium", } },Let me know if this solves your problem
-
@totof60 Thank you. Now it works.
-
@fireport :winking_face:
-
@bibaldo checked all that, was all working fine. Ended up rebooting my PI and it came up flawlessly!
Thank you
-
Hello,
First of all thanks for the exact status.
How can I rename “Confirmed, Deaths, …”, since older people live in the house and only speak your mother tongue?
This is not meant to be evil or racist.
So, once again, our heartfelt thanks to the Forum.
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