Send Motion-user mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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 software - on_picture_save event (Kinney Baughman)
   2. Re: Motion software - on_picture_save event (Slavica Tomovic)
   3. Re: Send just one file at the start of motion (alex dantart)


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

Message: 1
Date: Tue, 11 Aug 2015 11:18:49 -0400
From: Kinney Baughman <[email protected]>
Subject: Re: [Motion-user] Motion software - on_picture_save event
To: Motion discussion list <[email protected]>
Message-ID:
        <CAHbOPQX-sq2Vci7MJtMUK3C8-mHN0e=dj1bkjpy-zfsudce...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

If you're wanting to move the last video file to another file system, you
can do that by scripting those steps into the file called with
"on_event_end".

I'd be happy to share my "event_end" script with you if that's what you're
trying to do.

I move my video files to my web server and then send myself an email
telling me there's been an event at my house.

I supply a link in the mail that I click to see what's going on.

On Mon, Aug 10, 2015 at 5:35 PM, Slavica Tomovic <[email protected]>
wrote:

> Hi to all,
>
> I am using motion software on Raspberry Pi. I managed to install it
> without problems, and video stream and motion detection are working
> fine. Also, motion saves video file and image when motion is detected
> without any problems. Now I want to send these files to FTP server in
> my local network. For this I need to use on_picture_save option in the
> motion.config. However, it seems that on_picture_save event is never
> triggered, no matter which command I use as the argument. (Yes, I
> removed command character from the line)
>
> Do you have any idea why this is happening? I cannot see any problem in
> the log.
>
> Thanks in advance,
>
> Slavica
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>



-- 
Kinney Baughman,       Technology Support Specialist
Technology Support Services
Appalachian State University
257 University Hall
Boone, NC 28608                  Phone: 828-262-6523
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Tue, 11 Aug 2015 18:01:29 +0200
From: Slavica Tomovic <[email protected]>
Subject: Re: [Motion-user] Motion software - on_picture_save event
To: Motion discussion list <[email protected]>
Message-ID:
        <canky2stpj2hnqd3wpsjvjtvhzv+qt_w9fq0ttxzyhzxwded...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Thank you on your answers.

Zydrunas, there was some problem with permissions and I managed to solve it.

Kinney, your scrip would be very useful for me. My RPI now sends
videos to remote servers but does not delete them from RPI. I need a
script that would send motion video, check if transfer was successful
and then delete the video from rpi memory.

If you have something similar, you would save me a lot of time.

Thanks in advance!

Slavica

2015-08-11 17:18 GMT+02:00 Kinney Baughman <[email protected]>:
> If you're wanting to move the last video file to another file system, you
> can do that by scripting those steps into the file called with
> "on_event_end".
>
> I'd be happy to share my "event_end" script with you if that's what you're
> trying to do.
>
> I move my video files to my web server and then send myself an email telling
> me there's been an event at my house.
>
> I supply a link in the mail that I click to see what's going on.
>
> On Mon, Aug 10, 2015 at 5:35 PM, Slavica Tomovic <[email protected]>
> wrote:
>>
>> Hi to all,
>>
>> I am using motion software on Raspberry Pi. I managed to install it
>> without problems, and video stream and motion detection are working
>> fine. Also, motion saves video file and image when motion is detected
>> without any problems. Now I want to send these files to FTP server in
>> my local network. For this I need to use on_picture_save option in the
>> motion.config. However, it seems that on_picture_save event is never
>> triggered, no matter which command I use as the argument. (Yes, I
>> removed command character from the line)
>>
>> Do you have any idea why this is happening? I cannot see any problem in
>> the log.
>>
>> Thanks in advance,
>>
>> Slavica
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
>
>
> --
> Kinney Baughman,       Technology Support Specialist
> Technology Support Services
> Appalachian State University
> 257 University Hall
> Boone, NC 28608                  Phone: 828-262-6523
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>



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

Message: 3
Date: Tue, 11 Aug 2015 21:36:49 +0200
From: alex dantart <[email protected]>
Subject: Re: [Motion-user] Send just one file at the start of motion
To: Motion discussion list <[email protected]>
Message-ID:
        <cafy3swmgvtw82j1zmmqpzcs14+qanvj3yu-i4voaqm-u6e1...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi ?ydr?nas:

Yes, it worked that way ... I had to activate the snapshot each 5 seconds
to get it work, though
is it possible to do without this ?

2015-08-10 20:52 GMT+02:00 ?ydr?nas Urbonas <[email protected]>:

