2

I have Motion running as Daemon to use a webcam in my local network. This is not used for motion detecting, just to have a livestream.

I want to take a photo when a button is pressed on the webserver.

So I am looking for a command to save the current frame in Motion to an image (e.g. jpg).

Or would using Motion be rather resource consuming when only using it to set up a livestream? Any suggestions for better alternatives?

4

Found the solution myself.

For future reference, here is the solution:

The page http://RPI.IP:CONFIGPORT/0/action/snapshot already executes the necessary code to make a snapshot. Calling this page (e.g. cURL) then enables you to take a snapshot when desired.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.