Read the statement by Michael Teeuw here.
struggle with MMM-Remote-Control and MMM-Buttons
-
@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.
-
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 changeMagic-Mirror-Module-Buttons@1.0.0 postinstall
node_modules/.bin/electron-rebuild -e …/…/node_modules/electronAn unhandled error occurred inside electron-rebuild
Unable to find electron’s version number, either install it or specify an explicit versionError: 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/electronnpm 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 -
@sdetweil yes it is - I also tried both numbering schemes to be sure
-
@matyldatait install problem, yes
use my fork which contains a fix for that -
@sdetweil thanks very much Sam - I will try that