Skip to content
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

Is gpis-admin still needed? #38

Closed
aramperez opened this issue May 15, 2015 · 8 comments
Closed

Is gpis-admin still needed? #38

aramperez opened this issue May 15, 2015 · 8 comments

Comments

@aramperez
Copy link

I've just installed 2015-05-05-raspbian-wheezy and I'm getting the following error (even though the example still runs correctly):
"Error when trying to open pin xx
/bin/sh: 1: gpio-admin: not found"

I have not installed gpio-admin.

Thanks,
Aram

@omkarkhair
Copy link

I get the same error when I try to run my app at boot from /etc/init.d.

@aramperez
Copy link
Author

It appears that no one is monitoring this list :-(

@rakeshpai
Copy link
Owner

I don't have a Pi handy to test, so I can't confirm. Recent pull requests
have changed things around a bit. I think that gpio-admin is still needed,
though.

On Wed, Jul 8, 2015 at 9:05 PM, Aram Perez [email protected] wrote:

It appears that no one is monitoring this list :-(


Reply to this email directly or view it on GitHub
#38 (comment).

Rakesh Pai
Mumbai, India.
http://rakeshpai.me/
http://twitter.com/rakesh314
http://www.google.com/profiles/rakeshpai

@omkarkhair
Copy link

My issue was resolved after changing gpioAdmin = "gpio-admin" to gpioAdmin = "/usr/local/bin/gpio-admin" in pi-gpio.js. Alias apparently don't work in init.d scripts. This is obviously an application specific work around.

@tjanson
Copy link
Collaborator

tjanson commented Jul 8, 2015

You could also try my branch (Pull Request: #27, original issue #25), which replaces quick2wire’s outdated gpio-admin with Wiring Pi’s gpio utility.

However, I haven’t used this since last fall, so it’s possible that something broke in the mean time. Feel free to give it a try, though, and submit feedback (separate issue please). I will get back to this eventually, I just don’t know when …

@aramperez
Copy link
Author

@tjanson, is there a way to "assume" the pins have already been exported and modes set? I see there is an optional 'exportMode' argument that can be passed but I don't want to be passing 'off' everytime I call an API. I've written a utility (that uses wiring-pi) that reads a JSON file to configure and export the GPIO pins, including setting the pull-up/down resistors and whether the pin is active low/high.

@tjanson
Copy link
Collaborator

tjanson commented Jul 9, 2015

@aramperez Other than that parameter, no. You could adapt the code or wrap the call so that 'off' is the default. Perhaps a setDefaultExportMode function or a config file would be nice. Feel free to add whatever suits you.

@aramperez
Copy link
Author

@tjanson I'll let you know what I end up using, thanks.

@tjanson tjanson closed this as completed Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants