Qnap [ Domoticz ] [ 2022.2.14606 ] lightweight Home Automation System

Bonsoir

je viens d'installer Domoticz (en V3.8314), et tout semble bien fonctionner. Je débute dans la domotique, mais mon RFXTRX433e est très bien reconnu, et fonctionnel (pour le moment). Je n'y connais pas grand chose, mais je m'essaie à faire des choses qui me conviennent dans le monde de la domotique.
j'ai trouvé un script en python pour détecter la présence d'un périphérique via son IP, pour ensuite déclencher des événements. j'ai trouvé où mettre ce script (dans le dossier scripts !!). Par contre, je ne sais pas quel fichier modifier pour démarrer le script. j'ai trouvé les manip pour le faire à partir d'un raspberry, mais pas pour la distribution QNAP.
Quel est le fichier à modifier pour que démarrer ce script ?


Merci pour votre aide.
 
Bonjour QoolBox,

une nouvelle version stable V4.9700 est disponible sur le site de Domoticz : https://www.domoticz.com/downloads/

Peux-tu recompiler avec cette nouvelle mise à jour ?

Merci d'avance :)
 
updated

je suis partie du package x86_64 du site...

histoire d'alléger tout ça... et la compilation a partir de la source est un peu prise de tête
 
Hi mirmil99,

what you have to do is to modify the file /share/CACHEDEV1_DATA/.qpkg/domoticz/domoticz.sh

The loglevel value has changed since old release : you have to specify the loglevel 'normal' and not '0' now :

- Before : ./Domoticz -www 8855 -wwwbind 0.0.0.0 -startupdelay 15 -log $QPKG_ROOT/var/log/domoticz.log -loglevel 0 -daemon
- Now : ./Domoticz -www 8855 -wwwbind 0.0.0.0 -startupdelay 15 -log $QPKG_ROOT/var/log/domoticz.log -loglevel normal -daemon

Regards.
 
Hello and thanks for new QNAP package.
I've manually updated from
domoticz_3.8314.0_x86_64.qpkg
to
domoticz_4.9701.0_x86_64.qpkg

on my TS-251+ with 4.3.4.0597 firmware.

I've also modified loglevel line from 0 to normal but when I try to start domoticz show some warning
Code:
[/share/CACHEDEV1_DATA/.qpkg/domoticz] # /etc/init.d/domoticz.sh start
./Domoticz: /usr/lib/libcrypto.so.1.0.0: no version information available (required by ./Domoticz)
./Domoticz: /lib/libssl.so.1.0.0: no version information available (required by ./Domoticz)
./Domoticz: /lib/libssl.so.1.0.0: no version information available (required by ./Domoticz)
./Domoticz: /usr/lib/libldap_r-2.4.so.2: no version information available (required by /share/CACHEDEV1_DATA/.qpkg/domoticz/lib/libcurl-gnutls.so.4)
./Domoticz: /lib/liblber-2.4.so.2: no version information available (required by /share/CACHEDEV1_DATA/.qpkg/domoticz/lib/libcurl-gnutls.so.4)
domoticz: Domoticz is starting up....
[/share/CACHEDEV1_DATA/.qpkg/domoticz] #
I see domoticz running
Code:
[/share/CACHEDEV1_DATA/.qpkg/domoticz] # ps | grep domoticz
13231 0         328m S    ./Domoticz -www 8855 -wwwbind 0.0.0.0 -startupdelay 15 -log /share/CACHEDEV1_DATA/.qpkg/domoticz/var/log/domoticz.log -loglevel normal -daemon
13396 0        10192 S    grep domoticz
[/share/CACHEDEV1_DATA/.qpkg/domoticz] #
but after some seconds domoticz crashes and become unusable :(
Code:
[/share/CACHEDEV1_DATA/.qpkg/domoticz] # ps | grep domoticz
13702 0        10192 S    grep domoticz
[/share/CACHEDEV1_DATA/.qpkg/domoticz] #
ldd command output
Code:
[/share/CACHEDEV1_DATA/.qpkg/domoticz] # ldd Domoticz
./Domoticz: /usr/lib/libcrypto.so.1.0.0: no version information available (required by ./Domoticz)
./Domoticz: /lib/libssl.so.1.0.0: no version information available (required by ./Domoticz)
./Domoticz: /lib/libssl.so.1.0.0: no version information available (required by ./Domoticz)
        linux-vdso.so.1 (0x00007ffc9dba8000)
        libssl.so.1.0.0 => /lib/libssl.so.1.0.0 (0x00007f64fa1aa000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f64f9d55000)
        libusb-0.1.so.4 => /usr/lib/libusb-0.1.so.4 (0x00007f64f9b50000)
        librt.so.1 => /lib/librt.so.1 (0x00007f64f9948000)
        libz.so.1 => /lib/libz.so.1 (0x00007f64f972e000)
        libcurl-gnutls.so.4 => not found
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f64f9511000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f64f930d000)
        libm.so.6 => /lib/libm.so.6 (0x00007f64f9008000)
        libc.so.6 => /lib/libc.so.6 (0x00007f64f8c65000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f64fa423000)
        libusb-1.0.so.0 => /usr/lib/libusb-1.0.so.0 (0x00007f64f8a4e000)
