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 External Trigger (Colin Law)
   2. Flicker (Harlan Daneker)
   3. Re: Motion External Trigger (Chip Griffin)
   4. Re: Motion External Trigger (Mike Wilson)
   5. Re: Flicker (Mike Wilson)


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

Message: 1
Date: Sun, 5 Jun 2016 07:53:34 +0100
From: Colin Law <clan...@gmail.com>
Subject: Re: [Motion-user] Motion External Trigger
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <CAL=0glvd5rjr91dkvnhdfbcxfw98e2ktdtbeyqfq+ap16wp...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On 5 June 2016 at 01:31, Chip Griffin <n1...@mac.com> wrote:
> On Jun 4, 2016, at 16:10, Colin Law <clan...@gmail.com> wrote:
>>
>> First, if you have not already done so, put some logging in your script (add 
>> a message to a log file for example) to check that the script is running.
>>
>> Next, I see from the description of xscreensaver-command that it may output 
>> to stdout and stderr, so redirect those to a file in your script to see if 
>> it says anything useful.
>
> I put a simple log command in the script. It works when I manually execute 
> the shell script. I directed the output of stdout and stderr to a log file. 
> It works when I manually execute the shell script.
>
> Neither the modification dates nor the log file contents of either log file 
> is changed when I create motion in front of the camera. I know Motion 
> detected the motion because it?s log file shows it sensed the motion.
>
> So I?m feeling that the script isn?t getting executed. But there?s nothing 
> wrong with the script itself as it executes fine from the shell.
>
> So that seems to be additional data, however, I feel no closer to a 
> successful outcome.

If there is to be a successful outcome then you are nearer to it than
you were before :)

I presume that you have put the full path to the log file in your
script.  Can you paste the script here please.

Also copy/paste the entry from the conf file that you have put in to
run the script.
Are you confident that the conf file you have put that in is the one
being used by motion?
Also which version of motion are you using?

Colin



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

Message: 2
Date: Sun, 5 Jun 2016 09:03:52 -0400
From: Harlan Daneker <hdane...@gmail.com>
Subject: [Motion-user] Flicker
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <CAC1WkiSeiqtm-DGdkEtcBUu89gida0-zZd7qqsP36P=+r-n...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Any ideas why I have all this flicker? This is an overcast day,


http://www.htd.dns2go.com/084200.avi


Thanks,
Harlan
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 3
Date: Sun, 05 Jun 2016 14:10:52 -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: <54d04847-0c59-47a1-9b2f-bf1e32326...@mac.com>
Content-Type: text/plain; charset=utf-8

On Jun 5, 2016, at 02:53, Colin Law <clan...@gmail.com> wrote:
> 
> If there is to be a successful outcome then you are nearer to it than you 
> were before :)

I suppose that has to be true. But I don?t feel like we?re making progress.

> I presume that you have put the full path to the log file in your script.  
> Can you paste the script here please.

I thought I did that once but here it is again (modified as suggested 
previously):
> #!/bin/sh
> 
> /usr/bin/xscreensaver-command -display :0.0 -deactivate > 
> /tmp/xscreensaver-command.log 2>&1
> 
> echo "Run\n" > /tmp/xsd.log

I also tried Python yesterday, here?s that script:
> import os
> 
> os.system("xscreensaver-command -display :0.0 -deactivate > 
> /tmp/xscreensaver-command.log 2>&1?)

That still didn?t work. The script works when run from the shell but does 
nothing when put in the conf file. It was called with this command:
> on_motion_detected python /usr/share/motion/xsd.py

I was beginning to wonder if the problem was how far down in the conf file the 
external commands were, like maybe something before them in the conf file was 
interfering with them. So I put it near the top (only after the daemon 
command), but still didn?t work.

> Also copy/paste the entry from the conf file that you have put in to run the 
> script.

I?ve tried a ton of things. Here are some (obviously I?ve uncommented them to 
try them):
> # Command to be executed when an event starts. (default: none)
> # An event starts at first motion detected after a period of no motion 
> defined by event_gap
> ; on_event_start "/home/pi/bin/xsd.sh"
> ; on_event_start "sudo xscreensaver-command -display :0.0 -deactivate"
> 
> # Command to be executed when an event ends after a period of no motion
> # (default: none). The period of no motion is defined by option event_gap.
> ; on_event_end value
> 
> # Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
> # To give the filename as an argument to a command append it with %f
> ; on_picture_save value
> 
> # Command to be executed when a motion frame is detected (default: none)
> ; on_motion_detected /usr/share/motion/xsd.sh
> ; on_motion_detected python /usr/share/motion/xsd.py
> ; on_motion_detected sudo /usr/share/motion/xsd.sh
> ; on_motion_detected /usr/bin/xscreensaver-command -display :0.0 -deactivate

