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.

    [Remote-Control] Shutdown, Configure and Update your MagicMirror

    Scheduled Pinned Locked Moved System
    274 Posts 78 Posters 873.6k Views 77 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.
    • cowboysdudeC Offline
      cowboysdude Module Developer @KirAsh4
      last edited by

      @KirAsh4 said in MMM-Remote-Control:

      “Hey [NAME], you did not wash your hands.”

      “Turn the damn fan on!”

      LOL

      1 Reply Last reply Reply Quote 0
      • Mr.MeeseeksM Offline
        Mr.Meeseeks @Jopyth
        last edited by

        @Jopyth ya like what the pir sensor does but just as a manual toggle, so you can turn it ‘off’ at night. I currently don’t have pir sensor yet.

        CAAAAN DOO!👍

        1 Reply Last reply Reply Quote 0
        • Mr.MeeseeksM Offline
          Mr.Meeseeks
          last edited by

          I might try to tinker in a config editor and maybe even a command to git clone modules remotely.

          CAAAAN DOO!👍

          1 Reply Last reply Reply Quote 0
          • BangeeB Offline
            Bangee Module Developer
            last edited by Bangee

            Ok, that’s a nice modul :-)

            I’ve insert an restart function for the MM app and the ability to turn you monitor on and off:

            insert in node_helper.js at line 54:

            				if (query.action === 'RESTART')
            				{
            					res.send({'status': 'success'});
            					exec('pm2 restart mm', function(error, stdout, stderr){ callback(stdout); });
            					return;
            				}
            				if (query.action === 'MONITORON')
            				{
            					res.send({'status': 'success'});
            					exec('/opt/vc/bin/tvservice -p', function(error, stdout, stderr){ callback(stdout); });
            					return;
            				}
            				if (query.action === 'MONITOROFF')
            				{
            					res.send({'status': 'success'});
            					exec('/opt/vc/bin/tvservice -o', function(error, stdout, stderr){ callback(stdout); });
            					return;
            				}
            

            in remote.js on line 131:

                'restart-mm-button': function () {
                    Remote.getWithStatus("action=RESTART");
                },
                'monitor-on-button': function () {
                    Remote.getWithStatus("action=MONITORON");
                },
                'monitor-off-button': function () {
                    Remote.getWithStatus("action=MONITOROFF");
                }
            

            in remote.html on line 40:

            <!-- MagicMirror menu -->
            		<div id="restart-mm-button" class="menu-button power-menu">
                                <span class="fa fa-recycle" aria-hidden="true"></span>
                                <span class="text">%%TRANSLATE:RESTARTMM%%</span>
                            </div>
            		<div id="monitor-on-button" class="menu-button power-menu">
                                <span class="fa fa-toggle-on" aria-hidden="true"></span>
                                <span class="text">%%TRANSLATE:MONITORON%%</span>
                            </div>
                            <div id="monitor-off-button" class="menu-button power-menu">
                                <span class="fa fa-toggle-off" aria-hidden="true"></span>
                                <span class="text">%%TRANSLATE:MONITOROFF%%</span>
                            </div>
            

            and the translations/en.json and de.json on line 8 ff:

                "RESTARTMM": "Restart MagicMirror2",
                "MONITORON": "Turn monitor ON",
                "MONITOROFF": "Turn monitor OFF",
            
                "RESTARTMM": "Starte MagicMirror2 neu",
                "MONITORON": "Bildschirm einschalten",
                "MONITOROFF": "Bildschirm ausschalten",
            

            I think thats it.

            The evil this is a must for my mirror… so thats next. I think we can do this like the IFTTT module does it.
            Install modules remotly will be the next big thing… :-)

            J Mr.MeeseeksM 2 Replies Last reply Reply Quote 2
            • J Offline
              Jopyth Moderator @Bangee
              last edited by Jopyth

              @Bangee can you make a pull request also? Would be nice.

              Edit: Otherwise I will add it to the base module, with your permission, when I get back from vacation.

              Helpful sticky: How to troubleshoot

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jopyth Moderator @cowboysdude
                last edited by

                @cowboysdude This is what I am doing with my Trello module basically. :)

                Helpful sticky: How to troubleshoot

                1 Reply Last reply Reply Quote 1
                • BangeeB Offline
                  Bangee Module Developer
                  last edited by

                  @Jopyth I never did this before but I’ll try ;-)

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    ceerix
                    last edited by

                    Hello everyone,

                    actually i’m building my first Magic Mirror and i have installed the Remote Control Modul which works very well and i also have implemented the changes from Bangee. Everything works fine.

                    Now i want to use this modul for interacting with my home automation systen “homematic”. Therefore i need to call the URLs directly.
                    Can anybody help me which i URL i have to call? I already have tried
                    http://192.168.xxx.xxx:8080/remote.html?action=RESTART
                    but it doesnt work :-(

                    Thanks in advance for your help :)

                    J 1 Reply Last reply Reply Quote 0
                    • BangeeB Offline
                      Bangee Module Developer
                      last edited by

                      @ceerix can you try this:

                      http://192.168.XXX.XXX:8080/remote?action=RESTART

                      @Jopyth the pull request is online. :-)
                      https://github.com/Bangee44/MMM-Remote-Control

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jopyth Moderator @ceerix
                        last edited by Jopyth

                        @ceerix How are you going to interact? With custom notifications between the modules? Or are you connecting this differently?

                        I am asking because I was thinking, if it is possible to give other modules a simple way of hooking up to my module, and how this could happen. So a first example, on how you would like to do it, might be a good starting point.

                        Helpful sticky: How to troubleshoot

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          ceerix
                          last edited by

                          @Bangee thank you for your help this works! :)

                          @Jopyth i simply call the URL for the action which i want. For example shutdown the Raspberry when i’m leaving the house.
                          A example is the link which Bangee have written:
                          http://192.168.XXX.XXX:8080/remote?action=RESTART

                          If you need any further information i will help you :)

                          J 1 Reply Last reply Reply Quote 0
                          • Mr.MeeseeksM Offline
                            Mr.Meeseeks @Bangee
                            last edited by

                            @Bangee @Jopyth thanks again, this is great!

                            CAAAAN DOO!👍

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jopyth Moderator @ceerix
                              last edited by Jopyth

                              @ceerix Ok, I see. Thanks!

                              Helpful sticky: How to troubleshoot

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                Jopyth Moderator
                                last edited by Jopyth

                                The module has received a medium update, see the new version on Github.

                                Changes:

                                • Added: Save as default, which saves the hidden/shown status of your modules (Note: If you change your config, the settings will most likely not load correctly, you might have to change and save them again.)
                                • Added: Restart MagicMirror application and switching display on and off, thanks to @Bangee
                                • Changed: status indicator appears on top right, instead of the bottom
                                • Updated: fixed-width icons, text should be more aligned now
                                • Updated: error sign will show (error will appear in server log), if a command fails, e.g. no sudo rights
                                • Fixed: style error, which most likely made the remote control look completely different from the preview for anyone except me

                                Helpful sticky: How to troubleshoot

                                1 Reply Last reply Reply Quote 3
                                • D Offline
                                  d3r
                                  last edited by

                                  New update is sick. Really like the turn display on/off feature.

                                  1 Reply Last reply Reply Quote 1
                                  • cowboysdudeC Offline
                                    cowboysdude Module Developer
                                    last edited by

                                    Another module that should be in the core :) Man this mirror is growing Thanks to great people!

                                    Thanks @Jopyth

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      ceerix
                                      last edited by

                                      I had an idea in the morning. Would it be possible to develop a new menu in this modul for changing the place of a displayed modul? For example moving it from the top to the middle of the screen with a button?
                                      Do you understand what i mean? :)

                                      J 1 Reply Last reply Reply Quote 1
                                      • I Offline
                                        ianperrin
                                        last edited by

                                        @Jopyth - another great update. Thanks

                                        I’ve added an issue (feature request really) on GitHub to explore whether the functionality of this module could be exposed to other modules so it could be triggered using sendNotification.

                                        e.g. sendNotification('REMOTE_ACTION', {query: 'MONITOROFF'}

                                        I’ve also drafted a pull request with an idea of how this could be done.

                                        If this could be implemented, then things like turning the monitor on and off or restarting MM could be scheduled using a combination of this module and MMM-ModuleScheduler

                                        "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

                                        1 Reply Last reply Reply Quote 1
                                        • J Offline
                                          Jopyth Moderator @ceerix
                                          last edited by

                                          @ceerix Definitely something I would like to have, too, along with spawning new modules. I think it needs changes to the core project though, which support moving and creating of modules while running.

                                          @ianperrin Good idea, I answered on github.

                                          Helpful sticky: How to troubleshoot

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            Jopyth Moderator
                                            last edited by Jopyth

                                            New update:

                                            • It is now possible to “call” all functions provided via the remote control from modules through notifications (see the readme), thanks to @ianperrin

                                            Helpful sticky: How to troubleshoot

                                            1 Reply Last reply Reply Quote 2

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 13
                                            • 14
                                            • 2 / 14
                                            • 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