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: output_normal (tosiara)
   2. Re: Motion External Trigger (Chip Griffin)
   3. Re: Motion External Trigger (Dave Fournier)
   4. Re: Motion External Trigger (Chip Griffin)


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

Message: 1
Date: Wed, 15 Jun 2016 16:00:50 +0300
From: tosiara <tosi...@gmail.com>
Subject: Re: [Motion-user] output_normal
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <cachtdwtsxnxkxq9uyu+rncom2umfb2qje3muakgx-c+rh7f...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Probably, this is the way - motion saves picture at the end of the event.
As a workaround, you can write a script that saves a snapshot on event
start. Like, "curl -s http://localhost:8080/0/action/snapshot
<http://localhost:8000/0/action/snapshot> > /dev/null"
Snapshots are saved immediately

On Sun, May 29, 2016 at 12:56 AM, Vasco DaGama <vascoma...@hotmail.com>
wrote:

> in the motion.conf, "output_normal first" doesnt save a jpg until the
> event has ended.
>
>
> how can i get the first jpg to be saved immediately, similar to how
> "output_normal on" does?
>
>
> thanks.
>
>
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Sun, 19 Jun 2016 07:39:01 -0400
From: Chip Griffin <n1...@mac.com>
Subject: Re: [Motion-user] Motion External Trigger
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID: <8e3bd938-4104-46ba-9cb9-4a705ab41...@mac.com>
Content-Type: text/plain; charset="utf-8"

Gotta say that my frustration with this whole motion thing is reaching a whole 
new level.

I finally got around to trying the suggested run as a user (which is useful 
only in troubleshooting because it really ought to run as a daemon as 
designed). First thing I?ve discovered is that it apparently does not use the 
/etc/motion/motion.conf file. So I force fed it the path with the -c switch. 
That didn?t work. Several tries and I learned it had to be run with sudo to 
read that file. So I copied that file to the users directory, changed user, and 
fed it that conf file. That worked but now it balked at the log file which had 
a similar permission issue. I did the same solution (user directory).

Twenty tries later I had it working. Exactly as intended. So it works as a 
user. But that doesn?t solve the problem. Certainly I could use cron to run 
this as a user after a restart and direct all output to a file. But that isn?t 
how this was meant to work. It was meant to work as a daemon. And clearly 
people have used it in that way. So why won?t it work? Let?s solve that problem 
not create an inelegant work around.

> On Jun 5, 2016, at 22:08, Mike Wilson <knobby2...@gmail.com> wrote:
> 
> I am almost certain this is a user permission issue. If you run the command 
> as the motion user does it work? I don't think the motion user has access to 
> your x session.



--
    Chip

-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 3
Date: Sun, 19 Jun 2016 07:29:30 -0700
From: Dave Fournier <xdavefourn...@gmail.com>
Subject: Re: [Motion-user] Motion External Trigger
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <CAPiBocD7Ve1gmsXu2c=pUFU=qwvymfsrhlzl7q4++kib-1u...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You can change the user for a service with the --chuid option.
edit the motion file in /etc/init.d  (This may be obsolete for newer
version of Linux.)

This runs the service as user dave

if start-stop-daemon --start --oknodo --exec $DAEMON -b --chuid dave ; then
            log_end_msg 0


On Sun, Jun 19, 2016 at 4:39 AM, Chip Griffin <n1...@mac.com> wrote:

> Gotta say that my frustration with this whole motion thing is reaching a
> whole new level.
>
> I finally got around to trying the suggested run as a user (which is
> useful only in troubleshooting because it really ought to run as a daemon
> as designed). First thing I?ve discovered is that it apparently does not
> use the /etc/motion/motion.conf file. So I force fed it the path with the
> -c switch. That didn?t work. Several tries and I learned it had to be run
> with sudo to read that file. So I copied that file to the users directory,
> changed user, and fed it that conf file. That worked but now it balked at
> the log file which had a similar permission issue. I did the same solution
> (user directory).
>
> Twenty tries later I had it working. Exactly as intended. So it works as a
> user. But that doesn?t solve the problem. Certainly I could use cron to run
> this as a user after a restart and direct all output to a file. But that
> isn?t how this was meant to work. It was meant to work as a daemon. And
> clearly people have used it in that way. So why won?t it work? Let?s solve
> that problem not create an inelegant work around.
>
> On Jun 5, 2016, at 22:08, Mike Wilson <knobby2...@gmail.com> wrote:
>
> I am almost certain this is a user permission issue. If you run the
> command as the motion user does it work? I don't think the motion user has
> access to your x session.
>
>
>
>
> --
>     Chip
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports. http://sdm.link/zohomanageengine
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 4
Date: Sun, 19 Jun 2016 12:26:24 -0400
From: Chip Griffin <n1...@mac.com>
Subject: Re: [Motion-user] Motion External Trigger
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID: <3365d4dd-3190-4b29-8cb0-3253f6844...@mac.com>
Content-Type: text/plain; charset="utf-8"

That option is still in the init.d/motion file but changing it doesn?t work. I 
can?t get it to work as a daemon still. It took me a bit, but I have got it 
working using the @reboot crontab option. It?s badly inelegant, but it is 
working. The problem is that I don?t have an easy way to get it running in the 
background aside from rebooting the machine, something I want to do 
infrequently. And I have no way to force it to do a reload of options. Both of 
those are available with daemon mode. But in the meantime it?s working.

> On Jun 19, 2016, at 10:29, Dave Fournier <xdavefourn...@gmail.com> wrote:
> 
> You can change the user for a service with the --chuid option.  
> edit the motion file in /etc/init.d  (This may be obsolete for newer
> version of Linux.)
> 
> This runs the service as user dave
> 
> if start-stop-daemon --start --oknodo --exec $DAEMON -b --chuid dave ; then
>             log_end_msg 0



--
    Chip

-------------- next part --------------
An HTML attachment was scrubbed...

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

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine

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

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


End of Motion-user Digest, Vol 121, Issue 6
*******************************************

Reply via email to