-
Notifications
You must be signed in to change notification settings - Fork 9
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
Alert via webhook and read snapshot-URL? #37
Comments
One of my goals with this project is to extend the webhook to allow you to post the actual image file. I hadn't thought about posting an image URL but that could work too. The nice thing about integrating with Blue Iris is that it can manage the file storage for you by deleting old files automatically. If I open up the webhook to posting image files, then I'll need build out the file management too so that the server doesn't fill up with gigs of image files. None of this is novel or hard but it would take some time to stand up. What does a web request from Shinobi look like? |
Shinobis API is quite extensive. So far that I haven't even begun to scratch the surface ;)
This flow would not create gigs of image files as they are not stored on the drive but are dynamic in the url. So lastwatch should (maybe) only use the image for detecting and can discard it afterwards. |
The file would have to be accessible by the webserver in order to run it through the AI. The entire app is built around the assumption that the image file is accessible by the web server. Note that this could include shared folders.. the images don't have to physically reside on the web server, they just have to be accessible through the file system. Either the image data would need to be posted to the webhook, or the image URL would be posted. I see shinobi provides an API to get images but where is the API that triggers on motion events? I could expose a new webhook endpoint for Shinobi but I have no idea what format it sends. I don't see anything in the API docs about pushing motion events. |
The documentation is not the best. ;) |
I'm currently experimenting in using Shinobi as my NVR software.
However shinobi unlike BI or Zoneminder doesn't have an option to save jpegs of events in a folder (unless doing this with a user script)
However it can call webhooks and has a snapshot URL for each camera.
So my thinking was an alternate workflow could be to alert last-watch-ai via a webhook and have last-watch-ai then read the image from a snapshot url.
I know motioneye also supports webhooks, so that would be another software this solution could work with.
The text was updated successfully, but these errors were encountered: