Read the statement by Michael Teeuw here.
MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder
-
@AgP42
Hi,thanks for your request, i checked my code and can give you a solution for the brightness issue.
I found out, that it seems to be a problem with MMM-Remote-Control, node_helper.jsBut there is a workaround:
Replace line 618
res.send({"status": "success"});
through
if (res) { res.send({"status": "success"}); }
Thanks to glitch452 who found the error, details see:
https://github.com/Jopyth/MMM-Remote-Control/issues/76Sample code for config.js, Module MMM-Navigate:
{notification: "REMOTE_ACTION", payload: {action: "BRIGHTNESS", value: "200"}},
AxLED
-
Great ! Thank you so much !
But as said on the link you gave :
@axled said in MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder:
Thanks to glitch452 who found the error, details see:
https://github.com/Jopyth/MMM-Remote-Control/issues/76the line to replace is
res.send({"status": "success"});
and not
self.sendSocketNotification(query.action, query.value);
Then it is working perfectly !
-
@AgP42
You are right, i told you the wrong line, i corrected my thread above.
I am glad it is working on your MM as needed.
AxLED -
Hi to all MM Builders,
i made an update to my module MMM-Navigate.
1.2 Changelog:
- tadded lock icon next to navigation alias, if locked
- code cleaned
Happy navigation.
AxLED
-
Hi,
i installed this module with the Rotary Encoder KY-040. Scroll through navigation work fine, but nothing happened, when I press the button on the encoder.
Test with Url (yourmmip:8080/remote?action=NOTIFICATION¬ification=PRESSED) works fine.
What could be the problem ??
-
@Eisblume
Did you use the right Pin (either in config or on the pi) for the ‘press’ signal of the rotary encoder?
Is the module MMM-Remote-Control installed and working?
AxLED -
Hi,
yes Pin 19, like you suggested. Everything else works fine, only the press action doesn’t work.
MMM-Remote-Control is installed.
I ordered a new Rotary Encoder, maybe this one I use has a defect .
Eisblume -
@Eisblume
You can also try to put clockwise or counterclockwise signal on pin 19 for testing, so cw or ccw should send the press command. So you can make sure if press switch of your rotary encoder is bad.
AxLED -
Thx for support !!
I will try and report !!
-
@AxLED
I bought some new Rotary Encoders and with each one i had the same result. No press result will send, when i press the button :-( !But when i put cw or cww on pin 19, the press signal will send when i turn cw or cww.
I tried other Pins for the press Signal, but it also doesn´t work.
I am confused…! Any ideas what i can try to solve my Problem?
Greets
Eisblume