Tidy README, add snapshot section
This commit is contained in:
1 parent
15f62b6d81
commit
529fc9b4cc
1 file changed
+11
-11
@@ -30,13 +30,19 @@ Danach erreichbar unter:
|
||||
| `http://<host>:8080/` | HTML-Seite mit Live-Stream |
|
||||
| `http://<host>:8080/stream` | MJPEG-Stream |
|
||||
| `http://<host>:8080/stream.mjpg` | MJPEG-Stream (vehicle-counter kompatibel) |
|
||||
| `http://<host>:8080/snapshot.jpg` | Einzelbild (aktueller Frame als JPEG) |
|
||||
| `http://<host>:8080/snapshot.jpg` | Einzelbild (siehe unten) |
|
||||
|
||||
Beispiel: `curl -o foto.jpg http://<host>:8080/snapshot.jpg`
|
||||
## Snapshot
|
||||
|
||||
`/snapshot.jpg` liefert den aktuellen Frame als einzelnes JPEG, ohne zusätzliche Kameralast. Kurz nach dem Start, solange noch kein Frame da ist, antwortet der Endpoint mit HTTP 503.
|
||||
|
||||
```bash
|
||||
curl -o pictures/foto.jpg http://<host>:8080/snapshot.jpg
|
||||
```
|
||||
|
||||
## Autostart mit systemd
|
||||
|
||||
Die Unit nutzt den Interpreter aus dem venv (`venv/bin/python`), das Projekt muss also vorher wie oben installiert sein. In `raspi-cam.service` ggf. `User` und die Pfade anpassen. Der User muss Mitglied der Gruppe `video` sein.
|
||||
In `raspi-cam.service` ggf. `User` und die Pfade anpassen. Der User muss Mitglied der Gruppe `video` sein.
|
||||
|
||||
```bash
|
||||
sudo cp raspi-cam.service /etc/systemd/system/
|
||||
@@ -66,13 +72,7 @@ Die Konfiguration erfolgt über Umgebungsvariablen oder eine `.env`-Datei im Pro
|
||||
| `CAM_QUALITY` | JPEG-Qualität (1–100) | `30` |
|
||||
| `CAM_ROTATION` | Rotation (`0` oder `180`) | leer |
|
||||
|
||||
Eine kommentierte Vorlage liegt in `.env.example`:
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
Die verfügbaren Sensor-Modi der angeschlossenen Kamera zeigt `rpicam-hello --list-cameras`.
|
||||
Eine kommentierte Vorlage liegt in `.env.example` (`cp .env.example .env`). Die Sensor-Modi der angeschlossenen Kamera zeigt `rpicam-hello --list-cameras`.
|
||||
|
||||
## Kompatible Kameras
|
||||
|
||||
@@ -91,7 +91,7 @@ NoIR-Varianten (ohne Infrarotfilter) gibt es für V1, V2, Module 3 und HQ. Sie n
|
||||
|
||||
### Passende `CAM_MODE`
|
||||
|
||||
Richtwerte, maßgeblich ist die Ausgabe von `rpicam-hello --list-cameras`.
|
||||
Richtwerte, die tatsächlichen Modi können abweichen.
|
||||
|
||||
| Sensor | `CAM_MODE` |
|
||||
|---|---|
|
||||
|
||||
Reference in new issue
Block a user