Integration with motion api and status reflection on motioneye #1710

Open
opened 2026-02-28 00:52:09 -05:00 by deekerman · 2 comments
Owner

Originally created by @gerasimone on GitHub (Jul 14, 2020).

version : latest pip 0.42.1
installed as a package or compiled from sources: yum rpm for motion and pip for motioneye.
standalone or part of third party: standalone
video stream source: net cam rtsp
hardware: x64
operating system : Centos 7

I don't understand how to use the motion api rest for control cameras and how they reflect on motioneye status.
I have a camera that is turned on only when alarm is activated, so if I leave always enabled in motioneye got a lot of errors in system log, so i try to disable the cam with the motion api rest:

curl http://192.168.0.1:7999/3/action/quit
quit in progress ... bye 
Done 

and the errors stop flloging in the log, but when the camera restart, i want to restart the motion processing with:

curl http://192.168.0.1:7999/3/action/restart
Restart in progress ...
Done 

but motioneye never see the changes.
In the same way, if I stop the motion detection with api rest, motioneye never update the input toggle

Could someone explain how to use in the proper way?
thanks

Originally created by @gerasimone on GitHub (Jul 14, 2020). version : latest pip 0.42.1 installed as a package or compiled from sources: yum rpm for motion and pip for motioneye. standalone or part of third party: standalone video stream source: net cam rtsp hardware: x64 operating system : Centos 7 I don't understand how to use the motion api rest for control cameras and how they reflect on motioneye status. I have a camera that is turned on only when alarm is activated, so if I leave always enabled in motioneye got a lot of errors in system log, so i try to disable the cam with the motion api rest: ``` curl http://192.168.0.1:7999/3/action/quit quit in progress ... bye Done ``` and the errors stop flloging in the log, but when the camera restart, i want to restart the motion processing with: ``` curl http://192.168.0.1:7999/3/action/restart Restart in progress ... Done ``` but motioneye never see the changes. In the same way, if I stop the motion detection with api rest, motioneye never update the input toggle Could someone explain how to use in the proper way? thanks
Author
Owner

@fabiosoft commented on GitHub (Jul 23, 2020):

Same issue, but with motion status START/PAUSE. I think one way is to monitor /status endpoint

@fabiosoft commented on GitHub (Jul 23, 2020): Same issue, but with motion status START/PAUSE. I think one way is to monitor `/status` endpoint
Author
Owner

@Ricky0351 commented on GitHub (Mar 10, 2021):

hello, I have the same issue (deactivating camera with http request, or deactivating motion detection also with http request, but the status doesn't change in motioneye gui interface). Have you find a solution to solve the problem? thank you

@Ricky0351 commented on GitHub (Mar 10, 2021): hello, I have the same issue (deactivating camera with http request, or deactivating motion detection also with http request, but the status doesn't change in motioneye gui interface). Have you find a solution to solve the problem? thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/motioneye#1710
No description provided.