commit f0774310fe9a6d1915a922c54eedb585caf39298 parent 4b7df3b3e6e9d5862bd855ed6feb0841c95d0977 Author: dwrz <dwrz@dwrz.net> Date: Fri, 28 Oct 2022 17:16:41 +0000 Refactor cameras script Diffstat:
M | scripts/cameras | | | 18 | ++++++++++-------- |
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/scripts/cameras b/scripts/cameras @@ -1,16 +1,18 @@ #!/usr/bin/env bash +readonly WEBCONTROL_PORT="8080" + readonly cameras=( - "https://${HOST0}:${PORT}/${CAMERA0}" - "https://${HOST0}:${PORT}/${CAMERA1}" - "https://${HOST1}:${PORT}/${CAMERA0}" - "https://${HOST2}:${PORT}/${CAMERA0}" + "https://${HOST0}:${WEBCONTROL_PORT}/0" +# "https://${HOST0}:${WEBCONTROL_PORT}/1" +# "https://${HOST1}:${WEBCONTROL_PORT}/${CAMERA0}" +# "https://${HOST2}:${WEBCONTROL_PORT}/${CAMERA0}" ) readonly auth=( - "${USER0}:${PW0}" - "${USER0}:${PW0}" - "${USER1}:${PW1}" - "${USER2}:${PW2}" + "${MOTION_USER}:${MOTION_PASSWORD}" +# "${USER0}:${PW0}" +# "${USER1}:${PW1}" +# "${USER2}:${PW2}" ) err() {