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-Remote-Control](v2-dev) Extensible REST API, Dynamic Menus, and Socket Communications, plus other updates

    Scheduled Pinned Locked Moved Development
    76 Posts 13 Posters 68.3k Views 13 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.
    • S Offline
      sdetweil @swvalenti
      last edited by sdetweil

      @swvalenti so there is no branch called ‘master’

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil oh boy that is odd, how do I get the master back?

        S 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @swvalenti
          last edited by

          @swvalenti rename the current folder/directory out of the way, and git clone the remote repo (your fork or his ) again.

          then get to the right branch, and then copy any modified files from the saved repo into this new copy,
          once complete, remove the old saved directory

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @swvalenti
            last edited by

            @swvalenti the master repo has master and develop as branches

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              shbatm Module Developer @Cr4z33
              last edited by

              @cr4z33 try adding them using the customCommands config setting (see the develop branch README.

              Cr4z33C 2 Replies Last reply Reply Quote 0
              • Cr4z33C Offline
                Cr4z33 @shbatm
                last edited by

                @shbatm OK thanks I will try that tomorrow.

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

                  @shbatm said in [MMM-Remote-Control](v2-dev) Extensible REST API, Dynamic Menus, and Socket Communications, plus other updates:

                  @cr4z33 try adding them using the customCommands config setting (see the develop branch README.

                  I set the dev branch module like the following:

                  		{
                  			module: 'MMM-Remote-Control',
                  			disabled: false,
                  			customCommand: {
                  					monitorOnCommand: 'echo on 0 | cec-client -s -d 1',
                  					monitorOffCommand: 'echo standby 0 | cec-client -s -d 1',
                  					monitorStatusCommand: 'echo pow 0 | cec-client -s -d 1'
                  					}
                  		},
                  

                  None of the commands are working. :confused_face:
                  I get the ‘Done’ message, but then nothing happens…

                  The syntax is 100% correct and working if used in the terminal.

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

                    Hi, I can’t see newsfeed options in Module Controls.
                    Can you help me please?

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

                      @mohace I can.

                      Double check if you edited anything or try deleting and reinstalling the module?

                      0_1553506254741_HiShoot_20190325_102913.png

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

                        Hi @shbatm
                        I already asked this question on git issues on Jopyth’s version but I just figured out that you are the guy behind the custom menu!

                        Would it be possible to have an action item for a menu?

                        I mean, when you click on the menu, it opens the menu but also as the ability to trigger an action.

                        Regards

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          bolish @Cr4z33
                          last edited by

                          @Cr4z33
                          Please check the output of echo pow when your screen is on and off.
                          The original setting related to screen status into the node.js was NOK for me. (indeed, it is something like “ON” / “OFF” / “HDMI” etc…) but my TV was answering with “power status: on” and “power status: standby”.
                          So I had to modify line 610 and 620 with my own.

                          BTW, @shbatm , would be better if those parameters could be configurable also.

                          Regards

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

                            @Cr4z33 said in [MMM-Remote-Control](v2-dev) Extensible REST API, Dynamic Menus, and Socket Communications, plus other updates:

                            @mohace I can.

                            Double check if you edited anything or try deleting and reinstalling the module?

                            I meant not in that menu but in

                            alt text

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

                              @bolish OK, but you have to tell me how to do it. :smiling_face_with_open_mouth_cold_sweat:

                              By the way I have problems turning on and off my TV too.
                              Even if I edited files to enter the needed CEC commands somehow it doesn’t work (same commands in terminal work fine).

                              @mohace huh?
                              I don’t have those menu’s entries at all.
                              Are you using a custom version of the module or? :confused_face:

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

                                @Cr4z33
                                Make trials with your terminal :

                                • Turn screen on by pasting that in your terminal : echo on 0 | cec-client -s -d 1
                                • Check the feedback status sent by the TV by putting that in terminal : echo pow 0 | cec-client -s -d 1
                                • Remind the result

                                Do exactly the same with turn off :

                                • Turn screen on by pasting that in your terminal : echo standby 0 | cec-client -s -d 1
                                • Check the feedback status sent by the TV by putting that in terminal : echo pow 0 | cec-client -s -d 1
                                • Remind the result

                                The 2 results you will get should be updated in node.js line 610 / 620.

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

                                  @bolish as I wrote before that’s EXACTLY what I already did. ;)

                                  Terminal commands work straight away while the same commands in MMM-Remote-Control have no effect when used by tapping the buttons in the menu.

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    bolish
                                    last edited by

                                    @Cr4z33
                                    So, the ouput you got in the terminal by sending the “pow 0” command is in line with what is written into node helper.js line 610 / 620?

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

                                      @bolish yep 100% that’s why I tried reporting that to @shbatm , but he didn’t reply about that yet. :grimacing_face:

                                      1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        bolish
                                        last edited by

                                        @Cr4z33
                                        Strange, it worked for me… FMI, what output do you get in the terminal with “echo pow 0 | cec-client -s -d 1”.
                                        When the screen is ON? When the screen is “OFF”?

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

                                          @bolish depending wheter the TV is on or off it says power status: on or power status: standby.

                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            bolish
                                            last edited by

                                            @Cr4z33 same as me…let’s try to cross check our node helper .js to see if they are written the same on line 610 and 620.

                                            Cr4z33C 1 Reply Last reply Reply Quote 0

                                            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
                                            • 6 / 4
                                            • 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