trouble with gpio
See original GitHub issueHi hope someone can help me, as I’m trying to solve this issue since hours, but no success 😦(
if I include the command: const Gpio = require(‘onoff’).Gpio; in my node_helper I get this error during start of MM:
/home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/node_modules/epoll/build/Release/epoll.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! magicmirror@2.10.1 start: ./run-start.sh
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the magicmirror@2.10.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-06-10T10_31_46_539Z-debug.log
working on raspi4 raspian is up to date gpio -v brings 2.5 sudo usermod -a -G gpio pi -> no error sudo npm install onoff brings: -> no error
I really hope soemeone can help. I only want to switch a relais on/off within MagicMirror. Switching the relais outside MM, with separate js file works fine.
Gürkan
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Thanks for your very quick response!
You are right. I will try it again in my module directory and will give feed back.
Von: framboise-pi notifications@github.com Gesendet: Mittwoch, 10. Juni 2020 14:06 An: MichMich/MagicMirror MagicMirror@noreply.github.com Cc: Gürkan Erkilic mail@erkilic.de; Author author@noreply.github.com Betreff: Re: [MichMich/MagicMirror] trouble with gpio (#2040)
did you try installing within your module folder (npm install) with dependency to ‘onoff’ and minimum version written in package.json i guess you installed ‘onoff’ in MagicMirror/node_modules not in yourmodulefolder/node_modules
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MichMich/MagicMirror/issues/2040#issuecomment-641959266 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALFLNTBVMZ2QYI7CXTJ5NBLRV5ZLVANCNFSM4N2ILSOA . https://github.com/notifications/beacon/ALFLNTCWXF3WCGSEXHP3CCDRV5ZLVA5CNFSM4N2ILSOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEZBYKYQ.gif
Please refer to http://forum.magicmirror.builders for support and troubleshooting.
I’m closing this issue for now. If you feel this issue should remain open, please let me know.