MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Mar
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 98
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: [MMM-Buttons] Not recognizing button presses

      So seems like I only ever get to the “Initialize button power on PIN X” log statement when accessing the MM from a remote browser. Otherwise the pi doesnt hit this part of the script on its own.

      Only error I can see so far is this when loading midori from command line (though still initializes the pin via the browser so maybe midori doesnt like this line but chrome ignores it?

      ** Message: console message: http://localhost:8080/modules/MMM-Buttons//MMM-Buttons.js @86: SyntaxError: Unexpected token '('. Expected a ':' following the property name 'sendAction'.
      
      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @istepgueu Well thank you for trying to help, its much appreciated.

      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @istepgueu yes im so stumped with this. its obviously working…just not on the instance on the hdmi monitor. Ive not used alerts before this, the only things ive attached to the pi are a pir sensor with a script on boot that turns my monitor on/off along with a few modules (tube status, wunderlist, and system stats) all of which are working fine.

      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @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.

      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @istepgueu thank you, and not a problem of course. i can understand you perfectly fine.

      1. correct pin 29, bcm 5
      2. i have this type of 4 pin button. press to activate and returns to initial position when you let go (alt text)
      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @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.

      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @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?

      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @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.

      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @istepgueu im assuming the following would just send out a test broadcast that the pm2 logs can see? It sees the notifications from all the other modules i.e CALENDA_EVENTS etc… when they happen.

      {
                          module: 'MMM-Buttons',
                          config: {
                              buttons: [
                                  {
                                      pin: 5,
                                      name: "TEST",
                                      shortPress: {
                                          notification: "TEST_ACTION",
                                          payload: {action: "ACTIONON"}
                                      },
                                      longPress: undefined
                                  }
                              ]
                          }
                      },
      
      posted in Troubleshooting
      M
      Mar
    • RE: [MMM-Buttons] Not recognizing button presses

      @istepgueu thanks, ive done this and its working properly and registers all my clicks.

      posted in Troubleshooting
      M
      Mar
    • 1 / 1