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.

    struggle with MMM-Remote-Control and MMM-Buttons

    Scheduled Pinned Locked Moved Development
    9 Posts 2 Posters 1.3k 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
      matyldatait @sdetweil
      last edited by

      @sdetweil good idea as a first step debugging. This scrip suggested doing it with button connected between a GPIO pin and ground:

      http://razzpisampler.oreilly.com/ch07.html

      …and yes - that works

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @matyldatait
        last edited by

        @matyldatait and is the vpuo.pin numbering the same between the test tool you used and theagic mirror module? there are two different numbering schemes

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          matyldatait @sdetweil
          last edited by

          @sdetweil having established that the button is working as connected on pin18,I simplified the button module usage in my config to this:

              module: 'MMM-Buttons', //use GPIO numbers
              config: {
                  buttons: [
                             {
                          pin: 18,
                          name: "test",
                          shortPress: {message: "button pressed"}
                             },
                          ]
                      },
          

          Still nothing. No message in my terminal or on mirror screen.

          1 Reply Last reply Reply Quote 0
          • M Offline
            matyldatait
            last edited by

            So, figured I could try reinstalling MMM-Buttons. I get this output on attempting to install. Gibberish tome :(

            matylda@raspberrypi:~/MagicMirror $ cd MMM-Buttons/
            matylda@raspberrypi:~/MagicMirror/MMM-Buttons $ npm install
            npm WARN deprecated har-validator@5.1.5: this library is no longer supported
            npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
            npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
            npm WARN deprecated electron-rebuild@1.11.0: Please use @electron/rebuild moving forward. There is no API change, just a package name change

            Magic-Mirror-Module-Buttons@1.0.0 postinstall
            node_modules/.bin/electron-rebuild -e …/…/node_modules/electron

            An unhandled error occurred inside electron-rebuild
            Unable to find electron’s version number, either install it or specify an explicit version

            Error: Unable to find electron’s version number, either install it or specify an explicit version
            at /home/matylda/MagicMirror/MMM-Buttons/node_modules/electron-rebuild/lib/src/cli.js:87:19
            at Generator.next ()
            at fulfilled (/home/matylda/MagicMirror/MMM-Buttons/node_modules/electron-rebuild/lib/src/cli.js:6:58)
            npm ERR! code 255
            npm ERR! path /home/matylda/MagicMirror/MMM-Buttons
            npm ERR! command failed
            npm ERR! command sh -c – node_modules/.bin/electron-rebuild -e …/…/node_modules/electron

            npm ERR! A complete log of this run can be found in:
            npm ERR! /home/matylda/.npm/_logs/2023-02-16T04_32_03_500Z-debug-0.log

            S 1 Reply Last reply Reply Quote 0
            • M Offline
              matyldatait @sdetweil
              last edited by

              @sdetweil yes it is - I also tried both numbering schemes to be sure

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @matyldatait
                last edited by

                @matyldatait install problem, yes
                use my fork which contains a fix for that

                https://github.com/sdetweil/MMM-Buttons

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  matyldatait @sdetweil
                  last edited by

                  @sdetweil thanks very much Sam - I will try that

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    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