MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-AlexaControl or MMM-AlexaOn/Off setup

    Scheduled Pinned Locked Moved Troubleshooting
    94 Posts 4 Posters 48.8k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Michael Schw. @sdetweil
      last edited by

      @sdetweil thank you for the help btw!!!

      ok i figured out that my tv which i use as the display (Samsung LE-32 C530) has HDMI-CEC so i tried it with that and it works after i installed the cec module.
      its just a shame that the tv needs 15 seconds to boot (EVERYTIME!!) and i cant disable the pop up on start which shows the source and the hdmi port used.

      How can i stop the standby mode for the raspberry pi? because if the screen is off for a certain time and i turn it on again it shows me a blank black screen until i press a button or mouve the mouse (which i don want to have connected later on).

      How can i make the mirror to autostart on booting the raspberry?

      I have no shutdown command. Can i safley turn off the pi with this? and if yes, how do i get it?

      I really wanna make this thing work perfectly. i even thinking of adding an ir frame to make it touchscreen =)

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Michael Schw.
        last edited by

        @Michael-Schw if you don’t use pm2 you should, it will start at boot… if you didn’t install it with my scripted install, then use the fixuppm2.sh script from here
        https://github.com/sdetweil/MagicMirror_scripts

        just cut/paste that one line to run that script.

        shutdown and reboot are commands built in to linux

        sudo shutdown now (-r | -h, -r means reboot, -h means halt)
        sudo reboot , is the same as sudo shutdown -r

        turn off the pi screen saver, also see my screensaveroff script…
        (again if you had run my script as part of install, it would have prompted and done all this for you.
        my script is listed in the alternative install section of the MM doc)…

        none of my tvs support cec, so I created my own module for sleep (using a webcam for wakeup), it just hides all the modules,
        alexaControl supports that too (vgencmd:‘hide’)
        MMM-SleepWake

        my pis & tvs run 24x7

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          Michael Schw. @sdetweil
          last edited by

          @sdetweil thank you…you are a genius😁

          I installed that automated update now but how do i excactly turn the screensaver off…i cant find your script…do you have a link for that?

          And how can i start the mirror automaticly on boot of the raspberry? And is there any posibillity that the pi reboots itself if he needs it or should i just say it sometimes to alexa? Because if i let it run 24/7 it will at some time become really slow i think.

          So what do i have to add in the option pm2processname for the alexa module?
          Because refresh and monitor toggle are working but stop and restart isnt.
          And i dont have shutdown at my alexa devices for the mirror.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Michael Schw.
            last edited by sdetweil

            @Michael-Schw i’m sorry, I do not understand…

            you do NOT ‘install’ anything from my scripts repo. you just execute the commands I have documented.

            to turn off the screensaver you copy/paste this one line to a terminal window on the pi

            bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/screensaveroff.sh)"
            

            to setup for start at boot, you run the pm2 script, the same way

            bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
            
            

            then you can also stop/restart the process
            pm2 status will tell u it anything is running

            pm2 start number| name
            will start that named process

            pm2 restart, stop, show, list, are other commands

            pm2 logs --lines=?? will show the terminal window output of the processes (?? is a number)

            pm2 --help will give u the syntax

            the alexaControl module needs the NAME of the pm2 process definition

             pm2 status
            ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
            │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
            ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
            │ 0  │ MagicMirror        │ fork     │ 8    │ stopped   │ 0%       │ 0b       │
            │ 1  │ smart-mirror       │ fork     │ 35   │ stopped   │ 0%       │ 0b       │
            └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
            
            

            so for MM it would be whatever is listed for the name

            to change the name, u need to delete the entry (see the pm2 help for the syntax here)
            and create it again, after modifying the ~/MagicMirror/installers/pm2_MagicMirror.json file

            then rerun my fixuppm2.sh script again.

            the devices added by AlexaControl are defined in the translations/??.json file, here is the default en.json

            {
                    "PAGE": "page ",
                    "REFRESH": "refresh",
                    "RESTART": "restart pm2",
                    "STOP": "stop pm2",
                    "REBOOT": "reboot pi",
                    "SHUTDOWN": "shutdown pi",
                    "MONITOR": "monitor",
                    "USB": "USB"
                }
            

            so the devices are

             "refresh",
             "restart pm2",
             "stop pm2",
            "reboot pi",
             "shutdown pi",
             "monitor"
            

            remember these are electric outlet type devices, they can be on or off… that is all

            so the alexa voice syntax is

            alexa turn on (or off) device

            alexa turn on refresh
            alexa turn off monitor
            alexa turn on restart pm2

            etc

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 6
            • 7
            • 8
            • 9
            • 10
            • 10 / 10
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy