CameraControllerApi
The CameraControlerApi is an attempt to control a DSLR via REST functionality.
Install / Use
/learn @scheckmedia/CameraControllerApiREADME
CameraControllerApi
The CameraControlerApi is an attempt to control a DSLR via REST functionality. At the moment is it possible to change the camera settings (ISO, aperture, time), take pictures and stream the live view of the camera (only tested with a Nikon D90).
###Web-Interface###
http://device_ip:port/webif/
###Demonstration###
How to use
You will get all valid data for a command from the "list" action.
###Settings###
List the configuration with validate values
http://device_ip:port/settings?action=list
ISO
http://device_ip:port/settings?action=iso&value=200
Aperture
http://device_ip:port/settings?action=aperture&value=f/22
Shutter Speed
http://device_ip:port/settings?action=speed&value=1/1000
Whitebalance
http://device_ip:port/settings?action=whitebalance&value=Cloudy
###Capture###
take a picture
http://device_ip:port/capture?action=shot
autofocus
http://device_ip:port/capture?action=autofocus
###File system###
list of the available images on camera
http://device_ip:port/fs?action=list
get an image
http://device_ip:port/fs?action=get&value=filename.jpg&path=/path/to/file
Each method will response with a JSON file. If you want a XML response you have to put the command "&type=xml" on the end of the upper commands
####Live View live view will be generated as mjpeg-stream. you can easy implement this stream in html inside an image tag e.g:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Live View</title>
</head>
<body>
<img src="http://localhost:8888/liveview" />
</body>
</html>
##Dependencies##
apt-get install libboost-dev libboost-system-dev libmicrohttpd-dev libgphoto2-dev libexiv2-dev
- libgphoto
- libboost
- libboost-system
- libmicrohttpd
- libexiv2
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

