feat: Implement server-managed camera settings with new API endpoints, client-side application, and updated documentation.

This commit is contained in:
sebseb7
2025-12-18 14:55:23 +01:00
parent f7663c04c6
commit 0a93ee6713
4 changed files with 282 additions and 0 deletions

View File

@@ -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: