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>
8 lines
230 B
Bash
Executable File
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 .
|