Code: Select all
curl -s -X GET "http://127.0.0.1:8088/json.htm?type=command¶m=getversion" | /bin/grep "version :" | awk {'print $3'} | /usr/bin/cut -d '"' -f 2 | /usr/bin/cut -d '"' -f 1
Code: Select all
2.4.1
3.8872
Code: Select all
{
"DomoticzUpdateURL" : "http://www.domoticz.com/download.php?channel=beta&type=release&system=linux&machine=armv7l",
"HaveUpdate" : false,
"Revision" : 8872,
"SystemName" : "linux",
"build_time" : "2018-01-29 16:59:49",
"dzvents_version" : "2.4.1",
"hash" : "fc97f529",
"status" : "OK",
"title" : "GetVersion",
"version" : "3.8872"
}