Page 1 of 1
Get Version
Posted: Friday 12 January 2018 12:21
by pigloox
Hi,
I would have liked to know if there was a command to know the number of the latest version available on Domoticz.com (for a script)
Thx
Re: Get Version
Posted: Friday 12 January 2018 13:30
by waaren
You could use modified updatebeta script but there must be a better and more elegant way.
Code: Select all
#!/bin/sh
lowercase(){
echo "$1" | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
}
OS=`lowercase \`uname -s\``
MACH=`uname -m`
if [ ${MACH} = "armv6l" ]
then
MACH="armv7l"
fi
mkdir tempxxx
cd tempxxx
wget -O domoticz_beta.tgz "http://www.domoticz.com/download.php?channel=beta&type=release&system=${OS}&machine=${MACH}"
tar xvfz domoticz_beta.tgz domoticz
rm domoticz_beta.tgz
./domoticz --help | grep Giz
cd ..
rm tempxxx/*
rmdir tempxxx
Re: Get Version
Posted: Friday 12 January 2018 13:56
by pigloox
Thank you for your help, it's true that I would have liked something like extracting the value from the page
https://www.domoticz.com/downloads/ but I don't know how do it. I will try your method