larsks / gpio-watch Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Hi,
First off, thanks for this little tool, it is very helpful with my home made domotic system: D
i was using a python script to watch gpio as a deamon but it would crash after some hours of running.
I'm having an issue with your tool, first install without an issue, everything works, coded my bash scripts, all good.
after rebooting the raspberry pi, it seems that the tool does not pick up any activity from the gpio, i juste get a blanc line without any logs when I press the button. (executing in the command directly in the console)
I ran my python tool to see if it was a hardware probleme but the python did pick up the gpio state change.
i tried doing a sudo make install as i only dit a make and used the tool from this folder, it started working again, but after a reboot, same thing :/
weather i use the tool in /usr/bin ou from the make folder, nothing is picked up.
I'm running a script as a service which executes /path/to/gpio-watcher -s /path/to/scripts/ 15, the service runs ok, and I can see my scripts executed correctly. I tried disabling the service in case it was breaking the tool on startup but it did not resolve the issue.
Do you have any idea of what can cause this probleme ? How can i assist you in debugging this ? don't hesitate to ask me for logs or try some things, i would be happy to help.
have a nice day
error: script directory "/etc/gpio-scripts" does not exist.
Running a script based on a switch on gpio 4:
/usr/bin/gpio-watch -e switch 4
The first press results in nothing, no output from gpio-watch and the script does not run. After the initial press the scripts run without issue.
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.
On many recent distributions, the /sys/class/gpio
devices are no longer present and require a kernel recompile to come back.
This is because, as explained here, the associated interface has been marked deprecated in 2015 and removed in late 2020.
It would be nice if this tool was updated to use the new kernel interface
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.