mirror of
https://github.com/Crocmagnon/printer-raspberry-pi.git
synced 2024-11-21 09:38:02 +01:00
fix error msg
This commit is contained in:
parent
4cf5f107b9
commit
e803a23d07
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue