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.

    Module status

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 766 Views 2 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
      sdmydbr9
      last edited by

      I was trying to implement module controls using homebridge running on a pi and magic mirror. So far using the mmm-HomeKit module, I have been able to implement the magicmirror display controls. When I tried that with the modules I’m not able to get the status of the module if it is hidden or shown. Can anyone tell me if there’s any curl command to get the status.

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

        @sdmydbr9 tell me more

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil

          {
              "bridge": {
                  "name": "Homebridge 7481",
                  "username": "0E:4A:31:A4:44:11",
                  "port": 51891,
                  "pin": "740-38-278"
              },
              "accessories": [],
              "platforms": [
                  {
                      "name": "Config",
                      "port": 8581,
                      "platform": "config",
                      "sudo": true,
                      "log": {
                          "method": "native",
                          "path": "/var/lib/homebridge/homebridge.log"
                      },
                      "sessionTimeout": 28800
                  },
                  {
                      "platform": "cmdSwitch2",
                      "name": "Raspberry Pi",
                      "switches": [
                          {
                              "name": "Mirror",
                              "on_cmd": "vcgencmd display_power 1",
                              "off_cmd": "vcgencmd display_power 0",
                              "state_cmd": "tvservice -s",
                              "manufacturer": "Raspberry Pi Foundation",
                              "model": "Raspberry Pi 4 Model B"
                          }
                      ]
                  }
              ]
          }
          

          This is my home bridge configuration file. I use homebridge to connect the magicmirror to my iOS home app and control it using my phone. To implement this mainly 3 things is needed, the “on command” ; “the off command” and “the command to get the status”
          When I tried this using a module I used the following config, using mmm-strava as an example

          On_cmd = curl 
          http://192.168.29.202:8080/remote?action=SHOW&force=true&module=MMM-Strava
          
          Off_cmd=http://192.168.29.202:8080/remote?action=HIDE&force=true&module=MMM-Strava
          

          I am not able to get the state command because I couldn’t find any so my set up is incomplete.

          S 1 Reply Last reply Reply Quote 0
          • S sdmydbr9 deleted this topic on
          • S sdmydbr9 restored this topic on
          • S Offline
            sdetweil @sdmydbr9
            last edited by

            @sdmydbr9 said in Module status:

            I am not able to get the state command because I couldn’t find any so my set up is incomplete.

            so, your statement is that the MMM-RemoteControl module does not provide a mechanism to determine if a module (by name) is hidden or not

            sorry, don’t know about the internals of MMM-RemoteControl

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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