Page 5 sur 9

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 16:30
par BernArd
Je te réponds dans l'ordre de tes commentaires, André ;)
abonillo82 a écrit : 03 mars 2020, 13:44 Bonjour Bernard,
pour les commandes Domoticz
tu as:
"sudo service domoticz status" cela te donne le infos sur le status de Domoticz (CTRL-C) pour quitter
"sudo service domoticz stop" pour l'arrêter
"sudo service domoticz start"pour le relancer
j'ai trouvé des infos sur la possibilité de faire un RFlink en wifi sans le raspberry avec un module ESP
Le post est la:viewtopic.php?f=22&t=1106&start=130
Normalement Domoticz demarre automatiquement avec linux mais je ne me souviens plus si il y avait une manip particulière pour le démarrage automatique.
Si je trouve je te dirais.
résultat de

Code : Tout sélectionner

# service domoticz status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated)
   Active: active (exited) since Mon 2020-03-02 06:19:24 CET; 1 day 9h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1370 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

mars 02 06:19:24 debian-fixe systemd[1]: Starting LSB: Home Automation System...
mars 02 06:19:24 debian-fixe domoticz.sh[1370]: 2020-03-02 06:19:24.811  Status: Domoticz V4.10717 (c)2012-2019 GizMoCuz
mars 02 06:19:24 debian-fixe domoticz.sh[1370]: 2020-03-02 06:19:24.811  Status: Build Hash: b38b49e5, Date: 2019-05-09 13:04:08
mars 02 06:19:24 debian-fixe domoticz.sh[1370]: 2020-03-02 06:19:24.830  Status: Startup Path: /home/bernard/domoticz/
mars 02 06:19:24 debian-fixe domoticz.sh[1370]: domoticz: Domoticz is starting up....
mars 02 06:19:24 debian-fixe domoticz[1395]: Domoticz is starting up....
mars 02 06:19:24 debian-fixe domoticz[1680]: Domoticz running...
mars 02 06:19:24 debian-fixe systemd[1]: Started LSB: Home Automation System.
mars 02 11:31:12 debian-fixe domoticz[1680]: Domoticz stopped...
# 
Si je comprends bien, il a été démarré il y a plus d'un jour, mais, hier, le 02/03, à 11h31, il a été arrêté !

à ce niveau, là, j'ai "omis" de prendre des notes... ;) :lol:

et j'ai aussi vérifié :

Code : Tout sélectionner

# service domoticz stop
# 
# service domoticz status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated)
   Active: inactive (dead) since Tue 2020-03-03 16:08:12 CET; 3s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1370 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
  Process: 12097 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)

mars 02 06:19:24 debian-fixe domoticz.sh[1370]: 2020-03-02 06:19:24.811  Status: Build Hash: b38b49e5, Date: 2019-05-09 13:04:08
mars 02 06:19:24 debian-fixe domoticz.sh[1370]: 2020-03-02 06:19:24.830  Status: Startup Path: /home/bernard/domoticz/
mars 02 06:19:24 debian-fixe domoticz.sh[1370]: domoticz: Domoticz is starting up....
mars 02 06:19:24 debian-fixe domoticz[1395]: Domoticz is starting up....
mars 02 06:19:24 debian-fixe domoticz[1680]: Domoticz running...
mars 02 06:19:24 debian-fixe systemd[1]: Started LSB: Home Automation System.
mars 02 11:31:12 debian-fixe domoticz[1680]: Domoticz stopped...
mars 03 16:08:12 debian-fixe systemd[1]: Stopping LSB: Home Automation System...
mars 03 16:08:12 debian-fixe systemd[1]: domoticz.service: Succeeded.
mars 03 16:08:12 debian-fixe systemd[1]: Stopped LSB: Home Automation System.
# 
ça va, je l'ai arrêté !

tiens, en faisant une autre vérif :

Code : Tout sélectionner

# service domoticz status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated)
   Active: active (running) since Tue 2020-03-03 16:17:30 CET; 2min 25s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 12594 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
    Tasks: 16 (limit: 4915)
   Memory: 24.5M
   CGroup: /system.slice/domoticz.service
           └─12601 /home/bernard/domoticz/domoticz -daemon -www 8080 -sslwww 443

