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

Event script not running #1

Open
lbendlin opened this issue Oct 29, 2015 · 3 comments
Open

Event script not running #1

lbendlin opened this issue Oct 29, 2015 · 3 comments

Comments

@lbendlin
Copy link

Setting up gpio-watch with

 /home/pi/gpio-watch/gpio-watch -D /home/pi/gpio-watch -e both 25

When the event is triggered (reed switch on pin 25) I get an error message

run_script:105 pin 25: event script exited with status = 255

the "25" script is verified executable, and should run

echo "door status changed to $2"

It works when I execute it manually.

@larsks
Copy link
Owner

larsks commented Oct 30, 2015

Hi, thanks for the report! I'm going to be travelling a bit before I have a chance to look into this in detail. Does your script start with #!/bin/sh?

@lbendlin
Copy link
Author

Hi,

I actually ran it from the regular shell for now (after logging in as user pi). Not sure if that makes a difference. I can try running it from a script.

By the way, I checked the code and adjusted the folder parameter from –D to –s (the documentation seems to be a bit out of date)

Lutz

From: Lars Kellogg-Stedman [mailto:[email protected]]
Sent: Friday, October 30, 2015 4:28 PM
To: larsks/gpio-watch [email protected]
Cc: Lutz Bendlin [email protected]
Subject: Re: [gpio-watch] Event script not running (#1)

Hi, thanks for the report! I'm going to be travelling a bit before I have a chance to look into this in detail. Does your script start with #!/bin/sh?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-152643700.

@creuzerm
Copy link

This might be a permissions thing on the file in /etc/gpio-scripts/25

I ran into an issue myself and when I chmod 777 /etc/gpio-scripts/23 (I was using a different pin) I could than run both manually and by pushing the button I plugged into my GPIO.

777 isn't really the correct permissions, but it quickly found the issue for me.

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

3 participants