Refactor cameras script
This commit is contained in:
+10
-8
@@ -1,16 +1,18 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
readonly WEBCONTROL_PORT="8080"
|
||||||
|
|
||||||
readonly cameras=(
|
readonly cameras=(
|
||||||
"https://${HOST0}:${PORT}/${CAMERA0}"
|
"https://${HOST0}:${WEBCONTROL_PORT}/0"
|
||||||
"https://${HOST0}:${PORT}/${CAMERA1}"
|
# "https://${HOST0}:${WEBCONTROL_PORT}/1"
|
||||||
"https://${HOST1}:${PORT}/${CAMERA0}"
|
# "https://${HOST1}:${WEBCONTROL_PORT}/${CAMERA0}"
|
||||||
"https://${HOST2}:${PORT}/${CAMERA0}"
|
# "https://${HOST2}:${WEBCONTROL_PORT}/${CAMERA0}"
|
||||||
)
|
)
|
||||||
readonly auth=(
|
readonly auth=(
|
||||||
"${USER0}:${PW0}"
|
"${MOTION_USER}:${MOTION_PASSWORD}"
|
||||||
"${USER0}:${PW0}"
|
# "${USER0}:${PW0}"
|
||||||
"${USER1}:${PW1}"
|
# "${USER1}:${PW1}"
|
||||||
"${USER2}:${PW2}"
|
# "${USER2}:${PW2}"
|
||||||
)
|
)
|
||||||
|
|
||||||
err() {
|
err() {
|
||||||
|
|||||||
Reference in New Issue
Block a user