mars 03 16:17:29 debian-fixe systemd[1]: Starting LSB: Home Automation System...
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.059  Status: Domoticz V4.10717 (c)2012-2019 GizMoCuz
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.060  Status: Build Hash: b38b49e5, Date: 2019-05-09 13:04:08
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.077  Status: Startup Path: /home/bernard/domoticz/
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: domoticz: Domoticz is starting up....
mars 03 16:17:30 debian-fixe domoticz[12600]: Domoticz is starting up....
mars 03 16:17:30 debian-fixe domoticz[12601]: Domoticz running...
mars 03 16:17:30 debian-fixe systemd[1]: Started LSB: Home Automation System.
# 
il y a 4 lignes en plus, par rapport à la première interrogation, juste au début de mon commentaire :
Tasks: 16 (limit: 4915)
Memory: 24.5M
CGroup: /system.slice/domoticz.service
└─12601 /home/bernard/domoticz/domoticz -daemon -www 8080 -sslwww 443

Elles indiquent des éléments qui doivent intéressants... mais quoi ?
la mémoire vient de ?
la ligne qui est juste au dessous, permet-elle un raccourci quelconque ? ou c'est juste une indication de... ?

Ah pétard, j'en pose des questions... :? :lol:

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 16:34
par BernArd
abonillo82 a écrit : 03 mars 2020, 13:51Bernard,
pour les messages concernant les paquets j'ai eu ce genre de message suite à un gros ménage à la "bourin" que j'avais fait sur mon linux.
J'avais fait une recherche sur le net a partir du message d'erreur mais je ne me souviens plus de la solution.
Hélas contrairement à toi je note rien et ma mémoire est pire que celle d'un poisson rouge :lol:
Rassures toi, André, j'évite de confier à ma mémoire, des éléments peu vitaux ;)
voui, j'suis vache avec certains éléments... meuh... nan... :lol:

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 16:35
par BernArd
abonillo82 a écrit : 03 mars 2020, 14:34Bernard,
j'ai retrouve le fil que j'ai utilisé lors de mon probleme concernant les paquets et les dépendances.
https://forum.ubuntu-fr.org/viewtopic.php?id=1915001
j'espère que cela va t'aider.
Merci André, je vais parcourir cette discussion :)

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 16:41
par BernArd
Merci pour le forum Ubuntu, que j'utilise régulièrement, toutefois, je t'envoie sur les différences :
https://forum.ubuntu-fr.org/viewtopic.p ... #p20688181

et un peu plus d'explications :
https://debian-facile.org/viewtopic.php ... 21#p228321

j'utilise "apt" après avoir fait "su -" qui est la dernière particularité de Debian Buster pour accéder à l'administration ;)

Debian est plus manuel que Ubuntu, que j'apprécie moins, après avoir testé quelques unes de ses distributions, xunbuntu... etc...

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 17:01
par abonillo82
Effectivement
il y a des differences avec Ubuntu mais je pense que les manip doivent être similaires.
pour le status Domoticz voila ce que j'obtiens:

Code : Tout sélectionner

pi@raspberrypi:~ $ sudo service domoticz status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
   Active: active (running) since Tue 2020-03-03 00:10:09 CET; 16h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4426 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUC
  Process: 4477 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/S
    Tasks: 20 (limit: 4915)
   CGroup: /system.slice/domoticz.service
           └─4484 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443

mars 03 00:10:09 raspberrypi systemd[1]: Starting LSB: Home Automation System...
mars 03 00:10:09 raspberrypi domoticz.sh[4477]: 2020-03-03 00:10:09.877  Status:
mars 03 00:10:09 raspberrypi domoticz.sh[4477]: 2020-03-03 00:10:09.878  Status:
mars 03 00:10:09 raspberrypi domoticz.sh[4477]: 2020-03-03 00:10:09.878  Status:
mars 03 00:10:09 raspberrypi domoticz.sh[4477]: domoticz: Domoticz is starting u
mars 03 00:10:09 raspberrypi domoticz[4483]: Domoticz is starting up....
mars 03 00:10:09 raspberrypi domoticz[4484]: Domoticz running...
mars 03 00:10:09 raspberrypi systemd[1]: Started LSB: Home Automation System.
lines 1-18/18 (END)

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 19:06
par BernArd
abonillo82 a écrit : 03 mars 2020, 17:01Effectivement
il y a des differences avec Ubuntu mais je pense que les manip doivent être similaires.
pour le status Domoticz voila ce que j'obtiens:

