Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: Motion pause (Ed Kapitein)
   2. Re: Motion pause (Ed Kapitein)
   3. Re: Motion pause (Ugo Bottari)


----------------------------------------------------------------------

Message: 1
Date: Sat, 26 Mar 2022 12:58:24 +0100
From: Ed Kapitein <e...@kapitein.org>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Motion pause
Message-ID: <a270dd8f-8188-54fb-c144-ce93b26ac...@kapitein.org>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi Ugo,


Could you stop motion and restart it an hour later from a shell script?


Pseudo code:
while true; do
 ?if test -s /some/trigger/file; then
 ? sudo killall motion
 ? sleep 1h
 ? rm /some/trigger/file;
 ? sudo motion
 ?fi
done


the /some/trigger/file can be created with the on_event_start option in 
motion.conf
Kind regards,
Ed



On 3/26/22 09:09, Ugo Bottari wrote:
> I use motion with a Raspberry.
> But I have a serious drawback: motion is activated to record a brief 
> many times, even within a few minutes of each other.
> And the video clips made in this way differ slightly from each other 
> and therefore are, for my purposes, not very significant.
> Besides filling the hard disk.I would therefore need that, after 
> making a video, motion paused for - let's say - an hour.
> There is the motion pause function but it does not seem to me that it 
> is possible to activate this function for an hour and then resume 
> immediately afterwards.
> But I haven't found a similar function that reactivates motion.
> Exists ?
> Can it be solved ?
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Sat, 26 Mar 2022 13:00:00 +0100
From: Ed Kapitein <e...@kapitein.org>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Motion pause
Message-ID: <5e732fcd-83cf-2c8f-48fa-ad29f6551...@kapitein.org>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi Ugo,

Could you stop motion and restart it an hour later from a shell script?


Pseudo code:
while true; do
 ?if test -s /some/trigger/file; then
 ? sudo killall motion

 ? sleep 1h

 ? rm /some/trigger/file;

 ? sudo motion
 ?fi
done

the /some/trigger/file can be created with the



On 3/26/22 09:09, Ugo Bottari wrote:
> I use motion with a Raspberry.
> But I have a serious drawback: motion is activated to record a brief 
> many times, even within a few minutes of each other.
> And the video clips made in this way differ slightly from each other 
> and therefore are, for my purposes, not very significant.
> Besides filling the hard disk.I would therefore need that, after 
> making a video, motion paused for - let's say - an hour.
> There is the motion pause function but it does not seem to me that it 
> is possible to activate this function for an hour and then resume 
> immediately afterwards.
> But I haven't found a similar function that reactivates motion.
> Exists ?
> Can it be solved ?
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Sat, 26 Mar 2022 13:56:20 +0100
From: Ugo Bottari <ugo.bott...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Motion pause
Message-ID:
        <caeruwlwdyo2ogzs1jwcblmydsvp4ssyxvit9sqqhxf1duss...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

 Hi Ed
I figured it would take some code.
Unfortunately I am not able to create a script that implements the
indicated pseudo-code.
I have minimal experience with sh scripts but I don't think I can write one
that is so (for me) complex.
Incidentally: It seems strange to me that such a feature is not implemented
by default in motion.
Can I have your help?
Thank you very much.

Il giorno sab 26 mar 2022 alle ore 13:18 Ed Kapitein via Motion-user <
motion-user@lists.sourceforge.net> ha scritto:

> Hi Ugo,
>
> Could you stop motion and restart it an hour later from a shell script?
>
>
> Pseudo code:
> while true; do
>  if test -s /some/trigger/file; then
>   sudo killall motion
>
>   sleep 1h
>
>   rm /some/trigger/file;
>   sudo motion
>  fi
> done
>
> the /some/trigger/file can be created with the
>
>
>
> On 3/26/22 09:09, Ugo Bottari wrote:
>
> I use motion with a Raspberry.
> But I have a serious drawback: motion is activated to record a brief many
> times, even within a few minutes of each other.
> And the video clips made in this way differ slightly from each other and
> therefore are, for my purposes, not very significant.
> Besides filling the hard disk. I would therefore need that, after making
> a video, motion paused for - let's say - an hour.
> There is the motion pause function but it does not seem to me that it is
> possible to activate this function for an hour and then resume immediately
> afterwards.
> But I haven't found a similar function that reactivates motion.
> Exists ?
> Can it be solved ?
>
>
> _______________________________________________
> Motion-user mailing 
> listMotion-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/motion-userhttps://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 189, Issue 12
********************************************

Reply via email to