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.

    MM-Remote Android App

    Scheduled Pinned Locked Moved Utilities
    21 Posts 7 Posters 10.8k Views 10 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.
    • K Offline
      Klettner
      last edited by

      To be honest, I don’t know what CEC is, but I can explain you how turning the monitor on/off is implemented and how you can test if it will work for you.
      If you press a button to send a command to the mirror, the app sends a REST requests to MMM-Remote-Controle, which handles the execution.

      I looked up for you how they have implemented tuning the monitor on/off there.
      To turn the monitor off they use the shell command:

      tvservice -o
      

      To turn on the monitor they use:

      tvservice --preferred && sudo chvt 6 && sudo chvt 7
      

      You can test these commands in the terminal of your Raspberry pi. If it works there, this should work with the app as well.
      It is also possible to overwrite these shell commands with you own ones, if you are interested in this, have a look at the custom commands section in the MMM-Remote-Control github repository

      Cr4z33C 1 Reply Last reply Reply Quote 0
      • thgmirrorT Offline
        thgmirror
        last edited by thgmirror

        Hi @Klettner,
        I like your App very much!

        It also runs if I enter the hostname instead of the IP-address. This helps me a lot because I don’t use a static IP.

        Btw. I took the first apk in the list and it works on my Huawei P8Lite (Android 6.0.1).

        Thank you for the App

        Thomas

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

          @Klettner I asked because I’ve got a TV and those commands do not apply to turn on and off the screen. 😉

          Can you please add also support to package cec-utils (https://packages.debian.org/buster/cec-utils)?

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            Klettner @thgmirror
            last edited by

            @thgmirror thanks for your feedback, I’am pleased to hear that :slightly_smiling_face:

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

              @Klettner you should make the command strings options so people don’t have to edit your code.
              set the default as it is now.

              my tvs don’t turn off , so I have hide/show for all modules

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Reply Quote 0
              • K Offline
                Klettner @Cr4z33
                last edited by

                @Cr4z33 I think I found a solution that might work for your.

                1. download the cec-utils package to your raspberry pi (you have probably already done that).
                  For Ubuntu or Debian use:
                sudo apt install cec-utils
                
                1. scan for available devices to get the device number/address of your TV
                echo 'scan' | cec-client -s -d 1
                
                1. Now you should be able to power on the TV via the Raspi command terminal (replace Device# with the number or address form step 2):
                echo 'on Device#' | cec-client -s -d 1
                

                and off

                echo 'standby Device#' | cec-client -s -d 1
                
                1. If these commands work, overwrite the commands of MMM-Remote-Control.
                  To do this, open you config.js file and add the customCommand section to the module MMM-Remote-Contorl:
                  f13dbf2b-052f-4ba2-9e63-967a3a7a8796-grafik.png

                I’m wasn’t able to test the commands as my pi is currently not connected to a CEC-device. Let me know if this works for you.

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

                  @Klettner never mind, you are using remotecontrol on the pi side…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @Klettner oh it’s easy then to fix it. :)

                    Thanks for the solution.

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      Klettner @sdetweil
                      last edited by

                      @sdetweil yes exactly, all the default commands can be changed in the config.js file. Therefore you need to edit the customCommands section of MMM-Remote-Control. So if your TV does not turn off with the default command and you know one that works for you, you can change it there.

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        Klettner
                        last edited by

                        New version of the MM-Remote android app is now available (v1.0.3).

                        New functionalities:

                        • Start/Stop/Pause a timer on the mirror
                        • Start /Stop/Pause a stop-watch on the mirror
                        • Hide and reorder the default commands of the Home-tab
                        • Simplified set-up of the app

                        currentDeviceHomeTab.png

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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