> Are you confident that the conf file you have put that in is the one being 
> used by motion?

Yes, 100% sure. I can modify it and get it to take a picture. I don?t want it 
to do that, so I?ve turned it back off. But that was part of my early 
troubleshooting.

> Also which version of motion are you using?

motion Version 3.2.12+git20140228, Copyright 2000-2005 Jeroen Vreeken/Folkert 
van Heusden/Kenneth Lavrsen


--
    Chip




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

Message: 4
Date: Mon, 06 Jun 2016 02:08:33 +0000
From: Mike Wilson <knobby2...@gmail.com>
Subject: Re: [Motion-user] Motion External Trigger
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <CAAVeUCqtKC-fQThuZ0gLcDjFrQJNxU=_gqvsd4t8m0usba+...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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.
On Sun, Jun 5, 2016 at 2:12 PM Chip Griffin <n1...@mac.com> wrote:

> On Jun 5, 2016, at 02:53, Colin Law <clan...@gmail.com> wrote:
> >
> > If there is to be a successful outcome then you are nearer to it than
> you were before :)
>
> I suppose that has to be true. But I don?t feel like we?re making progress.
>
> > I presume that you have put the full path to the log file in your
> script.  Can you paste the script here please.
>
> I thought I did that once but here it is again (modified as suggested
> previously):
> > #!/bin/sh
> >
> > /usr/bin/xscreensaver-command -display :0.0 -deactivate >
> /tmp/xscreensaver-command.log 2>&1
> >
> > echo "Run\n" > /tmp/xsd.log
>
> I also tried Python yesterday, here?s that script:
> > import os
> >
> > os.system("xscreensaver-command -display :0.0 -deactivate >
> /tmp/xscreensaver-command.log 2>&1?)
>
> That still didn?t work. The script works when run from the shell but does
> nothing when put in the conf file. It was called with this command:
> > on_motion_detected python /usr/share/motion/xsd.py
>
> I was beginning to wonder if the problem was how far down in the conf file
> the external commands were, like maybe something before them in the conf
> file was interfering with them. So I put it near the top (only after the
> daemon command), but still didn?t work.
>
> > Also copy/paste the entry from the conf file that you have put in to run
> the script.
>
> I?ve tried a ton of things. Here are some (obviously I?ve uncommented them
> to try them):
> > # Command to be executed when an event starts. (default: none)
> > # An event starts at first motion detected after a period of no motion
> defined by event_gap
> > ; on_event_start "/home/pi/bin/xsd.sh"
> > ; on_event_start "sudo xscreensaver-command -display :0.0 -deactivate"
> >
> > # Command to be executed when an event ends after a period of no motion
> > # (default: none). The period of no motion is defined by option
> event_gap.
> > ; on_event_end value
> >
> > # Command to be executed when a picture (.ppm|.jpg) is saved (default:
> none)
> > # To give the filename as an argument to a command append it with %f
> > ; on_picture_save value
> >
> > # Command to be executed when a motion frame is detected (default: none)
> > ; on_motion_detected /usr/share/motion/xsd.sh
> > ; on_motion_detected python /usr/share/motion/xsd.py
> > ; on_motion_detected sudo /usr/share/motion/xsd.sh
> > ; on_motion_detected /usr/bin/xscreensaver-command -display :0.0
> -deactivate
>
> > Are you confident that the conf file you have put that in is the one
> being used by motion?
>
> Yes, 100% sure. I can modify it and get it to take a picture. I don?t want
> it to do that, so I?ve turned it back off. But that was part of my early
> troubleshooting.
>
> > Also which version of motion are you using?
>
> motion Version 3.2.12+git20140228, Copyright 2000-2005 Jeroen
> Vreeken/Folkert van Heusden/Kenneth Lavrsen
>
>
> --
>     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. 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: 5
Date: Mon, 06 Jun 2016 03:17:03 +0000
From: Mike Wilson <knobby2...@gmail.com>
Subject: Re: [Motion-user] Flicker
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <caaveucozydoxjfj5th7m76fb+5ka7m-uqffaekqmea+bu_t...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

The crawling like in the grass looks like either a compression artifact or
a scaling issue. Are you saving your video in either native resolution or a
power of 2 divisor? As for the ladder flashing I'm really not sure what to
make of that one. Do you see that if you connect directly to your camera
with something like vlc? Do you see it in the live preview?

On Sun, Jun 5, 2016 at 9:05 AM Harlan Daneker <hdane...@gmail.com> wrote:

> Any ideas why I have all this flicker? This is an overcast day,
>
>
> http://www.htd.dns2go.com/084200.avi
>
>
> Thanks,
> Harlan
>
> ------------------------------------------------------------------------------
> 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...

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

------------------------------------------------------------------------------
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


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

Reply via email to