Closed mabed-fr closed 5 months ago
Hi there - So when an event is received from Frigate, it will contain a field named has_snapshot
. If this is true
, then we'll reach out to Frigate, grab the snapshot, and attach it to the notification. But if has_snapshot
is false
, then we still send a notification - but instead append text that says no snapshot was available for the event. So likely if you're receiving these notifications, then Frigate told us in the event message that it didn't have any snapshot images for the event at the time.
I've noticed since testing Frigate 0.14 beta, I've been getting more events like this - so I'm wondering if perhaps events are getting sent out quicker than it can generate snapshot images. Usually for me, I'll get 1-2 notifications with no snapshot - then the rest for that event will have an image.
On my todo list for the next release will be a config option to drop events without a snapshot, so that someone could modify that behavior if they like.
I would like to advance this point because I have just checked that I have a snapshot on my disk corresponding to the event, should we continue here or on the frigate project?
the option doesn't interest me unfortunately but nice work
So you would eventually have a snapshot on disk, because Frigate will generate one - but it may not have one ready by the time the MQTT event goes out. From this app's perspective, I don't try to retrieve a snapshot from Frigate unless the MQTT message says one is available. If the event continues to be updated by Frigate, we usually receive an MQTT message that updates has_snapshot
to true
- at which point we can send an updated notification that includes the image.
Admittedly, I haven't dug into it too much yet - but my guess at this point is that Frigate might just be taking a little while longer to generate & save a snapshot to disk. In my experience so far, it's not every event - just a small handful. How frequently are you seeing this?
Yes i agree .
I use your system from yesterday i must wait for give my feedback from snapshot missing
I have lot of missing snapshot
a couple things to clarify here. Frigate does not write the snapshot to the disk until the event is over. Until then it holds the snapshot in memory. has_snapshot is only based on the criteria of an event (snapshot -> required_zones for example).
a couple things to clarify here. Frigate does not write the snapshot to the disk until the event is over. Until then it holds the snapshot in memory. has_snapshot is only based on the criteria of an event (snapshot -> required_zones for example).
What is you idea for resolving the problem ?
maybe just don't send any notification until a snapshot is available, or send a thumbnail instead of a snapshot.
Usually this happens because an object has not moved or has not entered the required zone, the mqtt payload will answer all questions related to this
Dear @NickM-27,
Since the most important thing for any event-based notifications is responsiveness, so from a UX pov, the notification should appear almost instantly to the consumer.
Therefore, the first essential question is how long can take the transition from snapshot is stored in memory
to snapshot was written to a disk
?
And the second one: can this action (the snapshot was written to disk) be reported by the Frigate over MQTT (or even via websocket) somehow?
I think the wrong thing is being focused on here. The snapshot being written to disk or not is entirely irrelevant. Whether it is on the disk or in memory does not matter at all from the notification perspective, it is accessible from the api regardless
In general, the new /reviews topic in 0.14 would be easier and more reliable to only deliver notifications that the user would care about since they designate if it is an alert
or a detection
https://github.com/blakeblackshear/frigate/discussions/11554
@0x2142 what do you mean ? use thumbnail before rewrite for 0.14 /reviews MQTT topic ?
@mabed-fr Please try the new release and let me know if you're still seeing this issue. I made a few changes to reduce notifications by events that may be filtered by Frigate.
I'm working on the /reviews stuff - but no ETA yet
For now it's 100% I close if ok Friday
Hi @mabed-fr,
Just a friendly reminder, last Friday has already gone 👋
Yes is true.
since y have 0 « snapshot not available »
Hello
I use ntfy + discord with mqtt and y have 2 times out of three Random "No snapshot available"
How to debug ? Do you know the problem ?
Frigate (0.14.0-bccffe6) eclipse-mosquitto:latest