mirror of
https://github.com/Crocmagnon/printer-raspberry-pi.git
synced 2024-11-23 02:28: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_CONNECT_CAMERA_TOKEN:=TOKEN}"
|
||||||
: "${PRUSA_LINK_KEY:=KEY}"
|
: "${PRUSA_LINK_KEY:=KEY}"
|
||||||
|
|
||||||
source secrets
|
source ./secrets
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
state=$(curl -m 5 -sSL $PRUSA_LINK_STATUS_URL -H "X-Api-Key: $PRUSA_LINK_KEY" | jq -r ".printer.state")
|
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
|
# Reset delay to the normal value
|
||||||
DELAY=$DELAY_SECONDS
|
DELAY=$DELAY_SECONDS
|
||||||
else
|
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
|
# Set delay to the longer value
|
||||||
DELAY=$LONG_DELAY_SECONDS
|
DELAY=$LONG_DELAY_SECONDS
|
||||||
|
|
|
@ -4,6 +4,7 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/home/gaugendre/printer-raspberry-pi/prusaconnect
|
ExecStart=/home/gaugendre/printer-raspberry-pi/prusaconnect
|
||||||
|
WorkingDirectory=/home/gaugendre/printer-raspberry-pi
|
||||||
Type=exec
|
Type=exec
|
||||||
Restart=always
|
Restart=always
|
||||||
User=gaugendre
|
User=gaugendre
|
||||||
|
|
Loading…
Reference in a new issue