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
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
@almostgithub
First you need to add the module “twice” into your config: MagicMirrorFolder/config/config.js
modules: [
{
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
@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 header
All the best!
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
Hi,
I’m kinda fresh to the python & bash programming but I make some progress.
I set up my MM with additional modules and an Alexa Skill via AWS services which works quite well (atm turn HDMI port on/off + start MM via npm start trigger)
This works all without any problems at the moment. I set up today the MM launch via pm2 which launches the application after every reboot. Right know I’m looking for any script (bash / python, …?) with whom I could stop the MM instance (going on I would like to activate this via an Alexa Skill trigger)
//#taken from www.cyber-omelette.com/2017/01/alexa-run-script.html
print(message)
if message == "on":
os.system("~/on.sh")
elif message == "off":
os.system("~/off.sh")
elif message == "start":
os.system("~/mm.sh")
I tried some things I came up with but I’m kind clueless how I could do this :/
So I’m looking for two options to quit MM - CTRL-C isn’t an option cause I’m using my rpi without any keyboard that’s why I try to set up everything with Alexa voice commands:
-> Script for deactivating MM which has been started by pm2*
-> Script for deactivation MM which hast been started manual*
//#taken from MM tutorial
//#used for pm2 & manual start with Alexa skill (if needed)
/cd ~/MagicMirror
DISPLAY=:0 npm start
If anyone have some recommendations & hints for me I would be more than pleased
Cheers Ben