Files
shelly_pool/upload_script
Gilles Grandou f9a579529b 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>
2026-03-15 17:46:50 +01:00

8 lines
230 B
Bash
Executable File

#!/bin/bash
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
curl -s "$SHELLY_RPC/Script.Start?id=$SCRIPT_ID" | jq .