fix error msg

This commit is contained in:
Gabriel Augendre 2024-02-27 19:31:17 +01:00
parent 4cf5f107b9
commit e803a23d07
2 changed files with 3 additions and 2 deletions

View file

@ -13,7 +13,7 @@
: "${PRUSA_CONNECT_CAMERA_TOKEN:=TOKEN}"
: "${PRUSA_LINK_KEY:=KEY}"
source secrets
source ./secrets
while true; do
state=$(curl -m 5 -sSL $PRUSA_LINK_STATUS_URL -H "X-Api-Key: $PRUSA_LINK_KEY" | jq -r ".printer.state")
@ -34,7 +34,7 @@ while true; do
# Reset delay to the normal value
DELAY=$DELAY_SECONDS
else
echo "FFmpeg returned an error. Retrying after ${LONG_DELAY_SECONDS}s..."
echo "Couldn't capture snapshot. Retrying after ${LONG_DELAY_SECONDS}s..."
# Set delay to the longer value
DELAY=$LONG_DELAY_SECONDS

View file

@ -4,6 +4,7 @@ After=network.target
[Service]
ExecStart=/home/gaugendre/printer-raspberry-pi/prusaconnect
WorkingDirectory=/home/gaugendre/printer-raspberry-pi
Type=exec
Restart=always
User=gaugendre