Is there a way to have motion only detect motion in specific time periods? #1765
-
I wanted to restrict the motion detection to certain time periods. I wanted to avoid detect events when we are leaving/returning home for work and school (happens on very specific time windows on weekdays). Is there a way to do this with motion still available? Could not find anything related with that on documentation. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
There is no built-in feature that could enable/disable motion detection based on the schedule. But you can use an external script or cron to send API request. Check webcontrol_interface option before using it Example: |
Beta Was this translation helpful? Give feedback.
-
@chegancasb Issue gardening. If the solution works, please close discussion as solved and mark @tosiara's reply as answer. |
Beta Was this translation helpful? Give feedback.
-
Hello, If I may, I can recommend using motion-UI (https://github.com/lbr38/motion-UI). It is a web interface for motion that I developed. It allows you to define an autostart & stop of the motion service based on time slots, or based on the presence of a network device on the local network (for example, a smartphone). I personally use this feature to automatically disable motion when I come home and enable it when I leave. |
Beta Was this translation helpful? Give feedback.
There is no built-in feature that could enable/disable motion detection based on the schedule. But you can use an external script or cron to send API request. Check webcontrol_interface option before using it
Example:
curl http://localhost:8080/0/detection/pause