src.nth.io/

summaryrefslogtreecommitdiff
path: root/doorbell-viewport/templates
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-04-12 11:52:58 -0500
committerLuke Hoersten <[email protected]>2026-04-12 11:52:58 -0500
commitc528cf7268463c84a050129665ce08814fd1d420 (patch)
tree43414ad05f9923b0abc1cfe7b48b6da33169534e /doorbell-viewport/templates
parent121f23c67f10a0ea3e8bff476f46fdec13112696 (diff)
Add doorbell-viewport role
RPi4 portrait touchscreen that shows a live UniFi Protect RTSP stream on doorbell ring or touch, with display fully off at idle. Supports warm prebuffer, vcgencmd/drm/panel display backends, evdev touch input, and configurable DRM device/connector/mode.
Diffstat (limited to 'doorbell-viewport/templates')
-rw-r--r--doorbell-viewport/templates/doorbell-viewport.env.j212
-rw-r--r--doorbell-viewport/templates/doorbell-viewport.service.j218
2 files changed, 30 insertions, 0 deletions
diff --git a/doorbell-viewport/templates/doorbell-viewport.env.j2 b/doorbell-viewport/templates/doorbell-viewport.env.j2
new file mode 100644
index 0000000..3863dbc
--- /dev/null
+++ b/doorbell-viewport/templates/doorbell-viewport.env.j2
@@ -0,0 +1,12 @@
+DOORBELL_VIEWPORT_PROTECT_HOST={{doorbell_viewport_protect_host}}
+DOORBELL_VIEWPORT_PROTECT_USERNAME={{vault_doorbell_viewport_protect_username}}
+DOORBELL_VIEWPORT_PROTECT_PASSWORD={{vault_doorbell_viewport_protect_password}}
+DOORBELL_VIEWPORT_CAMERA_ID={{doorbell_viewport_camera_id}}
+DOORBELL_VIEWPORT_TIMEOUT={{doorbell_viewport_timeout}}
+DOORBELL_VIEWPORT_TOUCH_MATCH={{doorbell_viewport_touch_match}}
+DOORBELL_VIEWPORT_PREBUFFER_MODE={{doorbell_viewport_prebuffer_mode}}
+DOORBELL_VIEWPORT_DISPLAY_BACKEND={{doorbell_viewport_display_backend}}
+DOORBELL_VIEWPORT_ORIENTATION={{doorbell_viewport_orientation}}
+DOORBELL_VIEWPORT_DRM_DEVICE={{doorbell_viewport_drm_device}}
+DOORBELL_VIEWPORT_DRM_CONNECTOR={{doorbell_viewport_drm_connector}}
+DOORBELL_VIEWPORT_DRM_MODE={{doorbell_viewport_drm_mode}}
diff --git a/doorbell-viewport/templates/doorbell-viewport.service.j2 b/doorbell-viewport/templates/doorbell-viewport.service.j2
new file mode 100644
index 0000000..01cce45
--- /dev/null
+++ b/doorbell-viewport/templates/doorbell-viewport.service.j2
@@ -0,0 +1,18 @@
+[Unit]
+Description=Doorbell Viewport
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+User={{doorbell_viewport_user}}
+Group={{doorbell_viewport_user}}
+EnvironmentFile=/etc/doorbell-viewport/doorbell-viewport.env
+ExecStart=/usr/local/bin/doorbell-viewport
+Restart=always
+RestartSec=5
+StandardOutput=journal
+StandardError=journal
+
+[Install]
+WantedBy=multi-user.target