> Motion writes the picture file at the end of event. That's why you can't
> use picture in your script.
> To workaround - in your script you can trigger "snapshot" creation and
> send "lastsnap.jpg" file. Like this:
>
> curl -s http://localhost:8000/0/action/snapshot > /dev/null
>
> Don't forget to specify snapshot file name as "lastsnap" in your config
>
> On Mon, Aug 10, 2015 at 9:23 PM, alex dantart <[email protected]> wrote:
>
>> Using on_picture_save is the same "problem"  I'm receiving a photo 2
>> minutes ago dated ... I don't know why !
>>
>> I describe the thing happening:
>> (event_gap seconds has passed, so the system is "clean and ready" to
>> capture ...)
>>
>> - I see the time creation of file "last.jpg"  ... it's 20:07
>>
>> - I "enter" in the scene (to trigger motion) at 20:16:52
>>   and the log captures this
>>
>>
>> *[1] [NTC] [EVT] [Aug 10 20:16:52] event_new_video FPS 10[1] [NTC] [ALL]
>> [Aug 10 20:16:52] motion_detected: Motion detected - starting event 1*
>>
>> - I leave the scene 30 seconds later ... and nothing appears in the log
>>
>> - I wait outside the scene ...
>>
>> - And after "event_gap" seconds, that's to say, after 120 seconds I have
>> this in log
>>
>>
>>
>> *[1] [NTC] [ALL] [Aug 10 20:18:59] preview_save: different filename or
>> picture only![1] [NTC] [EVT] [Aug 10 20:18:59] event_newfile: File of type
>> 1 saved to: /home/motion/last.jpg[1] [NTC] [ALL] [Aug 10 20:18:59]
>> motion_loop: End of event 1*
>>
>> and the creation of file "last.jpg" is now 20:18 ... BUT !!! (here is the
>> problem) ... the date of that shot is 20:16:52 ... (because it's written in
>> the bottom right of the picture)
>>
>> So I'm receiving when the event ends, a photo of the beginning of the
>> event, and I need to receive as soon as the even starts...
>> I have tested with this configuration:
>>
>> *THIS COMMON:*
>> *event_gap 120*
>>
>>
>>
>>
>> *output_pictures firsttarget_dir /home/motion/picture_filename last*
>> *and try activating in test 1*
>> *on_event_start /home/me/send_picture /home/motion/last*
>>
>> *in test 2*
>> *on_event_end /home/me/send_picture /home/motion/last*
>>
>> *in test 3*
>> *on_picture_save /home/me/send_picture /home/motion/last*
>>
>> in all 3 tests I got the same problem
>>
>> Thank you
>>
>>
>>
>>
>>
>>
>> 2015-08-10 19:55 GMT+02:00 Mike Wilson <[email protected]>:
>>
>>> I use the config variable on_picture_save to generate thumbnails. Maybe
>>> this is what you want?
>>>
>>> On Mon, Aug 10, 2015 at 1:52 PM alex dantart <[email protected]> wrote:
>>>
>>>> What I need is:   to save one picture showing the start of the
>>>> motion and call my script  ... and sleep in the next 180 seconds
>>>>
>>>> What I have right now is:  the picture at the beginning of the motion
>>>> is saved and it's sent to script at the beginning of the next event starts
>>>>  (weird! but is running that way today)
>>>>
>>>>
>>>> 2015-08-10 19:21 GMT+02:00 ?ydr?nas Urbonas <[email protected]>:
>>>>
>>>>> If time gap between 4) and 5) was less than "180" - then it works as
>>>>> expected: the event has been triggered at 2) and has not finished yet, so
>>>>> you received only first snapshot. And this is exactly what you want. 
>>>>> Unless
>>>>> I misunderstood you
>>>>>
>>>>> On Mon, Aug 10, 2015 at 8:02 PM, alex dantart <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi:
>>>>>>
>>>>>> I've played with events on start, on end, and event_gap, but I can't
>>>>>> do what I need.
>>>>>>
>>>>>> I'd like to trigger a perl script I have that sends the first image
>>>>>> of a motion to my email.
>>>>>>
>>>>>> I have:
>>>>>>
>>>>>> event_gap 180
>>>>>> output_pictures first
>>>>>> target_dir /home/motion/
>>>>>> picture_filename last
>>>>>> on_event_start /home/me/send_picture /home/motion/last
>>>>>>
>>>>>> What I receive now is very weird:
>>>>>>
>>>>>> 1) Scene is still
>>>>>> 2) There's movement in the scene
>>>>>> 3) The movement ends in the scene
>>>>>> 4) Scene is still again
>>>>>> 5) There's again movement in the scene
>>>>>>
>>>>>> and I receive the image from the moment of point 2)
>>>>>> What I suppose to receive (what I'd like) is to receive the first
>>>>>> image when there's motion in the scene, and then not receiving nothing at
>>>>>> least during 180 seconds.
>>>>>>
>>>>>> Thank you !
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Alex Dantart
>>>>>>  http://dantart.es
>>>>>>  http://uptimiza.com
>>>>>>
>>>>>> If you want to print this email, please, click here before
>>>>>> <http://t.sidekickopen16.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs5vfRYYVQBvXW3LyyX-Vd_V9H56dJ9Pf5-JP-802?t=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Ddeforestation%26hl%3Den%26prmd%3Dimvnsb%26source%3Dlnms%26tbm%3Disch%26ei%3DkkDvTpCnJIjm-ga50NiJAg%26sa%3DX%26oi%3Dmode_link%26ct%3Dmode%26cd%3D2%26ved%3D0CBUQ_AUoAQ%26biw%3D1280%26bih%3D952%23hl%3Den%26tbm%3Disch%26sa%3D1%26q%3Ddeforestation%26pbx%3D1%26oq%3Ddeforestation%26aq%3Df%26aqi%3Dg10%26aql%3D%26gs_sm%3De%26gs_upl%3D74829l75066l0l75130l4l3l0l1l1l0l196l196l0.1l1l0%26bav%3Don.2%2Cor.r_gc.r_pw.r_cp.%2Ccf.osb%26fp%3D531ea00e3ebe35f9%26biw%3D1280%26bih%3D952&si=5944588326404096&pi=7ada9134-22ed-44e3-feaa-5ef1103b61d8>
>>>>>> do it
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Motion-user mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Motion-user mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Alex Dantart
>>>>  http://dantart.es
>>>>  http://uptimiza.com
>>>>
>>>> If you want to print this email, please, click here before
>>>> <http://t.sidekickopen16.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs5vfRYYVQBvXW3LyyX-Vd_V9H56dJ9Pf5-JP-802?t=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Ddeforestation%26hl%3Den%26prmd%3Dimvnsb%26source%3Dlnms%26tbm%3Disch%26ei%3DkkDvTpCnJIjm-ga50NiJAg%26sa%3DX%26oi%3Dmode_link%26ct%3Dmode%26cd%3D2%26ved%3D0CBUQ_AUoAQ%26biw%3D1280%26bih%3D952%23hl%3Den%26tbm%3Disch%26sa%3D1%26q%3Ddeforestation%26pbx%3D1%26oq%3Ddeforestation%26aq%3Df%26aqi%3Dg10%26aql%3D%26gs_sm%3De%26gs_upl%3D74829l75066l0l75130l4l3l0l1l1l0l196l196l0.1l1l0%26bav%3Don.2%2Cor.r_gc.r_pw.r_cp.%2Ccf.osb%26fp%3D531ea00e3ebe35f9%26biw%3D1280%26bih%3D952&si=5944588326404096&pi=8a77d1ef-7168-41a1-b11e-4588cf547c7f>
>>>> do it
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Motion-user mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Motion-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>
>>>
>>
>>
>> --
>>
>> Alex Dantart
>>  http://dantart.es
>>  http://uptimiza.com
>>
>> If you want to print this email, please, click here before
>> <http://t.sidekickopen16.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs5vfRYYVQBvXW3LyyX-Vd_V9H56dJ9Pf5-JP-802?t=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Ddeforestation%26hl%3Den%26prmd%3Dimvnsb%26source%3Dlnms%26tbm%3Disch%26ei%3DkkDvTpCnJIjm-ga50NiJAg%26sa%3DX%26oi%3Dmode_link%26ct%3Dmode%26cd%3D2%26ved%3D0CBUQ_AUoAQ%26biw%3D1280%26bih%3D952%23hl%3Den%26tbm%3Disch%26sa%3D1%26q%3Ddeforestation%26pbx%3D1%26oq%3Ddeforestation%26aq%3Df%26aqi%3Dg10%26aql%3D%26gs_sm%3De%26gs_upl%3D74829l75066l0l75130l4l3l0l1l1l0l196l196l0.1l1l0%26bav%3Don.2%2Cor.r_gc.r_pw.r_cp.%2Ccf.osb%26fp%3D531ea00e3ebe35f9%26biw%3D1280%26bih%3D952&si=5944588326404096&pi=69a86a51-7a6d-4146-c03a-006e328350bf>
>> do it
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>
>>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>


-- 

Alex Dantart
 http://dantart.es
 http://uptimiza.com

If you want to print this email, please, click here before
<http://t.sidekickopen16.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs5vfRYYVQBvXW3LyyX-Vd_V9H56dJ9Pf5-JP-802?t=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Ddeforestation%26hl%3Den%26prmd%3Dimvnsb%26source%3Dlnms%26tbm%3Disch%26ei%3DkkDvTpCnJIjm-ga50NiJAg%26sa%3DX%26oi%3Dmode_link%26ct%3Dmode%26cd%3D2%26ved%3D0CBUQ_AUoAQ%26biw%3D1280%26bih%3D952%23hl%3Den%26tbm%3Disch%26sa%3D1%26q%3Ddeforestation%26pbx%3D1%26oq%3Ddeforestation%26aq%3Df%26aqi%3Dg10%26aql%3D%26gs_sm%3De%26gs_upl%3D74829l75066l0l75130l4l3l0l1l1l0l196l196l0.1l1l0%26bav%3Don.2%2Cor.r_gc.r_pw.r_cp.%2Ccf.osb%26fp%3D531ea00e3ebe35f9%26biw%3D1280%26bih%3D952&si=5944588326404096&pi=d39dbc71-9cf0-446d-949c-9f959ff3c4c7>
do it
-------------- next part --------------
An HTML attachment was scrubbed...

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

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


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

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


End of Motion-user Digest, Vol 111, Issue 8
*******************************************

Reply via email to