Read the statement by Michael Teeuw here.
MMM-COVID19
-
@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. -
This is awesome! Anyway to add individual States in the United States? For instance California, Michigan, New York?
-
@Lordy Hello, you can change this in the MMM-COVID19.js (you find it in /MagicMirror/modules/MMM-COVID19) .
....... headerconfirmedCell.innerHTML = 'Confirmed' ..... headerNewConfirmedCell.innerHTML = 'New Cases' ..... headerdeathsCell.innerHTML = 'Deaths' ...... headerNewDeathsCell.innerHTML = 'New Deaths' ...... header.recoveredCell.innerHTML = 'Recovered' ...... headeractiveCell.innerHTML = 'Active' ....Just type in the “” the text you would like to see on the module.
i have translated it into german
headerCountryNameCell.innerHTML = '' headerconfirmedCell.className = 'number confirmed ' + this.config.headerRowClass headerconfirmedCell.innerHTML = 'Bestätigt' headerNewConfirmedCell.className = 'number confirmed ' + this.config.headerRowClass headerNewConfirmedCell.innerHTML = 'Neue Fälle' headerdeathsCell.className = 'number deaths ' + this.config.headerRowClass headerdeathsCell.innerHTML = 'Tote' headerNewDeathsCell.className = 'number deaths ' + this.config.headerRowClass headerNewDeathsCell.innerHTML = 'Neue Tote' headerrecoveredCell.className = 'number recovered ' + this.config.headerRowClass headerrecoveredCell.innerHTML = 'Erholt' headeractiveCell.className = 'number active ' + this.config.headerRowClass headeractiveCell.innerHTML = 'Aktiv'Just replace the part.
Ersetze einfach die Stelle -
@irich said in MMM-COVID19:
Das ist genau was ich haben wollte.
Kann man die Umbenennung auch irgendwie Config eintragen, nicht das Änderung beim nächsten Update abhanden kommt?Thank you:thumbs_up_medium-light_skin_tone:
Can you enter the renaming somehow Config, not that the change is lost in the next update? -
@irich Hallo, das hab ich auch schon geschafft. Weiß denn jemand, wie ich die “,” durch “.” ersetzen kann. Will anstatt 434,595 das deutsche Format haben.
Danke für eventuelle Antworten. -
This post is deleted! -
@Lordy what language do they speak? I can add the translations for them
-
@Zinkeler Guten Tag
I will add German to the translations
-
https://forum.magicmirror.builders/topic/12408/mmm-countup-covid19-example
If you want a counter for your Quarantine
-
@asdean
I second that, but not only for states in USA, other countries have them too! If the source data is store disaggregated maybe is just a matter of knowing under what names and there’s no need to change anything in module.
For example:
countries: [ “Buenos Aires, Argentina”, “Kentucky, USA”, “Sonora, Mexico” ]Could this be done?
-
@bibaldo Any way to change the color of the fonts for MMM-CountUP? CSS maybe?
-
@rafaelcota yes, you can change them at the css located in the module folder
-
@rafaelcota nevermind, found it:
.countUP tr td.digits {
color: #ffffff;
}in custom.css
Than you anyway…
-
@asdean the API that I’m consuming the info has an endpoint for USA states (https://coronavirus-monitor.p.rapidapi.com/coronavirus/usastates.php). You can change that if you want but another modifications have to be done at the code. You can open a PR (Pull request) if you want.
All can be done, but it will require too much effort for just one country (USA in this case). PR are very welcome
-
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