• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 8.6k 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 Aug 27, 2020, 9:43 PM

    Hello everyone,

    I have created an android app to remote controle MagicMirrors.
    With the app you can:

    • reboot/shutdown your mirror
    • toggle the monitor on/off
    • change the brightness
    • change the pages of the MMM-Pages module
    • play, pause and skip the displayed image of MMM-Background-Slideshow
    • send alerts to the mirror
    • you can also add custom commands

    As this is the first app I have created I would like to get some feedback.
    If you have trouble to set up the app let me know. If you discover bugs or have feature requests, please write an issue on github.

    You can find the latest release and a detaild describtion of the MM-Remote app in my github repository.

    C J 2 Replies Last reply Aug 29, 2020, 6:30 AM Reply Quote 0
    • C Offline
      Cr4z33 @Klettner
      last edited by Aug 29, 2020, 6:30 AM

      @Klettner said in MM-Remote Android App:

      • toggle the monitor on/off

      Did you add CEC compatibility with TVs too? :)

      If yes I am gonna give it a try.

      1 Reply Last reply Reply Quote 0
      • K Offline
        Klettner
        last edited by Aug 29, 2020, 10:05 AM

        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

        C 1 Reply Last reply Aug 30, 2020, 12:08 PM Reply Quote 0
        • T Offline
          thgmirror
          last edited by thgmirror Aug 29, 2020, 9:25 PM Aug 29, 2020, 9:24 PM

          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 Sep 1, 2020, 1:21 PM Reply Quote 0
          • C Offline
            Cr4z33 @Klettner
            last edited by Aug 30, 2020, 12:08 PM

            @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 Sep 1, 2020, 1:52 PM Reply Quote 0
            • K Offline
              Klettner @thgmirror
              last edited by Sep 1, 2020, 1:21 PM

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

              S 1 Reply Last reply Sep 1, 2020, 1:28 PM Reply Quote 0
              • S Offline
                sdetweil @Klettner
                last edited by Sep 1, 2020, 1:28 PM

                @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 Sep 1, 2020, 1:54 PM Reply Quote 0
                • K Offline
                  Klettner @Cr4z33
                  last edited by Sep 1, 2020, 1:52 PM

                  @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.

                  C 1 Reply Last reply Sep 1, 2020, 1:59 PM Reply Quote 0
                  • S Offline
                    sdetweil @sdetweil
                    last edited by Sep 1, 2020, 1:54 PM

                    @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 Sep 2, 2020, 7:48 AM Reply Quote 0
                    • C Offline
                      Cr4z33 @Klettner
                      last edited by Sep 1, 2020, 1:59 PM

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

                      Thanks for the solution.

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