Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. start-the-fire
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 1
    • Groups 0

    start-the-fire

    @start-the-fire

    1
    Reputation
    395
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    start-the-fire Follow

    Best posts made by start-the-fire

    • RE: MMM-COVID19

      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

      posted in Health
      S
      start-the-fire

    Latest posts made by start-the-fire

    • RE: MMM-COVID19

      @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

      posted in Health
      S
      start-the-fire
    • RE: MMM-COVID19

      @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!

      posted in Health
      S
      start-the-fire
    • RE: MMM-COVID19

      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

      posted in Health
      S
      start-the-fire
    • Quit MM with script

      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*
        0_1514065764454_37b4104c-9236-4f20-8271-c8b78bfa70fb-image.png

      • -> 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

      posted in Troubleshooting
      S
      start-the-fire