Hallo Forum.
Da ich mich nun schon mehrere Wochen mit dem Modul und/oder dem Client von yowsup herumärgere und mit meinem beschränkten möglichkeite am Ende bin, würde ich hier gern mal das Thema diskutieren.
Das Modul funktioniert bei anderen Benutzern hier im Forum einwandfrei. Bei mir hat es nach der Installation (nach Wiki) auch einwandfrei funktioniert. Erst nach dem Update mag sich der yowsup-Client nicht mehr mit dem Modul unterhalten. Was bei anderen allerdings auch einwandfrei funktioniert.
Was habe ich bisher versucht:
1. Verbose 5 im Modul erzeugt folgende Einträge im Log
2015.10.12 15:48:13 0: Server shutdown
2015.10.12 15:48:14 1: PERL WARNING: Perl exited with active threads:
1 running and unjoined
0 finished and unjoined
0 running and detached
2015.10.12 15:48:17 1: Including fhem.cfg
2015.10.12 15:48:17 3: Opening CUL_0 device /dev/ttyACM0
2015.10.12 15:48:17 3: Setting CUL_0 serial parameters to 38400,8,N,1
2015.10.12 15:48:17 3: CUL_0 device opened
2015.10.12 15:48:18 3: CUL_0: Possible commands: BbCFiAZNkGMKUYRTVWXefmLltux
2015.10.12 15:48:18 2: Switched CUL_0 rfmode to HomeMatic
2015.10.12 15:48:18 3: telnetPort: port 7072 opened
2015.10.12 15:48:18 3: WEB: port 8083 opened
2015.10.12 15:48:18 3: WEBphone: port 8084 opened
2015.10.12 15:48:18 3: WEBtablet: port 8085 opened
2015.10.12 15:48:18 2: eventTypes: loaded 1886 events from ./log/eventTypes.txt
2015.10.12 15:48:19 3: Solarlog initialized: 192.168.3.4 300
2015.10.12 15:48:21 3: BFT_Torgauer: Defined with URL http://www.clever-tanken.de/tankstelle_details/4940 and interval 3600
2015.10.12 15:48:21 3: Solardatenlogger: Defined with URL http://192.168.3.101:8083/fhem?room=Solaranlage and interval 300
2015.10.12 15:48:21 3: Gasdatenlogger: Defined with URL http://192.168.3.9/index.htm and interval 60
2015.10.12 15:48:22 3: TABLETUI: new ext defined infix:ftui: dir:./www/tablet:
2015.10.12 15:48:22 3: Registering HTTPSRV TABLETUI for URL /ftui and assigned link ftui ...
2015.10.12 15:48:24 1: Including ./log/fhem.save
2015.10.12 15:48:24 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
2015.10.12 15:48:24 3: No I/O device found for RolloBad1
2015.10.12 15:48:24 3: No I/O device found for RolloSZ
2015.10.12 15:48:24 3: No I/O device found for RolloKT
2015.10.12 15:48:24 3: No I/O device found for RolloWZ
2015.10.12 15:48:24 3: No I/O device found for RolloBad2
2015.10.12 15:48:24 3: No I/O device found for RolloAZ
2015.10.12 15:48:24 3: No I/O device found for RolloKZ
2015.10.12 15:48:24 3: No I/O device found for RolloHWR
2015.10.12 15:48:24 3: Device CUL_HM_HM_ES_PMSw1_Pl_24AC43 added to ActionDetector with 000:10 time
2015.10.12 15:48:24 3: Device CUL_HM_HM_ES_PMSw1_Pl_283B5A added to ActionDetector with 000:10 time
2015.10.12 15:48:25 3: Device CUL_HM_HM_SEC_SC_2_247E14 added to ActionDetector with 028:00 time
Yowsup Cli client
==================
Type /help for available commands
[offline]:Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/yowsup-master/yowsup/demos/cli/cli.py", line 153, in startInputThread
cmd = self._queuedCmds.pop(0) if len(self._queuedCmds) else input(self.getPrompt()).strip()
EOFError: EOF when reading a line
2015.10.12 15:48:25 3: Device CUL_HM_HM_Sen_MDIR_O_24F55F added to ActionDetector with 000:10 time
2015.10.12 15:48:25 3: Device CUL_HM_ID_00AC_24AC42 added to ActionDetector with 000:10 time
2015.10.12 15:48:25 3: Device HM_37B55A added to ActionDetector with 000:50 time
2015.10.12 15:48:25 2: WhatsApp: setting $HOME to /opt/fhem
2015.10.12 15:48:25 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
Yowsup Cli client
==================
Type /help for available commands
[offline]:Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/yowsup-master/yowsup/demos/cli/cli.py", line 153, in startInputThread
cmd = self._queuedCmds.pop(0) if len(self._queuedCmds) else input(self.getPrompt()).strip()
EOFError: EOF when reading a line
2015.10.12 15:48:26 1: WifiLight_Bude low level cmd queue send ERROR 56000000aa, qlen 1 (reconnect giving up)
2015.10.12 15:48:26 1: usb create starting
2015.10.12 15:48:26 3: Probing CUL device /dev/ttyAMA0
2015.10.12 15:48:26 3: Probing TCM_ESP3 device /dev/ttyAMA0
2015.10.12 15:48:27 3: Probing FRM device /dev/ttyAMA0
2015.10.12 15:48:32 1: usb create end
2015.10.12 15:48:32 3: NTFY return: WhatsApp:HASH(0x37652b0)
2015.10.12 15:48:32 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2015.10.12 15:48:32 0: Featurelevel: 5.6
2015.10.12 15:48:32 0: Server started with 164 defined entities (version $Id: fhem.pl 9307 2015-09-25 18:44:20Z rudolfkoenig $, os linux, user fhem, pid 21748)
2015.10.12 15:48:32 3: WhatsApp: sending /disconnect
2015.10.12 15:48:32 3: WhatsApp: Disconnected
2015.10.12 15:48:32 3: WhatsApp: read: end of file reached while sysread
2015.10.12 15:48:42 2: WhatsApp: setting $HOME to /opt/fhem
2015.10.12 15:48:42 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
2015.10.12 15:48:42 3: WhatsApp: sending /disconnect
2015.10.12 15:48:42 3: WhatsApp: Disconnected
2015.10.12 15:48:42 3: WhatsApp: read: end of file reached while sysread
Dann wiederholt sich das ganze aller 10 Sekunden.
2. Ich habe in der FHEM Startdatei (/etc/init.d/fhem) folgens eingefügt bzw. angehangen um Fehlerausgaben in ein Log zu bekommen.
perl fhem.pl fhem.cfg >> ${HOME}/var/log/fhem-stdout 2>>${HOME}/var/log/fhem-stderr
Die Dateien werden angelegt bleiben aber leer. Ich glaube irgendwo mal gelesen zu haben, dass ab einer bestimmten Version von FHEM ohnehin alle stdout/stderr im FHEM Log landen.
Da ich mit "sudo ps -ax" nicht sehe, das da irgend etwas vom Client läuft wäre die Frage nun warum wird dieser nicht gestartet. Offensichtlich versucht das Modul ja genau das - alle 10 Sekunden.
Oder ist "sudo ps -ax" nicht der richtige Befehl zum anzeigen der laufenden Prozesse. Komme leider nicht weiter. Bräuchte bitte Unterstützung.