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. Activate a screen when motion is detected (Massively God)
   2. Re: Activate a screen when motion is detected (chuck elliot)
   3. Re: Activate a screen when motion is detected (MrDave)


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

Message: 1
Date: Thu, 27 Aug 2020 21:29:03 +0200
From: Massively God <massively....@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] Activate a screen when motion is detected
Message-ID:
        <cafroy4u-bpp+f2e2umfetlmlmm0whgsugpupgnldpnhtggw...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hello community.

Who I am? An idiot trying to do things too complicated when I am sure
there is an easier way. I do have linux/raspberry/bash/python
experience but I am no expert on any of them.

What do I have? Raspberry Pi Zero WH, Raspbian 10 Buster, Raspberry
Camera 2.1, Raspberry HDMI Touchscreen (USB connected, not GPIO), Of
course SD and all appropriated cables.

What do I want to do? I want to activate the screen when motion
detects movement on the camera. I am not interested in recording, or
webstream.

How do I want to do it? First, I wanted to activate the camera via
"python3 camera.startpreview()" But obviously I can't import in python
the camera instructions. So I created a very simple script;

import picamera
import time
camera=picamera.PiCamera()
camera.start_preview()
time.sleep (60)

And that is when I learned about the ENOSP error. Basically two
processes can not access the camera at the same time (motion and
python).
And this is where I am stucked. Unfortunately I can?t find anyone on
the internet who did and documented this.

SO now I have 2 options;

First, from motion.conf close the camera and then call the python
script that turns on the camera in the screen. CONS; The screen
backlight would be on all the time (though I am sure this has an easy
workaround)

Second, have motion send a constant stream from the camera to the
screen and activate/deactivate the backlight with "vcgencmd
display_power 1/0" on event start/stop.

Third, make a very complicated setup where motion starts streaming the
video in case of an event and a second process always listening and
showing that stream if available. CONS; It's way over my capabilities.

Thank you very much for your support



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

Message: 2
Date: Thu, 27 Aug 2020 21:38:26 +0100
From: chuck elliot <c.ell...@pobox.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Activate a screen when motion is detected
Message-ID: <608ae968-6b4b-0f77-717b-6b778b66c...@pobox.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Could you not record video as usual but then just

stream or play the video file when it arrives maybe

using inotifywait -m or similar to trigger this?

The delete the file once played if you like.

CE.


On 27/08/2020 8:29 pm, Massively God wrote:
> Hello community.
>
> Who I am? An idiot trying to do things too complicated when I am sure
> there is an easier way. I do have linux/raspberry/bash/python
> experience but I am no expert on any of them.
>
> What do I have? Raspberry Pi Zero WH, Raspbian 10 Buster, Raspberry
> Camera 2.1, Raspberry HDMI Touchscreen (USB connected, not GPIO), Of
> course SD and all appropriated cables.
>
> What do I want to do? I want to activate the screen when motion
> detects movement on the camera. I am not interested in recording, or
> webstream.
>
> How do I want to do it? First, I wanted to activate the camera via
> "python3 camera.startpreview()" But obviously I can't import in python
> the camera instructions. So I created a very simple script;
>
> import picamera
> import time
> camera=picamera.PiCamera()
> camera.start_preview()
> time.sleep (60)
>
> And that is when I learned about the ENOSP error. Basically two
> processes can not access the camera at the same time (motion and
> python).
> And this is where I am stucked. Unfortunately I can?t find anyone on
> the internet who did and documented this.
>
> SO now I have 2 options;
>
> First, from motion.conf close the camera and then call the python
> script that turns on the camera in the screen. CONS; The screen
> backlight would be on all the time (though I am sure this has an easy
> workaround)
>
> Second, have motion send a constant stream from the camera to the
> screen and activate/deactivate the backlight with "vcgencmd
> display_power 1/0" on event start/stop.
>
> Third, make a very complicated setup where motion starts streaming the
> video in case of an event and a second process always listening and
> showing that stream if available. CONS; It's way over my capabilities.
>
> Thank you very much for your support
>
>
> _______________________________________________
> 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



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

Message: 3
Date: Thu, 27 Aug 2020 18:37:24 -0600
From: MrDave <motionmrd...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Activate a screen when motion is detected
Message-ID: <61fbee20-b17d-5b24-9022-c38cd28f9...@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed

I think the answer you are looking for is the video_pipe option. The 
following documentation provides additional details.

https://motion-project.github.io/motion_config.html#OptDetail_Pipe


On 8/27/2020 2:38 PM, chuck elliot wrote:
> Could you not record video as usual but then just
>
> stream or play the video file when it arrives maybe
>
> using inotifywait -m or similar to trigger this?
>
> The delete the file once played if you like.
>
> CE.
>
>
> On 27/08/2020 8:29 pm, Massively God wrote:
>> Hello community.
>>
>> Who I am? An idiot trying to do things too complicated when I am sure
>> there is an easier way. I do have linux/raspberry/bash/python
>> experience but I am no expert on any of them.
>>
>> What do I have? Raspberry Pi Zero WH, Raspbian 10 Buster, Raspberry
>> Camera 2.1, Raspberry HDMI Touchscreen (USB connected, not GPIO), Of
>> course SD and all appropriated cables.
>>
>> What do I want to do? I want to activate the screen when motion
>> detects movement on the camera. I am not interested in recording, or
>> webstream.
>>
>> How do I want to do it? First, I wanted to activate the camera via
>> "python3 camera.startpreview()" But obviously I can't import in python
>> the camera instructions. So I created a very simple script;
>>
>> import picamera
>> import time
>> camera=picamera.PiCamera()
>> camera.start_preview()
>> time.sleep (60)
>>
>> And that is when I learned about the ENOSP error. Basically two
>> processes can not access the camera at the same time (motion and
>> python).
>> And this is where I am stucked. Unfortunately I can?t find anyone on
>> the internet who did and documented this.
>>
>> SO now I have 2 options;
>>
>> First, from motion.conf close the camera and then call the python
>> script that turns on the camera in the screen. CONS; The screen
>> backlight would be on all the time (though I am sure this has an easy
>> workaround)
>>
>> Second, have motion send a constant stream from the camera to the
>> screen and activate/deactivate the backlight with "vcgencmd
>> display_power 1/0" on event start/stop.
>>
>> Third, make a very complicated setup where motion starts streaming the
>> video in case of an event and a second process always listening and
>> showing that stream if available. CONS; It's way over my capabilities.
>>
>> Thank you very much for your support
>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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



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



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

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 170, Issue 23
********************************************

Reply via email to