From 5f2ef0f55dc2f7427d4f7336961f3e4f496ecc3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=C5=A0ari=C4=87?= Date: Sun, 3 Dec 2023 11:14:53 +0100 Subject: [PATCH] deletes unused service template, fixes command name in remaining service scripts --- services/goto.sh | 2 +- services/motion.sh | 2 +- services/set-preset.sh | 1 - services/set-preset@.service | 16 ---------------- services/time.sh | 2 +- 5 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 services/set-preset.sh delete mode 100644 services/set-preset@.service diff --git a/services/goto.sh b/services/goto.sh index 99251b8..e4cbd73 100644 --- a/services/goto.sh +++ b/services/goto.sh @@ -1 +1 @@ -goto-preset -a ${CAMERA_ADDRESS} -u ${CAMERA_USER} -p ${CAMERA_PASSWORD} -t 30 -l 001 \ No newline at end of file +onvif-goto-preset -a ${CAMERA_ADDRESS} -u ${CAMERA_USER} -p ${CAMERA_PASSWORD} -t 30 -l 001 \ No newline at end of file diff --git a/services/motion.sh b/services/motion.sh index 0620f7e..3f96688 100644 --- a/services/motion.sh +++ b/services/motion.sh @@ -1 +1 @@ -motion-poll -a ${CAMERA_ADDRESS} -u ${CAMERA_USER} -p ${CAMERA_PASSWORD} -n ${CAMERA_NAME} -s ${SLACK_WEBHOOK} -t 30 -b ${SLACK_BOT_TOKEN} -c ${SLACK_CHANNEL_ID} +onvif-motion-poll -a ${CAMERA_ADDRESS} -u ${CAMERA_USER} -p ${CAMERA_PASSWORD} -n ${CAMERA_NAME} -s ${SLACK_WEBHOOK} -t 30 -b ${SLACK_BOT_TOKEN} -c ${SLACK_CHANNEL_ID} diff --git a/services/set-preset.sh b/services/set-preset.sh deleted file mode 100644 index 55c1211..0000000 --- a/services/set-preset.sh +++ /dev/null @@ -1 +0,0 @@ -set-preset -a ${CAMERA_ADDRESS} -u ${CAMERA_USER} -p ${CAMERA_PASSWORD} -l 001 diff --git a/services/set-preset@.service b/services/set-preset@.service deleted file mode 100644 index f3ac08b..0000000 --- a/services/set-preset@.service +++ /dev/null @@ -1,16 +0,0 @@ -[Unit] -DefaultDependencies=no -After=network.target - -[Service] -Type=simple -EnvironmentFile=${CONFIG_PATH}/%i.env -Restart=always -RestartSec=3 -User=${USER} -Group=${USER} -ExecStart=/bin/bash ${CONFIG_PATH}/set-preset.sh -TimeoutStartSec=0 - -[Install] -WantedBy=default.target diff --git a/services/time.sh b/services/time.sh index b664ebd..84931dc 100644 --- a/services/time.sh +++ b/services/time.sh @@ -1 +1 @@ -set-time -a ${CAMERA_ADDRESS} -u admin -p ${CAMERA_PASSWORD} \ No newline at end of file +onvif-set-time -a ${CAMERA_ADDRESS} -u admin -p ${CAMERA_PASSWORD} \ No newline at end of file