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

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

Scheduled Pinned Locked Moved System
274 Posts 78 Posters 679.3k 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.
  • P Offline
    Pbaan93
    last edited by Oct 23, 2016, 6:26 PM

    Trying to get the HIDE/SHOW working with postman.
    http://192.168.2.2:8080/remote?action=HIDE&module=<<module_name>>
    What is the syntax? cant find it, sorry …

    J 1 Reply Last reply Oct 24, 2016, 7:28 AM Reply Quote 0
    • J Offline
      Jopyth Moderator @Pbaan93
      last edited by Jopyth Oct 24, 2016, 7:33 AM Oct 24, 2016, 7:28 AM

      @Pbaan93 You have got the correct syntax, your only problem might be, that you need the correct identifier, which depends on your config.js. If your modules in your config.js look like this:

      modules: [
          {
              module: 'calendar',
              header: 'Some calendar',
              position: 'top_right',
              config: {
                  // not configured, just an example
              }
          },
          {
              module: 'clock',
              position: 'top_left'
          },
          {
              module: 'newsfeed',
              position: 'bottom_bar',
              config: {
                  // not configured, just an example
              }
          },
      ]
      

      You could use module_0_calendar, module_1_clock and module_2_newsfeed to hide each module (it is always module + the number of the module in your config, starting to count from 0 + the module name, all separated with underscores).

      This is the internal identifier, and not simple to construct, but allows to have, for example multiple calendars, and you can hide one or the other.

      Helpful sticky: How to troubleshoot

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pbaan93
        last edited by Oct 24, 2016, 7:39 AM

        @Jopyth Thanks for the clear info! I will try this tonight.
        I’m planning to make an app for ‘Homey’ so i can controll the mirror with my home automation system. With your app this will be possible, so thanks again!
        For easy configuration in the homey app I need an extra API option: ‘list’, so the homey app knows all the modules with their status. Is this possible?

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jopyth Moderator @slickric
          last edited by Jopyth Oct 24, 2016, 7:57 AM Oct 24, 2016, 7:53 AM

          @slickric That is weird, my iPad is also running chrome 54.0.2840.66. I assume this also happens, when you access the remote URL from a desktop browser? Could you open the remote URL with developer console, and have a look at possible errors?

          @Pbaan93 I can add this, yes. Do you think a simple JSON format would suffice?

          Helpful sticky: How to troubleshoot

          S 1 Reply Last reply Oct 24, 2016, 9:33 AM Reply Quote 1
          • P Offline
            Pbaan93
            last edited by Oct 24, 2016, 8:04 AM

            Yes that would be really nice!!! Just a list of modules with their status, preferably also their identyfier if that is possible. Thanks to this I can make the homey app completely adaptive to wat modules are installed on the mirror.

            1 Reply Last reply Reply Quote 0
            • S Offline
              slickric @Jopyth
              last edited by slickric Oct 24, 2016, 9:42 AM Oct 24, 2016, 9:33 AM

              @Jopyth #facepalm as expected it was me that was the problem. Got the below errors in console which made me realise immediately that for some rediculous reason I changed the name of the folder from “MMM-Remote-Control” to just “remote”. Obviously it couldn’t find the CSS and js files because I changed the folder :/ renamed and all working perfectly. Great work with the module and massive thanks for the help! alt text

              1 Reply Last reply Reply Quote 1
              • J Offline
                Jopyth Moderator
                last edited by Oct 24, 2016, 10:20 AM

                New version, please let me know if you find any bugs:

                [1.0.0] - 2016-10-24

                Added

                • Changelog
                • New buttons in user interface
                  • Hide/show all modules
                  • Link to MagicMirror² homepage
                  • Option to adapt brightness (making the mirror brighter than 100% can be limited to certain modules)
                • Contributing hints
                • Internal versioning of saved config (current version: 1)
                • Added action MODULE_DATA to return module data in JSON format

                Changed

                • Internal timeout for commands increased from 5 to 8 seconds
                • Symbols for display on and off
                • Internal changes in preparation for Magic Mirror version 2.1.0

                Helpful sticky: How to troubleshoot

                P R 2 Replies Last reply Oct 24, 2016, 10:58 AM Reply Quote 3
                • P Offline
                  Pbaan93 @Jopyth
                  last edited by Pbaan93 Oct 24, 2016, 10:59 AM Oct 24, 2016, 10:58 AM

                  @Jopyth That is really fast! Nice! Cool improvements ;)

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    Pbaan93
                    last edited by Oct 24, 2016, 7:20 PM

                    @Jopyth Nice update, tested it and it works like a charm.

                    You have shown me more ideas :P …
                    Is it possible to set position? Than we will almost have full controll!

                    1 Reply Last reply Reply Quote 1
                    • G Offline
                      gismo2006
                      last edited by Oct 25, 2016, 7:21 AM

                      @Jopyth Don’t worry, no more questions. ;-) I like only to say thank you :-)

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 8
                      • 27
                      • 28
                      • 6 / 28
                      6 / 28
                      • First post
                        53/274
                        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