motioneye icon indicating copy to clipboard operation
motioneye copied to clipboard

[Feature] Option to manually start and stop recording?

Open TimAEllis opened this issue 9 years ago • 26 comments

The title says it all but is there any feature that allows the user to essentially press a record button on one or all webcams at any given time.

Say, for example, I don't have motion detected recording enabled but whilst viewing, I want to manually record a block of time; be it 5 minutes or 2 hours. Is there any support for this?

I would assume it would just be a pop-up menu item like viewing photos and videos where I can simply press record to start recording and then stop to stop it.

TimAEllis avatar Jun 16 '16 04:06 TimAEllis

Actually just noticed something very similar on the road map. Any idea on when you think the feature will be implemented?

TimAEllis avatar Jun 16 '16 06:06 TimAEllis

There are plans in this direction but no work has been done yet.

ccrisan avatar Jun 16 '16 07:06 ccrisan

I'm interested in this feature too... would appreciate if there were buttons to manually: A) take a picture, and B) start/stop recording. Thanks

yanoschik avatar Jul 21 '16 13:07 yanoschik

Any news on this? It's a bit of a bother (a large bit) having to change a setting and apply in order to manually record something and stop it again. Thanks

dintid avatar Jul 14 '17 09:07 dintid

I'm interested too, this post is rather old , Any news on this?

Shaka-60hp avatar Dec 01 '17 15:12 Shaka-60hp

Following

TopperBG avatar Dec 04 '17 06:12 TopperBG

still not possible? :/

WaGi-Coding avatar Sep 26 '18 19:09 WaGi-Coding

I am also interested in this feature. Perhaps a command line script as a short term work around until this can be put in the web interface?

GrahamDB avatar Dec 05 '18 13:12 GrahamDB

+1 would like to see this feature!

DaafSamson avatar Feb 14 '19 20:02 DaafSamson

+1 me too. I need to send start / stop from with http request! Perfect for home automation

crahlfs avatar Feb 18 '19 13:02 crahlfs

+1 Any update on this. Is this project still ongoing as of Q2 2019?

EJNash1 avatar Apr 20 '19 23:04 EJNash1

As a workaround for now, you could start/stop recording by enabling motion detection, then sending a HTTP request to trigger motion detection. http://localhost:7999/1/config/set?emulate_motion=1 to force trigger motion detection. http://localhost:7999/1/config/set?emulate_motion=0 to disable forced motion detection.

jasaw avatar Apr 23 '19 01:04 jasaw

The http request with eventstart and eventend should also work.

ualex73 avatar Apr 23 '19 05:04 ualex73

As a workaround for now, you could start/stop recording by enabling motion detection, then sending a HTTP request to trigger motion detection. http://localhost:7999/1/config/set?emulate_motion=1 to force trigger motion detection. http://localhost:7999/1/config/set?emulate_motion=0 to disable forced motion detection.

in which version this works...Please answer.

karthickshiva18 avatar Aug 29 '19 07:08 karthickshiva18

@karthickshiva18 Emulate motion has been in motion for a long time. Any version should work.

jasaw avatar Aug 29 '19 14:08 jasaw

@jasaw is there any more information how to send those commands via http request? I got a 404 error when sending both get and post requests. Screenshots attached from my terminal and motioneye.log

Screen Shot 2020-07-04 at 10 09 36 AM

Screen Shot 2020-07-04 at 10 10 09 AM

colinlgray avatar Jul 04 '20 17:07 colinlgray

@colinlgray is motion running under port 80? You need to specify the port http://host:port/1/config/set?emulate_motion=1

port 7999 is the default "command/control" port for motion. Your examples are going against port 80 so you must have some other webserver (or motioneye set) on that port.

here is my sample of my script for on and for off

$ cat light_on_1
#!/bin/sh
/usr/bin/curl "http://localhost:7999/1/config/set?emulate_motion=1"
$ cat light_off_1
#!/bin/sh
/usr/bin/curl "http://localhost:7999/1/config/set?emulate_motion=0"

Let me know if that resolves your issue.

BTW: the "light_on_#" and "light_off_#" is for setting control buttons on the cameras on the motioneye interface, if you didn't already know that. You put them in your motioneye config directory, default of /etc/motioneye

One other note, you need to be on the local system that your motioneye is running on for this to work, so its best to use localhost in this instance. If you want to allow access from another system, you will need to set the permissions in the config for motion to accept non localhost (127.0.0.1) connections for command/control. I don't have that off the top of my head, but its in the configuration.

davebdb avatar Jul 05 '20 06:07 davebdb

Thanks for the clarification there. This was my bad, I am running motion via motioneyeos. It sets up a web interface on your local network and I was trying to send requests to that interface. I need to see how it exposes this interface

colinlgray avatar Jul 08 '20 04:07 colinlgray

I need to record sleep, e.g. 8 hour sessions. A start/stop button would be very useful so that unskilled users could operate the soft ware. Even a toggle switch connected with one of the GPIO pins would be desirable. Currently, it looks like I will write a script to control rasspivid.

In any case the ease of installing and setting up MotionEyeOS is a welcome relief from software like BlueIris.

Many thanks,

lcleve

lcleve avatar Jul 29 '20 16:07 lcleve

@lcleve If you use a toggle switch, you should be able to use this script by just changing the GPIO pin: https://github.com/ccrisan/motioneyeos/issues/842#issuecomment-414375686

jasaw avatar Jul 29 '20 17:07 jasaw

Thanks. I'll look into it.

lcleve

lcleve avatar Jul 29 '20 19:07 lcleve

+1 would like to see this feature!

rateur42 avatar Jun 26 '21 15:06 rateur42

+1

WattageGuy avatar May 04 '22 20:05 WattageGuy

A reasonable feature indeed, I would find it helpful for testing as well.

MichaIng avatar May 05 '22 05:05 MichaIng

+1

filip-strelec avatar Dec 25 '23 19:12 filip-strelec

+1 as it's a fairly easy feature to add to the ui

KodeMunkie avatar Feb 01 '24 20:02 KodeMunkie