Bonjour à tous,
je suis à la recherche de domoticz pour mon raspberry, savez vous comment l’installer svp
merci par avance
Bonjour à tous,
je suis à la recherche de domoticz pour mon raspberry, savez vous comment l’installer svp
merci par avance
Sur la page des téléchargements de domoticz tu peux trouver une version pour Raspberry.
Si tu veux faire cohabiter Yunohost et Domoticz, je ne sais pas s’il existe une app Domoticz pour Yuno.
Il n’y a pas d’app Domoticz dans YNH, mais il y a un script à exécuter si l’OS est déjà installé. Les instructions sont sur cette page.
Attention, par défaut leur admin utilise le port 8080, il faut que tu le modifies dans le script ou dans le fichier
/etc/init.d/domoticz.sh
après installation (cf. leur manuel). Tu devras sûrement aussi ouvrir ce port dans YNH.
Je me pencherai sûrement sur ce genre d’app dans les mois à venir, mais j’ai plutôt repéré Home-Assistant ou OpenHAB pour ça.
@Issa j’ai démarré une app Domoticz https://github.com/anubister/domoticz_ynh
ça marche chez moi sur une machine 64bit, je ne garanti rien mais je suis intéressé par vos retours.
Bonjour,
tout d’abord, merci pour le partage de l’app que j’attendais depuis un moment…
Installaton faite mais j’ai un beau error 502… pourtant le port 8080 est ouvert dans le pare-feu.
Une idée?
Je me demandais aussi où est installée l’appli? Je ne la trouve pas dans yunohost.app ni dans /var/www
merci à toi.
ps aux |grep domoticz
netstat -apn | grep LISTEN |grep 8080
Bonjour anubis,
alors,
ps aux |grep domoticz
:
root 5300 0.0 0.0 39596 4588 pts/0 T 19:41 0:00 systemctl status domoticz.service
root 5307 0.0 0.0 12756 956 pts/0 S+ 19:42 0:00 grep domoticz
si je fait service domoticz status j’ai un beau fail.
Ensuite ligne vide sur netstat -apn | grep LISTEN |grep 8080
mais c’est normal vu que le service ne se lance pas.
Rien dans les /var/log/domoticz
Nginx error.log… j’ai toute une tripotée de messages, mais celui-ci m’a semblé important:
[warn] 5377#5377: could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
mais après, vu que j’y connais pas grand chose, je suis pas sur.
En tout cas, le port 8080 est ouvert dans le pare-feu
je sais pas si ça t’aide…
Ah oui, yunohost est installé sur un pc en debian9
Bonsoir,
Dur à dire… ça a bien dit installation Successfull à la fin de l’installation ?
Tu peux essayer de lancer domoticz à la main depuis /opt/yunohost/domoticz/ comme ça tu auras les logs directement (/opt/yunohost/domoticz/domoticz -www 8080
)
Bonsoir anubis,
voici la partie erreur que me retourne la commande:
2019-01-16 21:16:14.229 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Address already in use
2019-01-16 21:16:14.229 Error: WebServer(SSL) check privileges for opening port s below 1024
2019-01-16 21:16:14.229 Status: Proxymanager started.
En même temps ça me semble logique vu que le port 443 est déja utilisé par yunohost.
Bonjour,
ce n’est pas une erreur bloquante car le service est dispo aussi sur le port 8080 en http ; tu peux éviter cette erreur en ajoutant -sslwww 0
.
J’aurais besoin de plus de log pour pouvoir t’aider.
Bonjour,
domoticz est déjà installé par la procédure normale sur mon raspberry. Ma question est de savoir s’il risque d’y avoir conflit en installant yunohost, par exemple avec le port 8080.
Merci.
Pour commencer je ferais une sauvegarde de la base de donnée Domoticz (Réglages > Paramètres > Sauvegarde).
Comme ça je pense que ça ne devrait pas empêcher Yunohost de s’installer, ni Domoticz de tourner en local (si tu n’utilises pas l’accès https), mais Yunohost ne saura pas que Domoticz est présent, donc à minima il faudra configurer le parefeu pour laisser passer sur 8080.
Bonjour
J’ai installé domoticz sur un raspberry avec l’installeur de ynh et github ( mais ca ne fonctionnait pas ) puis par la méthode “classique” en compilant voir ici. Le serveur est accessible si je le lance avec “sudo ./domoticz” mais il plante si je le lance avec “sudo service domoticz.sh start” .
voila les logs de la console :
admin@olitask:~ $ cd dev-domoticz/
admin@olitask:~/dev-domoticz $ sudo ./domoticz
2019-03-23 17:53:43.441 Status: Domoticz V4.10548 (c)2012-2019 GizMoCuz
2019-03-23 17:53:43.442 Status: Build Hash: 3f713ad4, Date: 2019-03-14 11:11:35
2019-03-23 17:53:43.443 Status: Startup Path: /home/admin/dev-domoticz/
2019-03-23 17:53:44.162 Sunrise: 06:02:00 SunSet: 18:22:00
2019-03-23 17:53:44.162 Day length: 12:20:00 Sun at south: 12:05:00
2019-03-23 17:53:44.162 Civil twilight start: 05:30:00 Civil twilight end: 18:53:00
2019-03-23 17:53:44.162 Nautical twilight start: 04:53:00 Nautical twilight end: 19:31:00
2019-03-23 17:53:44.163 Astronomical twilight start: 04:14:00 Astronomical twilight end: 20:10:00
2019-03-23 17:53:44.163 Status: EventSystem: reset all events...
2019-03-23 17:53:44.490 Status: PluginSystem: Started, Python version '3.5.3'.
2019-03-23 17:53:44.511 Active notification Subsystems: (0/13)
2019-03-23 17:53:44.541 Status: WebServer(HTTP) started on address: :: with port 8080
2019-03-23 17:53:44.603 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Address already in use
2019-03-23 17:53:44.603 Error: WebServer(SSL) check privileges for opening ports below 1024
2019-03-23 17:53:44.604 Status: Proxymanager started.
2019-03-23 17:53:44.608 Starting shared server on: :::6144
2019-03-23 17:53:44.609 Status: TCPServer: shared server started...
2019-03-23 17:53:44.610 Status: RxQueue: queue worker started...
2019-03-23 17:53:46.611 Status: EventSystem: reset all events...
2019-03-23 17:53:46.612 Status: EventSystem: reset all device statuses...
2019-03-23 17:53:46.703 Status: PluginSystem: Entering work loop.
2019-03-23 17:53:46.874 Status: Python EventSystem: Initalizing event module.
2019-03-23 17:53:46.875 Status: EventSystem: Started
2019-03-23 17:53:46.875 Status: EventSystem: Queue thread started...
2019-03-23 17:54:54.907 Status: Login successful from 192.168.1.61 for user 'olitask'
2019-03-23 17:54:54.908 Status: Incoming connection from: 192.168.1.61
2019-03-23 17:56:07.729 Sunrise: 06:01:00 SunSet: 18:22:00
2019-03-23 17:56:07.729 Day length: 12:21:00 Sun at south: 12:05:00
2019-03-23 17:56:07.730 Civil twilight start: 05:28:00 Civil twilight end: 18:55:00
2019-03-23 17:56:07.730 Nautical twilight start: 04:49:00 Nautical twilight end: 19:34:00
2019-03-23 17:56:07.730 Astronomical twilight start: 04:08:00 Astronomical twilight end: 20:15:00
2019-03-23 17:56:07.730 Status: EventSystem: reset all events...
2019-03-23 17:56:07.839 Active notification Subsystems: (0/13)
2019-03-23 17:58:38.773 Sunrise: 05:49:00 SunSet: 18:10:00
2019-03-23 17:58:38.773 Day length: 12:21:00 Sun at south: 11:05:00
2019-03-23 17:58:38.773 Civil twilight start: 05:16:00 Civil twilight end: 18:43:00
2019-03-23 17:58:38.773 Nautical twilight start: 04:37:00 Nautical twilight end: 19:22:00
2019-03-23 17:58:38.773 Astronomical twilight start: 03:56:00 Astronomical twilight end: 20:03:00
2019-03-23 17:58:38.773 Status: EventSystem: reset all events...
2019-03-23 17:58:38.876 Active notification Subsystems: (0/13)
2019-03-23 18:01:44.313 Status: User: olitask initiated a scene/group command
2019-03-23 18:01:44.316 Activating Scene/Group: [chambre amis]
2019-03-23 18:01:46.987 Status: User: olitask initiated a scene/group command
2019-03-23 18:01:46.989 Activating Scene/Group: [chambre amis]
^C2019-03-23 18:48:22.969 Status: Closing application!...
2019-03-23 18:48:26.175 Status: Stopping worker...
2019-03-23 18:48:28.148 Status: RxQueue: queue worker stopped...
2019-03-23 18:48:38.586 Status: WebServer(HTTP) stopped
2019-03-23 18:48:39.883 Status: TCPServer: shared server stopped
2019-03-23 18:48:39.883 Status: Stopping all hardware...
2019-03-23 18:48:40.289 Status: Scheduler stopped...
2019-03-23 18:48:40.294 Status: EventSystem: Queue thread stopped...
2019-03-23 18:48:40.295 Status: EventSystem: Stopped...
2019-03-23 18:48:41.085 Status: EventSystem - Python stopped...
2019-03-23 18:48:41.087 Status: PluginSystem: Exiting work loop.
2019-03-23 18:48:41.156 Status: PluginSystem: Stopped.
2019-03-23 18:48:41.157 Status: Mainworker Stopped...
admin@olitask:~/dev-domoticz $ sudo service domoticz.sh start
admin@olitask:~/dev-domoticz $ sudo service domoticz.sh status
● domoticz.service - Domoticz (Home automation system)
Loaded: loaded (/etc/systemd/system/domoticz.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-03-23 18:49:22 GMT; 28s ago
Main PID: 8811 (domoticz)
CGroup: /system.slice/domoticz.service
└─8811 /opt/yunohost/domoticz/domoticz -www __PORT__
Mar 23 18:49:22 olitask.changeip.com systemd[1]: Started Domoticz (Home automation system).
Mar 23 18:49:28 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:28.753 Status: Domoticz V4.5876 (c)2012-2016 GizMoCuz
Mar 23 18:49:28 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:28.758 Status: Build Hash: b97777b, Date: 2016-11-09 11:33:42
Mar 23 18:49:28 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:28.768 Status: Startup Path: /opt/yunohost/domoticz/
admin@olitask:~/dev-domoticz $ sudo service domoticz.sh status
● domoticz.service - Domoticz (Home automation system)
Loaded: loaded (/etc/systemd/system/domoticz.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Sat 2019-03-23 18:49:59 GMT; 54s ago
Process: 8811 ExecStart=/opt/yunohost/domoticz/domoticz -www __PORT__ (code=killed, signal=ABRT)
Main PID: 8811 (code=killed, signal=ABRT)
Mar 23 18:49:58 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:58.451 Active notification Subsystems: gcm, http (2/13)
Mar 23 18:49:58 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:58.894 Error: WebServer(HTTP) startup failed on address 0.0.0.0 with port: __PORT__: resolve: Service n
Mar 23 18:49:58 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:58.898 Error: WebServer(HTTP) check privileges for opening ports below 1024
Mar 23 18:49:59 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:59.197 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied
Mar 23 18:49:59 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:59.197 Error: WebServer(SSL) check privileges for opening ports below 1024
Mar 23 18:49:59 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:59.198 Error: No servers are configured. Hence mydomoticz will not be started either.
Mar 23 18:49:59 olitask.changeip.com domoticz[8811]: 2019-03-23 18:49:59.198 Status: Proxymanager started.
Mar 23 18:49:59 olitask.changeip.com systemd[1]: domoticz.service: Main process exited, code=killed, status=6/ABRT
Mar 23 18:49:59 olitask.changeip.com systemd[1]: domoticz.service: Unit entered failed state.
Mar 23 18:49:59 olitask.changeip.com systemd[1]: domoticz.service: Failed with result 'signal'.
et le fichier init.d
#! /bin/sh
### BEGIN INIT INFO
# Provides: domoticz
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Home Automation System
# Description: This daemon will start the Domoticz Home Automation System
### END INIT INFO
# Do NOT "set -e"
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=admin
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
DAEMON=/home/admin/dev-domoticz/$NAME
DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$-daemon -www 8080"
#DAEMON_ARGS="$DAEMON_ARGS -sslwww 444"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
Qu’est ce qui *erde ? une idée ?
Bonjour à toi,
je ne te conseil pas d’utiliser des applis non officielement suporté sur ton yunohost.
J’ai eu l’expérience de tout pété car en installant des apps instable ou non suporté, ça fonctionne plus des qu’il y a une mise à jour yunohost et qu’il n’y a pas plus de mainteneur, c’est un gros défaut de Yunohost.
ce que je te conseil c’est d’utiliser Yunohost avec les apps officiel et de mettre une 2ieme raspberry avec les autres apps à installé dessus, comme ça, tu enleve le risque que le mainteneur d’une appli non officiel abondonne sont apps et que tu te retrouve avec une apps qui tu as l’habitude d’utilise et qui ne fonctionne plus suite à la mise à jour de yunhost.
Sur ceux bon courage et je suis ce post en espérant qu’une jour cette apps passe du coté officiel de la force.
Bonjour olitask,
je pense que bien que tu aies recompilé avec la procédure domoticz, tu utilises le fichier de conf systemd venant de l’app domoticz_ynh ; or il semble que le n° de port ne fonctionne pas correctement, cf
Je vais faire des tests sur Raspberry ces prochains jours; ton retour m’intéresse.
Réponse un peu tardive…
Je viens de modifier le fichier comme tu me l’a indiqué dans le post précédent et çà roule.
(/opt/yunohost/domoticz/domoticz)
Merci
du coup, j’ai domoticz installé deux fois ( mais ça c’est pas grave )