first commit
This commit is contained in:
10
changevol.sh
Executable file
10
changevol.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
#sleep 1
|
||||
|
||||
value=`curl "http://localhost:81/json.htm?type=devices&rid=202" 2>/dev/null|grep \"Level\"|awk -F: '{print $2}' |awk -F, '{print $1}'`
|
||||
|
||||
|
||||
/opt/domoticz/scripts/vol $value
|
||||
|
||||
#return $value
|
||||
Reference in New Issue
Block a user