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
Get Version
Moderators: leecollings, remb0
-
- Posts: 22
- Joined: Tuesday 09 February 2016 23:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: France
- Contact:
Get Version
RPI3 Stretch (Hard disk)
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Get Version
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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 22
- Joined: Tuesday 09 February 2016 23:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: France
- Contact:
Re: Get Version
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
RPI3 Stretch (Hard disk)
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
Who is online
Users browsing this forum: No registered users and 1 guest