• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

[MMM-Buttons] Not recognizing button presses

Scheduled Pinned Locked Moved Troubleshooting
23 Posts 3 Posters 14.5k 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.
  • M Offline
    Mar @istepgueu
    last edited by Feb 5, 2017, 8:32 PM

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

    I 1 Reply Last reply Feb 5, 2017, 8:40 PM Reply Quote 0
    • I Offline
      istepgueu @Mar
      last edited by Feb 5, 2017, 8:40 PM

      @Mar
      Sorry but I have no idea … Maybe @Jopyth the creator of the module could help you?

      M 2 Replies Last reply Feb 5, 2017, 8:41 PM Reply Quote 1
      • M Offline
        Mar @istepgueu
        last edited by Feb 5, 2017, 8:41 PM

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

        1 Reply Last reply Reply Quote 1
        • M Offline
          Mar
          last edited by Mar Feb 5, 2017, 9:46 PM Feb 5, 2017, 9:00 PM

          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'.
          
          1 Reply Last reply Reply Quote 0
          • M Offline
            Mar @istepgueu
            last edited by Mar Feb 5, 2017, 9:49 PM Feb 5, 2017, 9:48 PM

            @istepgueu @Jopyth Whoo hoo got it.

            MMM-Buttons.js: Semi colons on line 71/72 and line 86 needs to be changed to:

            sendAction: function(description) {
            

            where as it currently just reads:

            sendAction(description) {
            
            J 1 Reply Last reply Feb 6, 2017, 10:52 AM Reply Quote 2
            • J Offline
              Jopyth Moderator @Mar
              last edited by Jopyth Feb 6, 2017, 10:53 AM Feb 6, 2017, 10:52 AM

              @Mar Good thing you found this error. Very strange, that it did not complain on my Pi before.

              Helpful sticky: How to troubleshoot

              M 1 Reply Last reply Feb 6, 2017, 8:24 PM Reply Quote 1
              • M Offline
                Mar @Jopyth
                last edited by Mar Feb 6, 2017, 10:59 PM Feb 6, 2017, 8:24 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 3
                • 3 / 3
                3 / 3
                • First post
                  21/23
                  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