Get Version

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
pigloox
Posts: 22
Joined: Tuesday 09 February 2016 23:02
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: France
Contact:

Get Version

Post 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
RPI3 Stretch (Hard disk)
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get Version

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pigloox
Posts: 22
Joined: Tuesday 09 February 2016 23:02
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: France
Contact:

Re: Get Version

Post 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
RPI3 Stretch (Hard disk)
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest