Added tap to wake and cycle feed
This commit is contained in:
+14
-2
@@ -1,4 +1,12 @@
|
||||
# Portainer-friendly: no build step. Load/push the image first, then paste this stack.
|
||||
#
|
||||
# Cameras are source-only; resolution is a query param (square by default):
|
||||
# http://<host>:8080/doorbell/?size=480
|
||||
# http://<host>:8080/oprit/?w=720
|
||||
# http://<host>:8080/oprit/?size=480&zoom=1.35
|
||||
#
|
||||
# Per-camera "zoom" in CAMERAS also applies when ?zoom= is omitted.
|
||||
# zoom > 1 fills portrait/wide feeds tighter (more crop, larger subject).
|
||||
services:
|
||||
resizer:
|
||||
image: doorbell-resizer:latest
|
||||
@@ -6,11 +14,15 @@ services:
|
||||
ports:
|
||||
- "8080:80"
|
||||
environment:
|
||||
FRIGATE_URL: http://10.0.1.197:5050/api/doorbell/latest.jpg?h=270
|
||||
TARGET_WIDTH: "480"
|
||||
JPEG_QUALITY: "40"
|
||||
FETCH_TIMEOUT: "5"
|
||||
PREFETCH_HZ: "10"
|
||||
PREFETCH_SIZES: "480,720"
|
||||
CAMERAS: >-
|
||||
[
|
||||
{"name":"doorbell","url":"http://10.0.1.197:5050/api/doorbell/latest.jpg"},
|
||||
{"name":"oprit","url":"http://10.0.1.197:5050/api/oprit/latest.jpg","zoom":1.35}
|
||||
]
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1/health')"]
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user