stop script before upload, restart after
Required since recent Shelly firmware update: Script.PutCode fails with error -103 if the script is running. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,4 +2,6 @@
|
|||||||
|
|
||||||
source $(dirname $0)/shelly.conf
|
source $(dirname $0)/shelly.conf
|
||||||
|
|
||||||
|
curl -s "$SHELLY_RPC/Script.Stop?id=$SCRIPT_ID" | jq .
|
||||||
$ROOT_DIR/put_script $SHELLY_HOST $SCRIPT_ID $ROOT_DIR/$SCRIPT_FILENAME
|
$ROOT_DIR/put_script $SHELLY_HOST $SCRIPT_ID $ROOT_DIR/$SCRIPT_FILENAME
|
||||||
|
curl -s "$SHELLY_RPC/Script.Start?id=$SCRIPT_ID" | jq .
|
||||||
|
|||||||
Reference in New Issue
Block a user