Code : Tout sélectionner

pi@raspberrypi:~ $ sudo service domoticz status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
   Active: active (running) since Tue 2020-03-03 00:10:09 CET; 16h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4426 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUC
  Process: 4477 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/S
    Tasks: 20 (limit: 4915)
   CGroup: /system.slice/domoticz.service
           └─4484 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443

mars 03 00:10:09 raspberrypi systemd[1]: Starting LSB: Home Automation System...
mars 03 00:10:09 raspberrypi domoticz.sh[4477]: 2020-03-03 00:10:09.877  Status:
mars 03 00:10:09 raspberrypi domoticz.sh[4477]: 2020-03-03 00:10:09.878  Status:
mars 03 00:10:09 raspberrypi domoticz.sh[4477]: 2020-03-03 00:10:09.878  Status:
mars 03 00:10:09 raspberrypi domoticz.sh[4477]: domoticz: Domoticz is starting u
mars 03 00:10:09 raspberrypi domoticz[4483]: Domoticz is starting up....
mars 03 00:10:09 raspberrypi domoticz[4484]: Domoticz running...
mars 03 00:10:09 raspberrypi systemd[1]: Started LSB: Home Automation System.
lines 1-18/18 (END)
Ah, tu as une ligne en plus sur le process et rien sur la mémoire !

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 20:38
par gaston
Elo,

chez moi, j'ai ça:

Code : Tout sélectionner

gaston@domoticz:~$ sudo service domoticz.sh status
[ ok ] domoticz is running.
gaston@domoticz:~$ sudo /etc/init.d/domoticz.sh status
[ ok ] domoticz is running.
Debian Jessie lite dans une machine virtuelle sur mon NAS, dernière version stable de domoticz.

@ Bernard, il tourne ton domoticz ? (accessible via http://ip_de_la_machine_ou_est_installé_domoticz:8080 ou https, dépend de ce qui est configuré)

Sinon, je confirme que le RFlink "cause" avec le moniteur série de l'IDE Arduino, réglé sur 57600 baud

Code : Tout sélectionner

20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R48;
20;01;MySensors=OFF;NO NRF24L01;
20;02;VER=1.1;REV=48;BUILD=04;
20;03;PONG;
20;04;PONG;
20;05;LaCrosse;ID=0301;TEMP=008a;
20;06;PONG;
20;07;PONG;
20;08;PONG;
20;09;LaCrosse;ID=0301;TEMP=008a;
20;0A;PONG;
20;0B;PONG;
____
20;15;Kaku;ID=45;SWITCH=5;CMD=OFF;
20;16;OK;
20;17;OK;
20;18;Kaku;ID=45;SWITCH=5;CMD=ON;
Yapuka ;)

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 23:07
par BernArd
Je sépare en deux, pour plus de clarté, du moins, je le pense...
si j'ai tort, je regrouperai le tout ;)
gaston a écrit : 03 mars 2020, 20:38Elo,

chez moi, j'ai ça:

Code : Tout sélectionner

gaston@domoticz:~$ sudo service domoticz.sh status
[ ok ] domoticz is running.

je mets les deux résultats à la suite, et les deux commandes, celle de Gaston et la mienne !
grosse différence, peut-être due à la version de Debian Jessie...

N°1

Code : Tout sélectionner

gaston@domoticz:~$ sudo service domoticz.sh status
[ ok ] domoticz is running.

bernard@debian-fixe:~$ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated)
   Active: active (running) since Tue 2020-03-03 16:17:30 CET; 6h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 12594 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
    Tasks: 16 (limit: 4915)
   Memory: 32.7M
   CGroup: /system.slice/domoticz.service
           └─12601 /home/bernard/domoticz/domoticz -daemon -www 8080 -sslwww 443

