Replies: 7 comments 2 replies
-
|
The following is an example of how to change configuration values. In this example, it is changing the framerate to be 12. The IP, port0 and camid would need to be changed to match your configuration. Once the command is submitted, the camera(s) specified will be restarted to implement the change.
Motion v5 is not released yet. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. With that I got it working - Kind a . I can issue the command as follows to change the text_left or text_right and get the proper results; But if I issue a command to change the framerate or ExposureTime, it seems to be ignored. Nothing happens If I use the any framerate or ExposureTime values in the .conf file, it works fine so the values are valid. Also, if I try to use any of the conversion specifiers like %T or {fps} in the command string, they are ignored. I'm not sure if that is by design or not. |
Beta Was this translation helpful? Give feedback.
-
|
Would a reload parameter be possible? For example I'm in the same situation, and being able to reload the configuration would be a real plus, rather than stopping/restarting Motion (can take up to 8sec). I will try the curl commands though, but I find it a bit archaic to edit a configuration like that, in my opinion. |
Beta Was this translation helpful? Give feedback.
-
|
Yea. the typo was just in the email, not the commands that I was doing.
The framerate command does work for me. Not sure what was going on with my
computer the other day that I could not get it to work. Probably trying
too many things at once.
I guess I was getting confused between the libcamera_params commands and
the Motion configuration commands that can be sent via curl. Is there a
list of the valid Motion commands someplace that can be sent via curl?
I'm not sure what you are saying in the final sentence about the specifiers
needing to be encoded in the url.
I guess what I'm looking for is what Ludo is asking for. Reloading the
conf file on the fly would be a great help.
…On Fri, Dec 12, 2025 at 2:49 AM Ludo ***@***.***> wrote:
Would a reload parameter be possible? For example
service motion reload # or systemctl reload motion
I'm in the same situation, and being able to reload the configuration
would be a real plus, rather than stopping/restarting Motion (can take up
to 8sec).
I will try the curl commands though, but I find it a bit archaic to edit a
configuration like that, in my opinion.
—
Reply to this email directly, view it on GitHub
<#1922 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADXUTFMHGVWXNO7T27MKTKT4BKMUFAVCNFSM6AAAAACON234H6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMRTHEZDANA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hmmm...I did test it and saw that the framerate change worked on my computers.... All the Motion parameters can be adjusted. One of them is Note the %3D in the command this is the url encoding of I'd note that there an option to reload via signals. But that is likely to be slow too since it will restart everything not just the affected camera. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks again for your help. I'm good now at running these commands from the command line prompt using curl. It works well. But.... I'm having a problem getting the curl command to work from python. If I enter the command; But when I try to execute ethe same command from python using subprocess.run(), it fails. Fails meaning nothing changes. a1 = ['curl', '-s', '-o', '-X', 'POST', 'http://192.168.1.26:8080/', '--data', '"camid=101"', '--data', '"command=config"', '--data', '"text_left=Nyyy"'] a2 = ['curl', '-s', '-o', '-X', 'POST', 'http://192.168.1.26:8080/', '--data', '"camid=101"', '--data', '"command=restart"'] I don't get any error messages back but I do get the following showing up in the mp.log file; Dec 14 13:16:38 [DBG][STR][wc00] parseurl: Sent url: / It looks like the command is being sent but for some reason it not proper. Any suggestions?? I've tried |
Beta Was this translation helpful? Give feedback.
-
|
I did finally stumble on a way to make this work using subprocess.run(). The following script will give me the results I want. It simply changes the text on the lower left of the video stream to "yyy"; import subprocess Thanks again for your help. But there is one more question. Is there a way to get return values from motionplus or libcamera of things like lux. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to re-ask a question I asked earlier this year on the motion plus discussion. I got a little busy back then and am now re visiting that problem I have. The cameras that I have (IMX327 and IMX415 sensors) do not have the exposure range to cover bright daylight and night time light changes if they are left to automatically set the exposure settings. As a result I set the frame rate to a low value and set the exposure via libcamera_params based on a calculated brightness value of the picture. Each time I change the exposure, I modify the .conf file, kill the motionplus process and restart it. When I asked the question before, Mr-Dave sent me to an example link. That link is no longer valid but that may not matter much since I really did not understand what it was telling me at the time. I have been trying to figure out the web control commands to do this but nothing that I am doing seems to work.
Is there a better way to control motionplus than what I am doing? I ask this because in all of my searching for how to do this properly I read someplace that using the web control does pretty much what I'm doing already, change the conf parameters and restart motionplus. So if there is a better way, I'd appreciate some help and examples of how to get this done.
Also, is Motion V5 ready to use? I see that it replaces motionplus but I don't see that it has be published yet.
Beta Was this translation helpful? Give feedback.
All reactions