question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trouble with gpio

See original GitHub issue

Hi 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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
erkiliccommented, Jun 10, 2020

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

0reactions
MichMichcommented, Jul 4, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

trouble with GPIO Pins
A motor needs more power (current) than an LED. The GPIO pins can supply up to about 16mA each, which is enough for...
Read more >
Pi 4 and Gpio Issues - Hardware
If a GPIO is set to OUTPUT and you connected a closed switch between it and ground, it will create a short circuit,...
Read more >
Troubleshoot Raspberry Pi GPIO Pins - MATLAB & Simulink
The pin is configured as an input. To solve this issue: Use a different pin number. Use configurePin to reconfigure the pin as...
Read more >
Troubleshooting GPIO input issues
To troubleshoot GPIO input issues, you need a digital multimeter with test leads. Ensure that the GPIO input type is correct for your ......
Read more >
GPIO-15 (D8) on ESP8266 only used for output #3827
If the pin is high during boot, the ESP will not boot. That's also the reason those pins are set to a specific...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found