Comments (23)
Is there is anything I can help with, can somebody point where to look?
from motioneye.
Not yet.
from motioneye.
It does seem from motion source that one is able to send motion a SIGALRM to trigger capture...
from motioneye.
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.
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.
me too,
from motioneye.
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.
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.
@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.
@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.
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.
From web interface i get normal video
from motioneye.
Ah, seem the "Minimum Motion Frames" parameter under "Motion Detection" controls this. I set it to "1" and no more leading blackness!
from motioneye.
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.
+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.
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.
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.
from motioneye.
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.
@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.
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.
@schnabelnator See motioneye-project/motioneyeos#842 (comment)
from motioneye.
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)
- Slow preview and recording HOT 1
- Probleme fonctionnel motioneye
- Install on Raspbian 12? HOT 5
- Hide cameras from the "user" account?
- Apply
- Login > Remember me issue (0.43.1b1) HOT 3
- Telegram notification test: error setting certificate verify locations:\n CAfile: /etc/pki/tls/certs/ca-bundle.crt HOT 4
- New error when installing motioneye HOT 2
- Working Scedule not working -> 0.43.1b1 HOT 2
- RTSP and V4L2 cameras Grey screen issues HOT 4
- Pi 5 CSI camera failed to open HOT 1
- RTSP Authentication - Password requires url encoding upon entering in UI HOT 5
- Refresh browser means sign on again why? HOT 1
- Feature request - Dummy camera option for remote motioneye instance
- Access the video overview directly
- 0byte snapshot files - no new releases and bugfixes? HOT 2
- Web Interface not working- log says "curl: (7) Failed to connect to 127.0.0.1 port 8765: Connection Refused" HOT 7
- Raspberry 3b :Use composite video and network stream at the same time HOT 1
- Motioneye on DietPi HOT 13
- Lovelace cards stay grey, however the web-interface of motioneye shows the cams. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from motioneye.