kvs tools

This commit is contained in:
2022-09-07 08:50:54 +02:00
parent 657a1b38e3
commit d072d29fba
3 changed files with 33 additions and 0 deletions

14
kvs_set Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
source $(dirname $0)/shelly.conf
if [ $# -ne 2 ]; then
echo "usage: $0 <key> <value>"
exit 1
fi
key=$1
value=$2
curl -s $SHELLY_RPC/KVS.Set'?key="'$key'"&value='$value'' | jq .