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 (Adam Goryachev) ---------------------------------------------------------------------- Message: 1 Date: Sat, 29 Aug 2020 18:55:59 +1000 From: Adam Goryachev <mailingli...@websitemanagers.com.au> To: Motion discussion list <motion-user@lists.sourceforge.net>, Massively God <massively....@gmail.com> Subject: Re: [Motion-user] Activate a screen when motion is detected Message-ID: <4309cd9d-b25d-00cc-bbeb-2339def43...@websitemanagers.com.au> Content-Type: text/plain; charset="utf-8"; Format="flowed" 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> 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 -- 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 26 ********************************************