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: Activate a screen when motion is detected (Massively God) ---------------------------------------------------------------------- Message: 1 Date: Sat, 29 Aug 2020 20:08:32 +0200 From: Massively God <massively....@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Activate a screen when motion is detected Message-ID: <CAFrOY4XZNS2HL7ER6=z-2tfm_wzhzqhunc3bn2kyjqdird_...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hello guys, Many many many thanks to all of you for your help. I am pretty sure that the video_pipe option is the way to go. Theoretically it solves the problem. To use this option I need the v4l2loopback-dkms package, and I am having problems installing it because it is a kernel module and my headers don't match my kernel blablabla. Unfortunately I can't continue with this project for the next days, but when I am back I will try to get it working! Thanks a lot to all of you! You will hear from me soon On Sat, Aug 29, 2020 at 10:56 AM Adam Goryachev < mailingli...@websitemanagers.com.au> wrote: > Why not use your option 2, when motion notifies you of motion you can do > the following steps: > 1) open your browser or vlc or similar to stream from motions www interface > 2) enable the backlight on the screen > > When motion notifies you of the end of the event, kill the viewer and > backlight. Possibly enable some screensaver that can turn off the video > output which should automatically tell the LCD to turn off.... > Regards > Adam > > On 28 August 2020 5:29:03 am AEST, Massively God <massively....@gmail.com> > <massively....@gmail.com> 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 >> 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 >> >> > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. > -------------- 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 170, Issue 27 ********************************************