#!/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