feat: Implement server-managed camera settings with new API endpoints, client-side application, and updated documentation.
This commit is contained in:
45
README.md
45
README.md
@@ -156,6 +156,51 @@ curl -H "X-API-Key: your-secret-key" http://localhost:3080/stats/front-door
|
||||
}
|
||||
```
|
||||
|
||||
### Get Camera Settings
|
||||
|
||||
```bash
|
||||
GET /settings/:cameraId
|
||||
```
|
||||
|
||||
Get v4l2 camera settings (focus, exposure, etc.) for a camera.
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl -H "X-API-Key: your-secret-key" http://localhost:3080/settings/front-door
|
||||
```
|
||||
|
||||
**Response:**
|
||||
```json
|
||||
{
|
||||
"cameraId": "front-door",
|
||||
"settings": {
|
||||
"focus_automatic_continuous": 0,
|
||||
"focus_absolute": 30,
|
||||
"exposure_auto": 1,
|
||||
"exposure_absolute": 200,
|
||||
"brightness": 0,
|
||||
"contrast": 32
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Update Camera Settings
|
||||
|
||||
```bash
|
||||
PUT /settings/:cameraId
|
||||
```
|
||||
|
||||
Update camera settings. Settings are applied by the capture client via v4l2-ctl.
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl -X PUT \
|
||||
-H "X-API-Key: your-secret-key" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"focus_absolute": 40, "exposure_absolute": 250}' \
|
||||
http://localhost:3080/settings/front-door
|
||||
```
|
||||
|
||||
## Storage Structure
|
||||
|
||||
Images are stored in a hierarchical directory structure optimized for time-lapse processing:
|
||||
|
||||
Reference in New Issue
Block a user