Calaos, Home Automation Forum
Notification - Printable Version

+- Calaos, Home Automation Forum (https://calaos.fr/forum)
+-- Forum: Utilisation - Installation - Configuration (https://calaos.fr/forum/forumdisplay.php?fid=4)
+--- Forum: Calaos Installer (https://calaos.fr/forum/forumdisplay.php?fid=6)
+--- Thread: Notification (/showthread.php?tid=60)

Pages: 1 2 3 4 5 6 7


RE: Notification - raoulh - 01-30-2014

Tu tapes quelle commande?


RE: Notification - Martluc - 01-31-2014

journalctl -fu calaos-server

avec une console SSH sur Windows en mode fenetre complète....


RE: Notification - raoulh - 02-01-2014

Ok, essaye ca:

Code:
journalctl -flu calaos-server



RE: Notification - Many77 - 02-01-2014

bonjour,
J'ai également besoin d'aide
je suis connecté en SSH sur mon server (meleg) mais lorsque je tape la commande "calaos_config list", j'ai "-sh: calaos_config: not found".
quelle est mon erreur ?


RE: Notification - Many77 - 02-01-2014

alors... j'ai avancé !
je n'ai pas réussi à utiliser les commandes de calaos_config.
j'ai donc édité mon fichier xml (Calaos> vi local_config.xml)
j'ai ajouté les lignes nécessaires au SMTP... cela fonctionne très bien !


RE: Notification - Martluc - 02-03-2014

root@raspberrypi:~# date
Mon Feb 3 16:04:07 UTC 2014
root@raspberrypi:~#


Lors de l'edition des logs je suis sur date 01/01 à 10H20. je viens de verifier la date du serveur est ok ????????

quelle commande pour purger les logs?


RE: Notification - raoulh - 02-03-2014

Normal, la raspberry pi n'a pas d'horloge matériel. Les logs avec la mauvaise heure que lors du boot avant que le reseau soit monté et que l'heure soit synchronisé par internet.


RE: Notification - Martluc - 02-03-2014

ok pour les premieres lignes mais maintenant voila les seules lignes que j'obtient. meme plus de sequence d'envois sendmail alors que je viens de déclencher l 'alarme.


root@raspberrypi:~# journalctl -flu calaos-server
-- Logs begin at Thu 1970-01-01 00:00:04 UTC. --
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO network : UDPServer: received input 56 state=1
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO network : UDPServer: received input 56 state=0
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO network : UDPServer: received input 56 state=1
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO network : UDPServer: received input 56 state=0
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 01 10:23:18 raspberrypi calaos_server[195]: INFO network : UDPServer: received input 56 state=1

J'ai rebooté le serveur et maintenant j 'ai les logs à jour grr grr !

Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : Using local ip address: 192.168.0.100
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=1
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=0
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : Using local ip address: 192.168.0.100
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=1
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 62 state=0
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO input : WIDigitalBP::ReceiveFromWago(): Got 0 on std input 62
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 51 state=1
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO input : WIDigitalBP::ReceiveFromWago(): Got 1 on std input 51
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule : Rule(Cave Garage,Alarme Fichet déclenchée): Starting execution (3 actions)
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching inputs for "output_34" => not found
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching outputs for "output_34" => found
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule.action.mail : ActionMail::Execute(): Need to download camera (Toutes les cameras) attachment
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching inputs for "output_34" => not found
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching outputs for "output_34" => found
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule.action.mail : ActionMail::Execute(): Need to download camera (Toutes les cameras) attachment
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching inputs for "output_34" => not found
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching outputs for "output_34" => found
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule.action.mail : ActionMail::Execute(): Need to download camera (Toutes les cameras) attachment
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule : Rule(Cave Garage,Alarme Fichet déclenchée): Execution done.
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #0) "Intervention alarme Tanet"
Feb 03 17:27:21 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=0
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #1) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 62 state=1
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalBP::ReceiveFromWago(): Got 1 on std input 62
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #2) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #3) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : Using local ip address: 192.168.0.100
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=1
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #4) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #5) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: Sending mail failed after 5 tries. Please check log for more information.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #0) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #1) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #2) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : Using local ip address: 192.168.0.100
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #3) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #4) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #5) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=0
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: Sending mail failed after 5 tries. Please check log for more information.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #0) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=1
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : Using local ip address: 192.168.0.100
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #1) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #2) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=0
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #3) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=1
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=0
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #4) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=1
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=0
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #5) "Intervention alarme Tanet"
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=1
Feb 03 17:27:57 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:57 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=0
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 0 on std input 56
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : Using local ip address: 192.168.0.100
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=1
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO input : WIDigitalTriple::ReceiveFromWago(): Got 1 on std input 56
Feb 03 17:27:20 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 62 state=0
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO input : WIDigitalBP::ReceiveFromWago(): Got 0 on std input 62
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 51 state=1
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO input : WIDigitalBP::ReceiveFromWago(): Got 1 on std input 51
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule : Rule(Cave Garage,Alarme Fichet déclenchée): Starting execution (3 actions)
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching inputs for "output_34" => not found
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching outputs for "output_34" => found
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule.action.mail : ActionMail::Execute(): Need to download camera (Toutes les cameras) attachment
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching inputs for "output_34" => not found
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching outputs for "output_34" => found
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule.action.mail : ActionMail::Execute(): Need to download camera (Toutes les cameras) attachment
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching inputs for "output_34" => not found
Feb 03 17:27:21 raspberrypi calaos_server[199]: DEBUG room : Searching outputs for "output_34" => found
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule.action.mail : ActionMail::Execute(): Need to download camera (Toutes les cameras) attachment
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO rule : Rule(Cave Garage,Alarme Fichet déclenchée): Execution done.
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO mail : SendMail: Sending mail (attempt #0) "Intervention alarme Tanet"
Feb 03 17:27:21 raspberrypi calaos_server[199]: ERROR mail : SendMail: an exception occured: Authentication error.
Feb 03 17:27:21 raspberrypi calaos_server[199]: INFO network : UDPServer: received input 56 state=0

j'ai modifié le serveur smtp et supprimé tls

<calaos:option name="smtp_server" value="smtp://smtp.orange.fr" />
<calaos:option name="smtp_port" value="587" />
<calaos:option name="smtp_auth" value="true" />
<calaos:option name="smtp_username" value="jl.martluc@orange.fr" />
<calaos:option name="smtp_password" value="toto" />
<calaos:option name="smtp_tls" value="false" />


RE: Notification - raoulh - 02-04-2014

La je ne sais pas. Tu as une erreur d'authentification... Tes logins/mdp sont juste pour orange?

Et avec gmail ca marche pas depuis que je t'ai dis d'installer les certificats?


RE: Notification - Martluc - 02-04-2014

Tu penses bien que j ai vérifié. J ai changé de smtp parce que gmail ne fait pas mieux meme avec la librairie. Tu confirme qu il n y a pas d erreur de syntaxe? Par ailleurs tu as constate l anomalie des logs? Après reboot les logs sont @ nouveau ok. MerciWink