Proof-Of-Concept PR: immediate motion detection on S-CAM#142
Proof-Of-Concept PR: immediate motion detection on S-CAM#142couriersud wants to merge 7 commits intoroleoroleo:masterfrom
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.