Git Product home page Git Product logo

Comments (23)

melashkov avatar melashkov commented on August 19, 2024 2

Is there is anything I can help with, can somebody point where to look?

from motioneye.

ccrisan avatar ccrisan commented on August 19, 2024

Not yet.

from motioneye.

mvanbreeden avatar mvanbreeden commented on August 19, 2024

It does seem from motion source that one is able to send motion a SIGALRM to trigger capture...

from motioneye.

Daniel-1276 avatar Daniel-1276 commented on August 19, 2024

Yes, and SIGUSR1 seems to start movie capture ... SIGTERM/SIGQUIT/SIGINT seem to close the video stream afterwards. I would really like to see PIR motion sensor feature within motioneye, as in many cases it is more reliable if you want to secure places against burglars, as the emit heat and can be detected more reliable maybe.

from motioneye.

gunther-o avatar gunther-o commented on August 19, 2024

I can't create a motion trigger with SIGALRM (tested on motioneyeos 20160801)
Is there an example or docu available ?
(I am highly interested in PIR motion trigger)

from motioneye.

melashkov avatar melashkov commented on August 19, 2024

me too,

from motioneye.

peterwtux avatar peterwtux commented on August 19, 2024

If you enable webcontrol in motion.conf, you can make HTTP requests to set emulate_motion=on to make motion behave as if it detected motion, and then set emulate_motion=off when your PIR sensor reports no movement. https://htmlpreview.github.io/?https://github.com/Motion-Project/motion/blob/master/motion_guide.html#emulate_motion

from motioneye.

wb666greene avatar wb666greene commented on August 19, 2024

I'm of the opinion you want the logical AND of video (image) based motion detection and PIR based motion detection. PIR picks up cats, squirrels, etc. along with fast moving clouds on a sunny day, along with temperature changes as the sun rises and sets, etc. Another issue with PIR is in our hot climate, the PIR can be essentially blind to people when the ambient temperature is about body temperature -- more common here than anyone really likes :)

The most effective use of either is in locations where you control the illumination of the field of view and there are no "rapid" temperature changes.

It would be a major feature if added to motion. I've looked at the source code, but without guidance I've no idea where the motion is detected in the "pre-motion" buffers and what triggers writing of the pre-motion images and stops recording of subsequent frames.

from motioneye.

peterwtux avatar peterwtux commented on August 19, 2024

@wb666greene, what if you use an external utility to monitor your PIR sensor(s) and change the "threshold" value via motion's webcontrol interface? Set the default threshold high to avoid image-based false alarms, and have your PIR monitoring utility decrease motion's threshold when motion is detected. If you really want "and" logic, just set the default threshold impossibly high.

from motioneye.

wb666greene avatar wb666greene commented on August 19, 2024

@peterwtux, I think you are over estimating the speed at which the motion-daemon reacts to changes over the web interface, also changes to thresholds require overwriting the pre-motion buffers with new images to take effect.

I've used motion and zoneminder for a long time, motion has adapted to higher resolution much better than zoneminder has, and I have been happy with cameras placed where I mostly control the lighting in the field of view. But I'm looking to cover the perimeter for "early warning" alerts and so far all image/video and PIR motion detection have had an unacceptable false alarm rate. YMMV.

The ultimate solution I'm looking at is "deep learning" image analysis using new tools like tensorflow, but the learning curve is substantial! But motioneyes will give me a good source of images both true and false for analysis.

from motioneye.

xtalker avatar xtalker commented on August 19, 2024

I got this command to work:

curl http://my.motioneye.com:7999/2/config/set?emulate_motion=on (or off)

But the first 10 secs of every video is just blackness, after that normal video? Tried on the native RasPi camera and an IP camera as well with same results.

Anyone else seen this and found a setting or fix?

from motioneye.

v1k-t0r avatar v1k-t0r commented on August 19, 2024

From web interface i get normal video

from motioneye.

xtalker avatar xtalker commented on August 19, 2024

Ah, seem the "Minimum Motion Frames" parameter under "Motion Detection" controls this. I set it to "1" and no more leading blackness!

from motioneye.

flabombarda avatar flabombarda commented on August 19, 2024

Guys,

I see this is an old request, and very useful, and is on the roadmap since 2015, is there any chance we have it in the upcoming releases ?

Many thanks

from motioneye.

dezral avatar dezral commented on August 19, 2024

+1

just testet i can't access picam if motion/eye is running so i can't use a python script with the pir sensor... so some kinder api that triggers motion recording in motioneye or access to gpio

from motioneye.

FAASOFT avatar FAASOFT commented on August 19, 2024

to xtalker -
I'm a beginner: could you please explain me how/where send the command? May be by a bash script under the PIR action? Can this be done on MotioneyeOS also? Any example would be appreciated

from motioneye.

xtalker avatar xtalker commented on August 19, 2024

Hi FAASOFT, your motion eye web server should accept this command (sent from a bash script with curl or just from a browser). Don't forget to change my.motioneye.com to whatever your motioneye server name is.

http://my.motioneye.com:7999/2/config/set?emulate_motion=on (or off)

from motioneye.

FAASOFT avatar FAASOFT commented on August 19, 2024

from motioneye.

peterwtux avatar peterwtux commented on August 19, 2024

Check your motion configuration. The default is for the control web service to be bound to localhost (webcontrol_localhost). The control web service is ripe for Cross Site Request Forgery attacks, so it's really a good idea to limit it to localhost, and only run motion on a single-user system. You might be able to use iptables owner rules to better secure the control web service if you have untrusted users or processes running on the same host as motion, but I haven't tried that.

from motioneye.

jasaw avatar jasaw commented on August 19, 2024

@FAASOFT Make sure you have webcontrol_parms 2 in your motion.conf file.
Also make sure you have the correct camera index. The number after port 7999 is the camera index.
curl "http://localhost:7999/1/config/set?emulate_motion=1"

from motioneye.

schnabelnator avatar schnabelnator commented on August 19, 2024

Hi, i want to do the same thing, trigger motion by an external sensor connected to the gpio. Can anyone point me into the rigth direction on how to create a script that watches the gpio state and calls the curl command if the state changes? I don't know my way around motion os yet...

Where would i save my script and how would it start?

Thank you for your help!

from motioneye.

jasaw avatar jasaw commented on August 19, 2024

@schnabelnator See motioneye-project/motioneyeos#842 (comment)

from motioneye.

AStripe avatar AStripe commented on August 19, 2024

I have a PIR sensor connected to my Pi.

Is it possible to force motion trigger outside motioneye?

@lwrbakro did you find a way to use an external motion sensor? I'd like to make a camera using the ModMyPi case that has a PID Motion sensor

from motioneye.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.