-
Notifications
You must be signed in to change notification settings - Fork 48
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
Proof-Of-Concept PR: immediate motion detection on S-CAM #142
base: master
Are you sure you want to change the base?
Conversation
Add support for cam1/fast_motion and cam1/fast_image mqtt topics to have immediate motion detection
Start fast_motion demon
Hi, All of the code for handling motion events is already in there, so would only need to implement the inotify part of it and disconnect the current sql trigger. You would probably need to create a new thread to monitor for inotify events, which can then call the existing callback for motion events. Do you have any experience with C programming? happy to give some pointers on how it might be implemented if you want to have a crack at? |
I started programming some 40 years ago :-) The limiting factor is quality time. I have thought about your proposal. Busybox inotifyd source has all the code needed to plug into |
I will add the inotify code to mqtt-sonoff daemon. |
Excellent :-) |
Good. |
Please test the pre-release: |
I am creating this PR to document a possible solution for immediate motion feedback via mqtt on S-CAM devices. Earlier information was provide in issue #113.
The code is far from production quality and contains hard-coded values. The purpose is to document all what I have done to get this working.