Read the statement by Michael Teeuw here.
Bridging the gap... LIRC -> Magic Mirror / Pages control using MMM-Remote-Control
-
I’m currently attempting to use LIRC to set up a remote control to control the mirror via Pages.
What I’ve gotten so far is attempting to use MMM-Remote-Control to send notifications through the mirror to Pages and control it. I can successfully issue commands from LIRC to system built in commands, but fail in sending notifications out. They seem to do nothing, ever.
Can someone help me figure out how to use the notification sender correctly, so I can send notifications to MMM-Pages and get it to show a hidden page ? Specifically the URLs to
curl
to get it to do what I want?Thanks!
-
@BKeyport what is LIRC?
also see this, maybe will help
-
@BKeyport prior to this module there was no curl interface, you need a module to add that
-
@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
-
@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?
-
hiddenPages: { "blah": ["Page4"], },
-
@BKeyport so, install MMM-Notifications to see if it was really sent
also open the developers window, mmm-pages logs a message -
@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. 🙃🙃🙃🙃
-
B BKeyport has marked this topic as solved on
-
@BKeyport dang computers are SO picky
yes ViewNotification