You are here:
Foswiki
>
Motion Web
>
SupportRequests
>
SupportQuestion2012x01x25x140642
(13 Feb 2012,
DavidHorner
)
(raw view)
E
dit
A
ttach
---+ %FORMFIELD{"TopicTitle"}% <!-- Do not edit title above. Edit the TopicTitle field in the form at the bottom --> ---++ Question I would like to start the motion detection after a particular time of the day, say from 5pm until 7 am in the morning the next day. Is there a simple way to do this? I have searched in the FAQ and answered question sections and have not found anything related to capture times. Any help will be greatly appreciated. thanks ALV <verbatim> </verbatim> ---++ Environment | Motion version: | 3.2.11 | | ffmpeg version: | 0.5.1 | | Libraries: | ffmpeg, mysql, postgresql | | Server OS: | Ubuntu 10.04 | -- Main.AlbertoLopez - 25 Jan 2012 ---++ Answer How do I make time based motion settings?<br /><br />You use a combination of the Motion remote control and the Linux cron daemon which all Linux <br />systems have. Let us take the example that we want to enable motion detection at 9:00 in the <br />morning and turn it off at 18:00. Motion 3.1 must be built with xmlrpc. If you use 3.2 Motion <br />is remote controlled using a browser.<br /><br />In the file /etc/crontab we add these lines.<br /><br />motion 3.1:<br /><br />0 9 * * * root /usr/local/bin/motion-control detection resume <br />0 18 * * * root /usr/local/bin/motion-control detection pause <br /><br />motion 3.2<br /><br />From motion 3.2 there is no longer a motion-control program. Instead you use a program that <br />can fetch a webpage. We simply just throw away the html page that Motion returns. Programs <br />commonly available on Linux machines are wget and lwp-request.<br /><br />0 9 * * * root /usr/bin/lwp-request http://localhost:8080/0/detection/start > /dev/null <br />0 18 * * * root /usr/bin/lwp-request http://localhost:8080/0/detection/pause > /dev/null <br /><br />Most Motion config options can be changed while Motion is running except options related to <br />the size of the captured images. So only your fantasy sets the limit to what you can change <br />combining cron and the remote control interface for Motion.
SupportForm
edit
TopicTitle
How to configure to capture only at specified times of day
SupportStatus
AskedQuestions
AssignedQuestionTo
SubmittedBy
WikiGuest
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: 13 Feb 2012,
DavidHorner
Motion
Log In
or
Register
Welcome
Motion Web
Motion Home
Motion Guide
- Config Options
FAQ
Downloads
Support Requests
Bug Reports
Feature Requests
Motion Patches
Related Projects
Mailing List
Index
Motion Web Changes
Search
Latest version: 3.2.12
Webs
Application
OSS
QMS
Requirements
Kenneth
Main
Mixed
Motion
Open2300
PWC
Sandbox
System
Motion - Support Question 2012x 01x 25x 140642
Copyright © 1999-2013 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (
read why
). Use the
Support Requests
page or join the
Mailing List
.