-
Notifications
You must be signed in to change notification settings - Fork 338
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
Implement motion url detection #211
Comments
Hi @fufurax, |
Hi @Clem- Nothing is return when call it from the browser. But it's strange because there is new mp4 files generated in record files |
The script only detects newer motion detection (for the last minute) : You may want to update your code with this pull request that intends to improve this motion detection script. |
In fact I want to use the motion detection of the camera to trigger events to Domoticz. I can probably write a script in Domoticz to scan every 30 secondes to detect if motion has detected something but I think it's not the good solution. Have you implement something like that arroud Yi cam ? |
Great idea! I'm also using Domoticz but never take the chance to develop that kind of feature. You could simply follow my previous link to the pull request and make a GET request to Domoticz instead of POST for a notification. If you need further help with that feel free to ask. |
Hello. The kernel in this firmware supports inotify. I was able to compile inotifywait and use it to watch for new recordings and trigger an http endpoint using curl. Maybe you will find this helpful. #!/bin/sh poor mans motion sensor/tmp/hd1/inotifywait -mrq -e CREATE --format %w%f /tmp/hd1/record_sub | while read FILE |
Hi,
I want to implement the GET motion url in SH scipts. Is it possible ?
I've try :
curl -i -su login:pass -H "Accept: application/json" -X GET http://192.168.1.110/motion
but the return is not good
HTTP/1.1 200 Ok
Server:
Date: Thu, 15 Mar 2018 12:05:11 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 1
Last-Modified: Tue, 01 Jan 1980 00:00:00 GMT
Connection: close
Sorry, i'm really not specialist.
Thanks
The text was updated successfully, but these errors were encountered: