-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changed path for exporting pins #6
base: master
Are you sure you want to change the base?
Conversation
the devices/virtual path wasn't working, but this one does work.
Must just say good job, it works! I am running a pi b +, with recent firmware etc, Did some manual changes to the file that was changed according to this commit, namely the file gpio-admin.c which can be found within the folder structure quick2wire-gpio-admin/src/gpio-admin.c and replaced the path as described in files changed (look at the tab files changed to get a visual). Did a "sudo make uninstall" from within the quick2wire-gpio-admin folder, then "sudo make install" and added the user "sudo adduser $USER gpio" (where $USER is your user..). Logout and login, and then voila it works! :) Just wanted to overexplain some stuff here incase somebody was struggling. But anyways thanks for this fix, good job 👍 |
Thanks all, worked for me too. |
this works, especially after following DaWoody's comments. |
Thanks DaWoody you DaRealMVP |
Thanks all, Successfully rectified my group ownership issue after upgrading. I'm currently running version 3.18.5, model B+. I receive the following in Terminal: Listening on port 3600 The LED connected to GPIO pin #36 FLASH quickly ONCE and turns OFF when pressing 'ON' button on the web server page. The led functioned perfectly prior to the update. Any suggestions? Thank you! |
Hello, I just followed this fix, but I face exactly the same issue as solaron99 on another GPIO (#4) : the LED flash (and I can hear the relay switch) but quickly and then turns OFF after 1sec... |
There's an answer to fix it. |
Why this hasn't been merged yet? |
Actually there's a better fix: #7 |
This hasn't been merged yet because the entire quick2wire software stack has unfortunately been completely abandoned by the original authors. |
Thanks for the fix. |
Worked great thanks! |
Gentlemen, I followed your suggestions but fail to resolve my issue. gpio-admin.c : int size = snprintf(path, PATH_MAX, "/sys/class/gpio/gpio%u/%s", pin, filename); pi-gpio.js :
app.js : // Apply command GPIO #36
Any suggestions? Thank you! |
@solaron99 , try removing the gpio.close(36); lines |
great, thank you! Will keep you posted on the results -ron
|
Finally got it working thanks to @DaWoody and @rexington ! It would be great to have a robust library with no requirements to abandoned packages, up to date with the latest Raspbian, with better support for RasPi 3 - just working. I'm new to the Raspi world and really hoped there was better support for NodeJs. Other than these |
I dunno if it's what you're looking for, but https://gpiozero.readthedocs.io is very comprehensive and included in Raspbian by default. |
Thanks for the tip, it looks very promising. |
thanks guy! is work for me. |
@rmzamith Your solution worked! Thank you. |
the devices/virtual path wasn't working, but this one does work.