silvanmelchior / RPi_Cam_Web_Interface

A web interface for the RPi Cam
MIT License
1.53k stars 493 forks source link

HTTP-request ? #701

Open wawanUnic opened 1 month ago

wawanUnic commented 1 month ago

Hello. Is there a way to take a photo via http-request? I want an external device to start the photo. This device is on the same network as my raspberry. What kind of http-request should I create? Thank you.

roberttidey commented 1 month ago

Yes. You can do just about everything by making http requests.

The key to doing this is sending in a basic request using cmd_pipe.php?cmd=xx

where xx is a command as detailed in the wiki section on commands

So as an example to capture an image one would use something like

http://camera_ip/html/cmd_pipe.php?cmd=im

where camera_ip is the ipaddress of the raspberry hosting the camera and assuming you have installed it into the default html folder