motioneye-project / motioneye

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

Add working schedule support for continuous recording #3010

Closed Marijn0 closed 3 months ago

Marijn0 commented 3 months ago

Hi

This allows you to use the working schedule to make continuous recordings at set times.

I copied the following functions from existing code: async def get_motion_detection async def set_motion_detection async def _disable_initial_motion_detection async def _switch_motion_detection_status

And edited them so that they can be used with emulate motion. Hope this is acceptable, my experience with Python is limited 🤭

If this were to be implemented then the GUI would probably need an update from: Detect Motion, During Working Schedule / Outside Working Schedule, to: Record Movies, During Working Schedule / Outside Working Schedule

But I don't know how to do this properly, and how does this work with the translation... (probably a change in main.html?)

This also solves the following issues: #766 and perhaps this one: #1630