mars 03 16:17:29 debian-fixe systemd[1]: Starting LSB: Home Automation System...
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.059  Status: Domoticz V4.10717 (c)2012-2019 GizMoCuz
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.060  Status: Build Hash: b38b49e5, Date: 2019-05-09 13:04:08
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.077  Status: Startup Path: /home/bernard/domoticz/
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: domoticz: Domoticz is starting up....
mars 03 16:17:30 debian-fixe domoticz[12600]: Domoticz is starting up....
mars 03 16:17:30 debian-fixe domoticz[12601]: Domoticz running...
mars 03 16:17:30 debian-fixe systemd[1]: Started LSB: Home Automation System.
bernard@debian-fixe:~$ 

N°2

Code : Tout sélectionner

gaston@domoticz:~$ sudo /etc/init.d/domoticz.sh status
[ ok ] domoticz is running.

bernard@debian-fixe:~$ sudo /etc/init.d/domoticz.sh status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated)
   Active: active (running) since Tue 2020-03-03 16:17:30 CET; 6h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 12594 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
    Tasks: 16 (limit: 4915)
   Memory: 32.7M
   CGroup: /system.slice/domoticz.service
           └─12601 /home/bernard/domoticz/domoticz -daemon -www 8080 -sslwww 443

mars 03 16:17:29 debian-fixe systemd[1]: Starting LSB: Home Automation System...
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.059  Status: Domoticz V4.10717 (c)2012-2019 GizMoCuz
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.060  Status: Build Hash: b38b49e5, Date: 2019-05-09 13:04:08
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: 2020-03-03 16:17:30.077  Status: Startup Path: /home/bernard/domoticz/
mars 03 16:17:30 debian-fixe domoticz.sh[12594]: domoticz: Domoticz is starting up....
mars 03 16:17:30 debian-fixe domoticz[12600]: Domoticz is starting up....
mars 03 16:17:30 debian-fixe domoticz[12601]: Domoticz running...
mars 03 16:17:30 debian-fixe systemd[1]: Started LSB: Home Automation System.
bernard@debian-fixe:~$
Cela pour les différences, sur les 2 commandes, et je réponds sur le commentaire prochain, pour Domoticz !

Re: Nouveau utilisateur...

Publié : 03 mars 2020, 23:43
par BernArd
gaston a écrit : 03 mars 2020, 20:38 @ Bernard, il tourne ton domoticz ? (accessible via http://ip_de_la_machine_ou_est_installé_domoticz:8080 ou https, dépend de ce qui est configuré)

Sinon, je confirme que le RFlink "cause" avec le moniteur série de l'IDE Arduino, réglé sur 57600 baud

Code : Tout sélectionner

20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R48;
20;01;MySensors=OFF;NO NRF24L01;
20;02;VER=1.1;REV=48;BUILD=04;
20;03;PONG;
20;04;PONG;
20;05;LaCrosse;ID=0301;TEMP=008a;
20;06;PONG;
20;07;PONG;
20;08;PONG;
20;09;LaCrosse;ID=0301;TEMP=008a;
20;0A;PONG;
20;0B;PONG;
____
20;15;Kaku;ID=45;SWITCH=5;CMD=OFF;
20;16;OK;
20;17;OK;
20;18;Kaku;ID=45;SWITCH=5;CMD=ON;
Yapuka ;)
Merci de m'avoir "incité" à vérifier s'il tourne mon Domoticz... voici une copie d'écran :
Image
il tourne, mais il est en barbare... malgré que je lui demande en frenche...
mais, où valider ma demande... ?

Quant à RFLink, comment voir s'il "cause" ?

Purée... j'suis "content" de voir domoticz fonctionner... la dernière fois, un bel écran noir... :?

Aller, j'vais m'coucher en attendant le résultat du 49.3... :lol:

Re: Nouveau utilisateur...

Publié : 04 mars 2020, 00:03
par BernArd
Bon, j'ai réussi à le passer en François, grace à :
https://projetsdiy.fr/domoticz-installa ... erry-pi-3/
drôle, que les coordonnées géographiques soient exigées... :?

Bon, reste maintenant à écouter les 3 sondes...
RFLink fonctionne-t-il... ?

Bon, j'vais me reposer les yeux... maintenant qu'avec le 49.3 nous l'avons... :?