15 lines
		
	
	
		
			202 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			202 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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 .
 | 
						|
 |