From be882b059328ec021dece863e19637c79795c787 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Tue, 3 Aug 2021 08:56:03 -0400 Subject: [PATCH] reinclude config.yaml mod for cameras --- addnew_printer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addnew_printer.sh b/addnew_printer.sh index 3e53581..ec135d4 100755 --- a/addnew_printer.sh +++ b/addnew_printer.sh @@ -269,9 +269,9 @@ then mv $SCRIPTDIR/cam_$INSTANCE.service /etc/systemd/system/ echo $CAMPORT >> /etc/camera_ports #config.yaml modifications - #echo "webcam:" >> $OCTOCONFIG/.$INSTANCE/config.yaml - #echo " snapshot: http://localhost:$CAMPORT?action=snapshot" >> $OCTOCONFIG/.$INSTANCE/config.yaml - #echo " stream: http://localhost:$CAMPORT?action=stream" >> $OCTOCONFIG/.$INSTANCE/config.yaml + echo "webcam:" >> $OCTOCONFIG/.$INSTANCE/config.yaml + echo " snapshot: http://$(hostname).local:$CAMPORT?action=snapshot" >> $OCTOCONFIG/.$INSTANCE/config.yaml + echo " stream: http://$(hostname).local:$CAMPORT?action=stream" >> $OCTOCONFIG/.$INSTANCE/config.yaml echo fi #Octobuntu Cameras udev identifier - either Serial number or USB port