motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.93k stars 652 forks source link

Delay to generate the symbolic Link Lastsnap #2825

Open GauthierCrp opened 11 months ago

GauthierCrp commented 11 months ago

Hello Everyone,

I'm facing an issue, not really a bug, but perhaps something we can upgrade.

It seems that motioneye regenerate the "lastsnap.jpg" symbolic link every minute. For some reason, in HA automations, I would like to send the lastsnap picture, quickly after a motion is detected. Something like 10 or 20sec.

The problem is that if I send the lastsnap to earlier, I send the "previous" last snap. Is it a solution to reduce or give us the possibility to configure the delay of generating the lastsnap picture ?

Many thanks for your help. Best Regards.

zagrim commented 11 months ago

I think lastnap.jpg is created by Motion, and when it is created can be adjusted with the option Still Images > Capture Mode in MotionEye UI. What do you have selected in there? If it is Interval Snapshots, there's your interval to change. But perhaps you'd want to have Motion Triggered (One picture) instead? However, even in that case the snapshot might be generated with a small delay (somewhat depending on the captured video length), but that delay should be only max a few seconds I guess.