evilmarty / mjpeg-timelapse

Mjpeg Timelapse integration for Home Assistant
MIT License
24 stars 4 forks source link

Feature request: service to force an image snapshot #14

Open bjeanes opened 1 year ago

bjeanes commented 1 year ago

I'd like to be able to create automations in HA for more complex timing logic or for intervals which may not survive a restart (e.g. daily). If there were a service exposed to call fetch_image, then I could do it with any external timing or event-based logic desirable. It might make sense in this case, to accept fetch_interval: 0 to disable built-in timing, but I can also just call the pause service on HA boot as a workaround.

What do you think about this idea?

evilmarty commented 1 year ago

I'm not sure what to think of the idea. It sounds very specific for your needs but not sure for what else. By the sounds of it you have a workaround. Contributions are welcome to make enhancements.