Read the statement by Michael Teeuw here.
[MMM-Buttons] Not recognizing button presses
-
@Jopyth Yes of course !
-
@istepgueu So my button registers properly but its not sending out a notification at all. There are no errors and my mirror loads correctly. I’m using the pin5:test code above.
-
@Mar you can you test with this code and capture log from firebug
{ pin: 5, name: "power", longPress: { title: "Power off", message: "Keep pressed for 3 seconds to shut down", imageFA: "power-off", notification: "REMOTE_ACTION", payload: {action: "SHUTDOWN"} }, shortPress: undefined }
-
@istepgueu Alright now this is weird. I have my MM running via HDMI, and also opened it up in a Chrome tab on my laptop. When i press the buttong the inspector shows the log of the button and I get a popup on Chrome. But nothing is happening on the screen connected to the actual pi?
-
@Mar I suppose you have try
pm2 restart mm
-
@istepgueu Tried that, also tried a reboot. Doesnt work on the screen connected to the pi, but still does when i access via a browser. Also when i access via a browser I see this show up in the logs “Initialize button power on PIN 5” but this line doesnt show up when restarting MM and accessing via the HDMI.
-
@Mar Ok
1 - Your button is connected on PIN N°29 = GPIO 5 ?
2 - Which type of button do you have ? It’s a Push button (Button that returns alone) or a button who stay ?Sorry for my english… i’m French :-)
-
@istepgueu thank you, and not a problem of course. i can understand you perfectly fine.
- correct pin 29, bcm 5
- i have this type of 4 pin button. press to activate and returns to initial position when you let go ()
-
-
@istepgueu no change. the script is recognizing the press, and so is it through the browser on my laptop. But nothing on the HDMI screen attached to the pi.