This commit is contained in:
gilles committed 2022-09-01 21:29:38 +02:00
1 parent a09fd25462
commit bcc945137c
9 files changed
+121

No files matched your search

Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash -e
source $(dirname $0)/shelly.conf
id=1
curl -s -X POST \
-d '{"id":1, "method":"Script.Eval", "params":{"id":'$SCRIPT_ID', "code":"'$@'"}}' \
$SHELLY_RPC > .inspect.json
cat .inspect.json | jq .result.result -r | jq .
rm -f .inspect.json