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