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 661 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
      sdetweil @BKeyport
      last edited by

      @BKeyport what is LIRC?

      also see this, maybe will help

      https://forum.magicmirror.builders/post/124353

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S BKeyportB 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @sdetweil
        last edited by

        @BKeyport prior to this module there was no curl interface, you need a module to add that

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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