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 874.1k 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.
    • R Offline
      robiv8
      last edited by robiv8

      Nobody an idea?
      Now the notification does not work anymore! Somehow I have the feeling that this block any other modules.
      You can send but it does not matter! Also no error message.

      1 Reply Last reply Reply Quote 0
      • N Offline
        nobita @robiv8
        last edited by

        0_1548639015017_S__2187281.jpg
        @Jopyth What Happen? and how to solve it?

        1 Reply Last reply Reply Quote 0
        • R Offline
          robiv8
          last edited by

          I have the impression that Jopyth does not have time to maintain the module. Last answer here was 9 months ago.
          Too bad, is an excellent module

          1 Reply Last reply Reply Quote 0
          • Cr4z33C Offline
            Cr4z33 @Jopyth
            last edited by

            @jopyth I’ve done the Italian translation if you would like to add it. ;)

            https://pastebin.com/g7hKLiad

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

              Hi everyone, these is a new version, lots of credit goes to @shbatm for this. Please give it a try and see if it fixed the various issues. There are also better error messages, which might help us narrow down the problem. Without further ado, this is the changelog:

              [2.0.0] - 2019-02-21

              Huge shoutout to shbatm for his work on this new major version, which brings a new API, custom menus and commands and lots of other stuff:

              Added

              • REST API interface for controlling all aspects of the MagicMirror from HTTP RESTful-style GET and POST calls, based on principles from MMM-Api
                • Full API Documentation at API/README.md
              • Live daily updates of modules.json from the MagicMirror wiki, based on principles from MMM-Remote-Control-Repository.
              • Incorporated some features found in MMM-OnScreenMenu that were not originally in this module.
                • Monitor (Connected Screen) On-Off Status and Toggle
                • Delayed calls (“DELAYED” Query option and .../delay API paths)
                • If using Electron: Open Dev Tools, Minimize, Toggle Fullscreen
              • Configuration Option to send custom shell commands to use. Currently, only custom monitor on/off/status commands are supported.
              • Module Control menu - Automatically generated from the API to control the different modules you have installed, based on their notificationReceived function.
              • Custom menu items. See Custom Menu Items in README
              • Norsk bokmål translation

              Changed

              • Updates to remote.html and the node_helper.js to use direct SocketIO communication back and forth instead of separate HTTP calls.
                • Future framework for following PM2 logs and more live update options.
              • General clean-up and standardization of status reporting for GET and POST calls, to original URLs and to new API URLs.
              • Updated to ES2015 (ES Version 6) function calls in most locations.
              • Added USER_PRESENCE controls from AgP42
              • Added/updated french translations from BKeyport and Mysh3ll
              • Added SHOW/HIDE/TOGGLE ALL modules option per request from Rene1709

              Upcoming Changes

              • Add additional MMM-OnScreenMenu features:
                • Moving modules’ positions
              • PM2 Log Follower / Terminal Window
              • Added Notification Echo option to config to echo all Module Notifications to the remote’s DevTools console for debugging.
              • Allow for text input in the Module Controls menu to be able to provide a notification payload.

              Helpful sticky: How to troubleshoot

              Cr4z33C N B 3 Replies Last reply Reply Quote 0
              • P Offline
                planet4
                last edited by

                Thanks for doing all the work. Just upgraded. However I had problems before waking and sleeping the screen and before I was able to change this in the node_helper.js to use:

                vcgencmd display_power 1 instead of tvservice. The command works via ssh but when I tried to change like below the screens sleeps but I can not wake it up via the remote.html menu. Anyone with the same problem?

                 monitorControl: function(action, opts, res) {
                            let status = "unknown";
                            let monitorOnCommand = (this.initialized && "monitorOnCommand" in this.thisConfig.customCommand) ?
                                this.thisConfig.customCommand.monitorOnCommand :
                                "sudo vcgencmd display_power 1";
                            let monitorOffCommand = (this.initialized && "monitorOffCommand" in this.thisConfig.customCommand) ?
                                this.thisConfig.customCommand.monitorOffCommand :
                                "vcgencmd display_power 0";
                            let monitorStatusCommand = (this.initialized && "monitorStatusCommand" in this.thisConfig.customCommand) ?
                                this.thisConfig.customCommand.monitorStatusCommand :
                                "vcgencmd display_power --status";
                            if (["MONITORTOGGLE", "MONITORSTATUS", "MONITORON"].indexOf(action) !== -1) {
                                screenStatus = exec(monitorStatusCommand, opts, (error, stdout, stderr) => {
                            
                
                1 Reply Last reply Reply Quote 0
                • Cr4z33C Offline
                  Cr4z33 @Jopyth
                  last edited by Cr4z33

                  @jopyth I would love to give it a try, but I need first to replace the monitor on/off commands with more suitable CEC commands (I use the cec-utils package) as I have a TV instead. :)

                  Please tell me what do I have to edit to use the following commands?

                  Turn tv on: echo on 0 | cec-client -s -d 1

                  Turn tv off: echo standby 0 | cec-client -s -d 1

                  Tv status: echo pow 0 | cec-client -s -d 1

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nobita @Jopyth
                    last edited by

                    @jopyth ,After git pull and npm install , Error like this (at below) happen
                    what wrong and how to fix it
                    Thanks for your help
                    0_1550846453213_S__3162181.jpg

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      motdog
                      last edited by motdog

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        costascontis
                        last edited by

                        @Jopyth nice module but i have an issue ,i think last update broke the restart function.Now its just stops MagicMirror and not restart it.Is there a fix for that?

                        1 Reply Last reply Reply Quote 0
                        • swvalentiS Offline
                          swvalenti Project Sponsor
                          last edited by

                          @costascontis I am experiencing the same issue you are as well.

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

                            solved it ,replace node_helper.js with this one ,fix is by ronanversendaal

                            1 Reply Last reply Reply Quote 0
                            • swvalentiS Offline
                              swvalenti Project Sponsor
                              last edited by swvalenti

                              @costascontis Thanks that worked I think…it doesn’t prompt a pm2 restart in the terminal window just closes MM browser and reopens?

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                bryan_1 @Jopyth
                                last edited by

                                @Jopyth after update the Magic Mirror to v2.7.0. I lost all icons. Do you have any idea why? Thanks in advance

                                1 Reply Last reply Reply Quote 0
                                • htilburgsH Offline
                                  htilburgs
                                  last edited by

                                  Same issue here 🤔

                                  (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

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

                                    @Jopyth - the font awesome package was updated in v2.7 so the direct reference to FA in remote.html will need to be updated.

                                    It looks like this line
                                    link rel="stylesheet" type="text/css" href="vendor/node_modules/font-awesome/css/font-awesome.min.css"
                                    Should be changed to
                                    link rel="stylesheet" type="text/css" href="vendor/css/font-awesome.css"

                                    But I’m away from my mirror right now so cannot test it.

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

                                    1 Reply Last reply Reply Quote 2
                                    • R Offline
                                      rts58
                                      last edited by

                                      That changed worked for me. I also had issue of white screen on my phone. After the change above and restarting phone, works fine now.

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        Duh3c
                                        last edited by

                                        Hello everyone,
                                        I am a little new to MagicMirror and I am trying to control MMM-RTSPStream or somehow hide the stream with MMM-ModuleToggle and Remote Control module.
                                        I am having problems with requests.

                                        I have read every example and tryed many things in postman but with no success. I am trying to post these kind of notifications and I don’t know how to formulate request correctly.
                                        This is how Module toggle notification should be formulated:

                                        notification: "MODULE_TOGGLE",
                                        payload: {hide: ["MMM-RTSPStream"], show: [], toggle:[]}
                                        

                                        Or maybe there is a way to cut the stream directly. This is what MMM-RTSPStream suports:

                                         "stream": {
                                                "module": "MMM-RTSPStream",
                                                "path": "stream",
                                                "actions": {
                                                    "play": {
                                                        "notification": "RTSP-PLAY",
                                                        "prettyName": "Play Stream(s)"
                                                    },
                                                    "stop": {
                                                        "notification": "RTSP-STOP",
                                                        "prettyName": "Stop Stream(s)"
                                                    },
                                                    "fullscreen": {
                                                        "notification": "RTSP-PLAY-FULLSCREEN",
                                                        "prettyName": "Play Fullscreen"
                                                    },
                                                    "window": {
                                                        "notification": "RSTP-PLAY-WINDOW",
                                                        "prettyName": "Play in Window"
                                                    }
                                                }
                                            }
                                        }
                                        

                                        I am very grateful for such great modules and I would be very please if you could give me a hint to how to do it.
                                        Regards

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          apster
                                          last edited by apster

                                          i all i’m new to this world so bear with me plz,

                                          I have built en set-up my daughters SM ( she’s 7 so made her a Disney “mirror, Mirror on the Wall” kinda thing.

                                          I have set up most of the basic stuff, work in progress is;

                                          motion sensor
                                          voicecontole
                                          and the darn MMM remote control
                                          the last one gives me heaps of trouble, i’ve managed to fix a lot problems by trial and error, using this forum as a guideline.
                                          There is one thing, picto’s and “sliders” to turn on off stuff on my phone, i havent been able to fix.

                                          I’ve read and applied all the suggested fixes on the forum.

                                          everything works but i’m unable to see if a module is on or off on my phone.

                                          can anyone point me in the right direction, i’m lost atm… not native english (correct my grammer i dont mind, infact it helps)

                                          thanks in advance

                                          p.s. new to programming so be gentlealt text

                                          StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                                          • StoffbeuteluweS Offline
                                            Stoffbeuteluwe Project Sponsor @apster
                                            last edited by Stoffbeuteluwe

                                            @apster - the font awesome package was updated in v2.7 so the direct reference to FA in remote.html will need to be updated.

                                            It looks like this line
                                            link rel=“stylesheet” type=“text/css” href=“vendor/node_modules/font-awesome/css/font-awesome.min.css”

                                            Should be changed to
                                            link rel=“stylesheet” type=“text/css” href=“vendor/css/font-awesome.css”

                                            1 Reply Last reply Reply Quote 1

                                            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
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 13 / 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