-
Notifications
You must be signed in to change notification settings - Fork 93
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
motion guard might could use a cork/inhibit during ptz operations #324
Comments
good idea. @gtxaspec, if you add a pid file (say /run/motors.pid) to |
use |
won't that run another copy of motors with all the overhead? |
it will, but it works effectively while keeping things lightweight. the app is tiny and exits once it completes, which eliminates us from adding more bloat in the daemon. overhead is minimal and won't be noticed. |
Edit: nm I might be overthinking things. |
Hrm, I was playing around with wrapping motors with a script that drops a cork for motion look for. Should motors block until the movement is completed, or would that not be in keeping with design? Otherwise I pretty much do this and it works:
and I add this to /sbin/motion at the top:
Also thinking this might need to apply to other settings like daynight... |
Maybe PTZ can drop a cork or inhibit file in /tmp that the motion script will check for before firing, and then delete the cork when PTZ is finished?
The text was updated successfully, but these errors were encountered: