src.nth.io/

summaryrefslogtreecommitdiff
path: root/unifi-protect-viewport/templates
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-04-15 20:00:04 -0500
committerLuke Hoersten <[email protected]>2026-04-15 20:00:04 -0500
commit4ec792319b0cc9ab9aa3410c454f4880515c62c0 (patch)
tree876e693da2e2be042a574838484027de8be6b23d /unifi-protect-viewport/templates
parent7d61034d91cc716ad6165f6867c49940ced94909 (diff)
Rename doorbell-viewport role to unifi-protect-viewport
Diffstat (limited to 'unifi-protect-viewport/templates')
-rw-r--r--unifi-protect-viewport/templates/unifi-protect-viewport.env.j210
-rw-r--r--unifi-protect-viewport/templates/unifi-protect-viewport.service.j218
2 files changed, 28 insertions, 0 deletions
diff --git a/unifi-protect-viewport/templates/unifi-protect-viewport.env.j2 b/unifi-protect-viewport/templates/unifi-protect-viewport.env.j2
new file mode 100644
index 0000000..9fa8830
--- /dev/null
+++ b/unifi-protect-viewport/templates/unifi-protect-viewport.env.j2
@@ -0,0 +1,10 @@
+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_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/unifi-protect-viewport/templates/unifi-protect-viewport.service.j2 b/unifi-protect-viewport/templates/unifi-protect-viewport.service.j2
new file mode 100644
index 0000000..01cce45
--- /dev/null
+++ b/unifi-protect-viewport/templates/unifi-protect-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