config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit a91e2ac1a8222dd4e343f46925ba44e96783920e
parent 3523fe1c3ec364179499061913dc8614a5bb272e
Author: dwrz <dwrz@dwrz.net>
Date:   Sun, 12 Nov 2023 15:56:48 +0000

Update cameras script

Diffstat:
Mscripts/cameras | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/scripts/cameras b/scripts/cameras @@ -1,12 +1,9 @@ #!/usr/bin/env bash cameras=( - "https://$(pass kitchen.516.dwrz.net/ip):\ -$(pass kitchen.516.dwrz.net/motion/port)/0" - "https://$(pass living.516.dwrz.net/ip):\ -$(pass living.516.dwrz.net/motion/port)/0" - "https://$(pass bedroom.516.dwrz.net/ip):\ -$(pass bedroom.516.dwrz.net/motion/port)/0" + "https://kitchen.516.dwrz.net:$(pass kitchen.516.dwrz.net/motion/port)/0" + "https://living.516.dwrz.net:$(pass living.516.dwrz.net/motion/port)/0" + "https://bedroom.516.dwrz.net:$(pass bedroom.516.dwrz.net/motion/port)/0" ) auth=( @@ -32,7 +29,7 @@ main() { esac for i in "${!cameras[@]}"; do - curl --digest --insecure --user "${auth[i]}" "${cameras[i]}/${url}" + curl --digest --user "${auth[i]}" "${cameras[i]}/${url}" done }