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.

    Bridging the gap... LIRC -> Magic Mirror / Pages control using MMM-Remote-Control

    Scheduled Pinned Locked Moved Solved Troubleshooting
    9 Posts 2 Posters 985 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.
    • BKeyportB Offline
      BKeyport Module Developer @sdetweil
      last edited by

      @sdetweil LIRC = Linux Infered Remote Control. Basically, will issue commands on any remote control press as programmed into it. That part I have working, and will issue commands properly.

      If I issue a Volume Up command from my remote, LIRC will respond and issue a curl -X GET http://magicmirrorip:8080/api/refresh - which will trigger MMM-remote-control to refresh the mirror.

      but,
      the problem Iโ€™m currently having, apparently, is that the methods of sending the notification in MMM-Remote-Control isnโ€™t exactly clear to me, and I donโ€™t know how to modify them to trigger MMM-Pages (Your version, BTW)

      curl -X GET http://magicmirrorip:8080/api/notification/SHOW_HIDDEN_PAGE/blah is what I assume should work - if I issue the web command in the browser, MM responds with {"success":true,"notification":"SHOW_HIDDEN_PAGE","payload":"blah"} however, nothing is triggered in MM.

      Iโ€™m gleaning info from: https://github.com/Jopyth/MMM-Remote-Control/blob/master/API/README.md

      The "E" in "Javascript" stands for "Easy"

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

        @BKeyport is โ€œblahโ€ the name of the hidden page you want shown?

        hiddenPages is a collection of NAMED (case sensitive) hidden page definitions

        hiddenPages:{
              "sample":["class1" ],
               "fribble":["class2"]
        }
        

        to show the collection of modules for hidden page sample the notification would be

        โ€œSHOW_HIDDEN_PAGEโ€, โ€œsampleโ€

        right?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        BKeyportB 1 Reply Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer @sdetweil
          last edited by BKeyport

          @sdetweil

          hiddenPages: {
              "blah": ["Page4"],
          },
          

          The "E" in "Javascript" stands for "Easy"

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

            @BKeyport so, install MMM-Notifications to see if it was really sent
            also open the developers window, mmm-pages logs a message

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            BKeyportB 1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @sdetweil
              last edited by

              @sdetweil MMM-Notification is not found, however, I did find MMM-ViewNotification, and it was sending as requested.

              User Error. I did a typo.

              Geez. ๐Ÿ™ƒ๐Ÿ™ƒ๐Ÿ™ƒ๐Ÿ™ƒ

              The "E" in "Javascript" stands for "Easy"

              S 1 Reply Last reply Reply Quote 0
              • BKeyportB BKeyport has marked this topic as solved on
              • S Offline
                sdetweil @BKeyport
                last edited by sdetweil

                @BKeyport dang computers are SO picky

                yes ViewNotification

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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