[/share/CACHEDEV1_DATA/.qpkg/domoticz] #
I've done a rollback to V3.8314 for now.
May help me please?
Regards
 
QoolBox a dit:
may be do a clean install.. this version is not a cross compiled version...
Ok, for doing a clean install I've to backup domoticz.db only, to restore on new version without configurations loss?
Or I've to backup other files?

Thank you!
 
No way for me.

I've uninstalled old Domoticz v.3.8314.0, before uninstallation I've followed Domoticz Forum recommendations (https://www.domoticz.com/forum/viewtopic.php?f=3&t=23948)

Some notes about the backup:
- backup the database, this can be done on a running system via the 'Settings' option (backup/restore)
- if you use ZWave, backup the zwave configuration file (Config/zwcfg_xxxxx.xml)
- if you are using floorplans, backup images/floorplans, do not that once you start the new stable, the floowplan images are now moved into the database, for feature backups it is not needed to backup this folder any longer!
- if you are using custom/external scripts, also make a backup of them


I've installed package manually so I managed manually remove
Code:
cd /share/CACHEDEV1_DATA/.qpkg
cp -pr domoticz /share/CACHEDEV1_DATA/Backup/.
cd domoticz
./.uninstall.sh
cd ..

Then remove QNAP package configuration
Code:
vi /etc/config/qpkg.conf

My configuration has following lines, I've removed them
Code:
[domoticz]
Status = complete
Build = 20170817
Name = domoticz
Version = 3.8314.0
Author = QoolBox
QPKG_File = domoticz.qpkg
Date = 2018-07-05
Shell = /share/CACHEDEV1_DATA/.qpkg/domoticz/domoticz.sh
Volume_Select = 3
Install_Path = /share/CACHEDEV1_DATA/.qpkg/domoticz
WebUI = /
Web_Port = 8855
RC_Number = 151
Enable = TRUE
Official = 0

Last step reboot NAS, once rebooting wait for all NAS services finished to load.

So I've added QNAP Club Repo (https://www.qnapclub.eu/en/howto/1), then Installed Domoticz v.4.9701.0 from Repo (Clean Installation), and I've again same errors when try to start Domoticz

Code:
[/share/CACHEDEV1_DATA/.qpkg/domoticz] # /etc/init.d/domoticz.sh start
./Domoticz: /usr/lib/libcrypto.so.1.0.0: no version information available (required by ./Domoticz)
./Domoticz: /lib/libssl.so.1.0.0: no version information available (required by ./Domoticz)
./Domoticz: /lib/libssl.so.1.0.0: no version information available (required by ./Domoticz)
./Domoticz: /usr/lib/libldap_r-2.4.so.2: no version information available (required by /share/CACHEDEV1_DATA/.qpkg/domoticz/lib/libcurl-gnutls.so.4)
./Domoticz: /lib/liblber-2.4.so.2: no version information available (required by /share/CACHEDEV1_DATA/.qpkg/domoticz/lib/libcurl-gnutls.so.4)
domoticz: Domoticz is starting up....

and after some seconds or minutes, Domoticz crashes with no error on log (set in debug mode).

I've done a rollback to v.3.8314.0 again... :(

Someone managed to upgrade/install with no problems?

Regards
 
QoolBox a dit:
weird... can it a DB migration issue...

I tried on different NAS here, i didnt encoutered your issue
I don't think was a DB migration issue, because I've tried stop and start Domoticz after a clean installation, with no import of backup or more.
I want to know if there are other people with TS-251+ NAS and v. 4.3.4.0597 firmware that have same issues after upgrade/install (clean installation or not) last Domoticz version. :(

Regards
 
may be try to strart it in cmdline with no daemon

what is output for

Code:
CONF=/etc/config/qpkg.conf
QPKG_NAME="domoticz"
QPKG_ROOT=`/sbin/getcfg $QPKG_NAME Install_Path -f ${CONF}`
APACHE_ROOT=`/sbin/getcfg SHARE_DEF defWeb -d Qweb -f /etc/config/def_share.info`
export QNAP_QPKG=$QPKG_NAME


export QPKG_ROOT
export QPKG_NAME
export SHELL=/bin/sh
export LC_ALL=en_US.UTF-8
export USER=admin
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export TERM=xterm

export HOME=$QPKG_ROOT
export DIR=$QPKG_ROOT
export LD_LIBRARY_PATH=$QPKG_ROOT/lib:$LD_LIBRARY_PATH

/bin/ln -sf $QPKG_ROOT /opt/$QPKG_NAME
cd $QPKG_ROOT
./Domoticz -www 8855 -wwwbind 0.0.0.0 -startupdelay 15 -log $QPKG_ROOT/var/log/domoticz.log -loglevel normal
 
Bonjour.


Est ce que cette version de Domoticz (4.9701) est compatible avce les clefs Zwave ? Je voulais gérer ce protocole, mais je ne trouve rien comme info dessus.


Merci :)
 
Bonjour,
J'utilise la version 3.8314 sur mon TS-251 quelles sont les étapes à réaliser pour passer en 4.9701 sans rien perdre ?
  • faire une sauvegarde de la base et de mes script
    stopper domoticz
    désinstaller domoticz 3
    installer domoticz 4
    réimporter la base et script

C'est une bonne idée, ou pas ?