From e803a23d07b7dc9b2eca0950ced27667b8da6506 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 27 Feb 2024 19:31:17 +0100 Subject: [PATCH] fix error msg --- prusaconnect | 4 ++-- prusaconnect.service | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/prusaconnect b/prusaconnect index 9399d78..61e60ca 100755 --- a/prusaconnect +++ b/prusaconnect @@ -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 diff --git a/prusaconnect.service b/prusaconnect.service index 0a6a370..2851bc1 100644 --- a/prusaconnect.service +++ b/prusaconnect.service @@ -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