[32_yowsup.pm] Whatsapp versenden (Mit Handy- oder Festnetznummer)

Begonnen von AHA1805, 01 Oktober 2014, 21:58:55

Vorheriges Thema - Nächstes Thema

majorshark

Hallo Forum. Ich noch mal.

Anbei noch einmal ein Logbuch mit verbose 5 im Modul nach shutdown reboot. Vielleicht hilft das ja weiter und es kann jemand helfen.

2015.09.23 22:30:11 0: Server shutdown
2015.09.23 22:30:11 1: PERL WARNING: Perl exited with active threads:
1 running and unjoined
0 finished and unjoined
0 running and detached
2015.09.23 22:30:14 1: Including fhem.cfg
2015.09.23 22:30:14 3: Opening CUL_0 device /dev/ttyACM0
2015.09.23 22:30:14 3: Setting CUL_0 serial parameters to 38400,8,N,1
2015.09.23 22:30:14 3: CUL_0 device opened
2015.09.23 22:30:15 3: CUL_0: Possible commands: BbCFiAZNkGMKUYRTVWXefmLltux
2015.09.23 22:30:15 2: Switched CUL_0 rfmode to HomeMatic
2015.09.23 22:30:15 3: telnetPort: port 7072 opened
2015.09.23 22:30:15 3: WEB: port 8083 opened
2015.09.23 22:30:16 3: WEBphone: port 8084 opened
2015.09.23 22:30:16 3: WEBtablet: port 8085 opened
2015.09.23 22:30:16 2: eventTypes: loaded 1884 events from ./log/eventTypes.txt
2015.09.23 22:30:16 3: Solarlog initialized: 192.168.3.4 300
2015.09.23 22:30:18 3: BFT_Torgauer: Defined with URL http://www.clever-tanken.de/tankstelle_details/4943 and interval 3600
2015.09.23 22:30:18 3: Solardatenlogger: Defined with URL http://192.168.3.101:8083/fhem?room=Solaranlage and interval 300
2015.09.23 22:30:18 3: Gasdatenlogger: Defined with URL http://192.168.3.9/index.htm and interval 60
Unrecognized escape \p passed through at ./FHEM/32_WifiLight.pm line 2170, <$fh> line 1134.
2015.09.23 22:30:19 3: define WifiLight_Bude: can't reach (IO::Socket::INET: connect: timeout)
2015.09.23 22:30:19 3: TABLETUI: new ext defined infix:ftui: dir:./www/tablet:
2015.09.23 22:30:19 3: Registering HTTPSRV TABLETUI for URL /ftui   and assigned link ftui ...
2015.09.23 22:30:20 3: Pollenflug: Defined with URL http://www.donnerwetter.de/pollenflug/region.hts?lid=DE24840&Ort=TAUCHA and interval 7200
2015.09.23 22:30:20 3: KINO_Taucha: Defined with URL http://www.kino.de/kinoprogramm/taucha/ct-lichtspiele-taucha-k15090/ and interval 14400
2015.09.23 22:30:21 1: Including ./log/fhem.save
2015.09.23 22:30:21 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
2015.09.23 22:30:22 3: No I/O device found for RolloBad1
2015.09.23 22:30:22 3: No I/O device found for RolloSZ
2015.09.23 22:30:22 3: No I/O device found for RolloKT
2015.09.23 22:30:22 3: No I/O device found for RolloWZ
2015.09.23 22:30:22 3: No I/O device found for RolloBad2
2015.09.23 22:30:22 3: No I/O device found for RolloAZ
2015.09.23 22:30:22 3: No I/O device found for RolloKZ
2015.09.23 22:30:22 3: No I/O device found for RolloHWR
2015.09.23 22:30:22 3: Device CUL_HM_HM_ES_PMSw1_Pl_24AC43 added to ActionDetector with 000:10 time
2015.09.23 22:30:22 3: Device CUL_HM_HM_ES_PMSw1_Pl_283B5A added to ActionDetector with 000:10 time
2015.09.23 22:30:22 3: Device CUL_HM_HM_SEC_SC_2_247E14 added to ActionDetector with 028:00 time
2015.09.23 22:30:22 3: Device CUL_HM_HM_Sen_MDIR_O_24F55F added to ActionDetector with 000:10 time
2015.09.23 22:30:22 3: Device CUL_HM_ID_00AC_24AC42 added to ActionDetector with 000:10 time
2015.09.23 22:30:22 3: Device HM_37B55A added to ActionDetector with 000:50 time
2015.09.23 22:30:22 2: WhatsApp: setting $HOME to /opt/fhem
2015.09.23 22:30:22 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
2015.09.23 22:30:22 3: WifiLight_Bude low level cmd queue send ERROR 56000000aa, qlen 1 (trying to reconnect)
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

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.09.23 22:30:23 1: WifiLight_Bude low level cmd queue send ERROR 56000000aa, qlen 1 (reconnect giving up)
2015.09.23 22:30:23 1: usb create starting
2015.09.23 22:30:23 3: Probing CUL device /dev/ttyAMA0
2015.09.23 22:30:24 3: Probing TCM_ESP3 device /dev/ttyAMA0
2015.09.23 22:30:24 3: Probing FRM device /dev/ttyAMA0
2015.09.23 22:30:29 1: usb create end
2015.09.23 22:30:29 3: NTFY return:  WhatsApp:HASH(0x20ef988)
2015.09.23 22:30:29 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.09.23 22:30:29 0: Featurelevel: 5.6
2015.09.23 22:30:29 0: Server started with 165 defined entities (version $Id: fhem.pl 9218 2015-09-09 19:43:43Z rudolfkoenig $, os linux, user fhem, pid 3197)
2015.09.23 22:30:29 3: WhatsApp: sending /disconnect
2015.09.23 22:30:29 3: WhatsApp: Disconnected
2015.09.23 22:30:29 3: WhatsApp: read: end of file reached while sysread
Grüße aus Dewitz

VM auf Synology DS718+ mit FHEM 5.9 auf Debian 9.5/32-Bit (stretch)
Nächster Leipziger Stammtisch:

Puschel74

So nun war es auch bei mir mal soweit das ich von der "Anfangs-WhatsApp" umgezogen bin und ...
DANKE andre und AHA1805
Nach Wiki installiert - notifys umgestellt auf die neue Struktur - alles einwandfrei geklappt.
Nachrichten trudeln brav am Handy ein und selbst das senden an FHEM klappt (wie nicht anders zu erwarten  ::) ) zwar vorerst nur als Meldung im Logfile aber ich will ja (noch) nichts per WhatsApp
schalten (lassen) - aber was nicht ist kann ja noch werden.
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

marvin78

Schalten lassen ist ohnehin weniger interessant, als dass FHEM auch antworten kann, wenn man unterwegs ist. ;)

Skusi

Mein Whatsapp connected auch schon seit Tagen nicht mehr. Ich finde den Grund einfach nicht raus. Lief sonst immer gut.
Was ist gemeint mit "notifys umgestellt auf die neue Struktur" ?

Muß ich irgendwo was ändern bzw. neu Installieren ?

Ich bin ratlos wo ich ansetzten soll um das wieder zum laufen zu bringen...
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

Puschel74

Das update wie hier beschrieben http://forum.fhem.de/index.php/topic,27543.msg329030.html#msg329030 hast du gemacht?
Einzig die config mit meinen Daten habe ich nach /opt/fhem verschoben und als Pfad angegeben.

ZitatWas ist gemeint mit "notifys umgestellt auf die neue Struktur" ?
Da ich WhatsApp dank Hilfe von AHA1805 seit Beginn in Verwendung hatte musste ich natürlich den Aufruf umstellen da vorher auf die sub in der 99_myUtils.pm zugegriffen wurde.
Das ist jetzt nichtmehr nötig.

Zitat von: marvin78 am 25 September 2015, 07:27:34
Schalten lassen ist ohnehin weniger interessant, als dass FHEM auch antworten kann, wenn man unterwegs ist. ;)
Juhuu, ich kann mich mit meinem Haus "unterhalten"  ;D
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

Fhemeinsteiger

#650
Hallo,

ich habe alles neu aufgesetzt.
Funktioniert soweit ganz gut.
Nur zwei Probleme hab ich noch:
1. ich kann meinem Handy immer noch keine Nachricht schicken,(andere geht) wahrscheinlich ein Problem außerhalb von yowsup bzw. FHem
2. es kommt immer noch eine Fehlermeldung: Speicher_temp DOIF: no trigger in condition: Speicher:temperature Solar_temp DOIF: no trigger in condition: Solar:temperature

meine config dazu:
define Speicher_temp DOIF (Speicher:temperature)< 37.0 set WhatsApp send 491xxxxx Heizung pruefen Wasser wird Kalt
define Solar_temp DOIF (Solar:temperature)> 100.0 set WhatsApp send 49xxxxxx Solarplatten zu Heiss

könnt ihr mir zu 2. helfen, was muss in der config stehen damit ich eine Nachricht bekomme wenn eine bestimmte Temperatur erreicht oder über-unterschritten wird?

fhemeinsteiger


Brockmann

Zitat von: Fhemeinsteiger am 25 September 2015, 12:10:18
könnt ihr mir zu 2. helfen, was muss in der config stehen damit ich eine Nachricht bekomme wenn eine bestimmte Temperatur erreicht oder über-unterschritten wird?

define Speicher_temp DOIF ([Speicher:temperature] < 37.0) (set WhatsApp send 491xxxxx Heizung pruefen Wasser wird Kalt)
define Solar_temp DOIF ([Solar:temperature] > 100.0) (set WhatsApp send 49xxxxxx Solarplatten zu Heiss)

Puschel74

Bitte die Fragen nicht kreuz und quer einwerfen.
DOIF ist immer noch besser unter Automatisierung aufgehoben da das mit WhatsApp nichts zu tun hat.
Und in der deutschen commandref zu DOIF hat sich Damian wirklich Mühe gegeben und daher sollte diese auch mal durchgelesen werden.

Edith: Und Code-Tags würden das ganze dann auch noch leserlicher machen.
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

marvin78

Zitat von: Puschel74 am 25 September 2015, 12:23:47

Und in der deutschen commandref zu DOIF hat sich Damian wirklich Mühe gegeben und daher sollte diese auch mal durchgelesen werden.

Ohne Frage, ja. Trotzdem ist das eine Beispielsammlung und keine Doku.

Skusi

So, hab gerade nochmal zur sicherheit das Update gemacht.

Das letzte mal hab ich das  am 03.09 schon durchgeführt weil es da schonmal Probleme gab. Danch lief es auch erstmal.

Aktuell also:

yowsup-cli v2.0.13
Using yowsup v2.4

shutdown restart und reboot Raspberry

Mein CMD Aufruf im Modul:
/opt/yowsub-master/yowsup-cli demos -c /opt/fhem/yowsup.config --yowsup

config verschoben nach /opt/fhem.

Kein connect ! Letzter Login 22.09.

In der Console sieht ein Aufruf so aus:

root@raspberrypi:/opt/yowsup-master# ./yowsup-cli demos -c /opt/fhem/yowsup.config --yowsup
Yowsup Cli client
==================
Type /help for available commands

[offline]:
?????????????????????????????
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

Skusi

Nochwas:

Wenn ich in der Console folgedes eingebe:

root@raspberrypi:~# /opt/yowsub-master/yowsup-cli demos -c /opt/fhem/yowsup.config --yowsup

kommt:

-bash: /opt/yowsub-master/yowsup-cli: Datei oder Verzeichnis nicht gefunden

Die Datei ist aber definitiv dort, per ftp geprüft. Rechte: fhem.dialout

Log:

WhatsApp: sending /disconnect
2015.09.25 12:56:17 3: WhatsApp: Disconnected
2015.09.25 12:56:17 3: WhatsApp: read: end of file reached while sysread
2015.09.25 12:56:27 2: WhatsApp: setting $HOME to /opt/fhem
2015.09.25 12:56:27 2: WhatsApp: starting yoswup-cli: /opt/yowsub-master/yowsup-cli demos -c /opt/fhem/yowsup.config --yowsup
2015.09.25 12:56:27 1: PERL WARNING: Can't exec "/opt/yowsub-master/yowsup-cli": No such file or directory at ./FHEM/32_yowsup.pm line 176.
2015.09.25 12:56:27 1: exec failed



RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

Carsten

Könnte daran liegen, dass du yowsup im Verzeichnis mit "b" geschrieben hast...  ::)

Skusi

Ohhh mann ... ::)

Ok, Fehler erkannt. Ich Dummchen. sorry !

Nun siehts im Log so aus:

2015.09.25 14:01:34 2: WhatsApp: setting $HOME to /opt/fhem
2015.09.25 14:01:34 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/fhem/yowsup.config --yowsup
2015.09.25 14:01:34 3: WhatsApp: sending /disconnect
2015.09.25 14:01:34 3: WhatsApp: Disconnected
2015.09.25 14:01:34 3: WhatsApp: read: end of file reached while sysread
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

Skusi

Kann mann eigenlich seinen Registrierungsstatus bei Whatsapp abfragen, oder die Registrierung erneut ausführen ?
Vielleicht ist ja dort das Problem ?

Oder bekommt man es irgendwo gemeldet das der Server mich nicht annimmt, weil irgendwas mit den Zugansdaten nicht stimmt.
Ich hab die Geschichte nämlich über meine Festnetznummer laufen. Damals bei der erst Registierung meine ich ein expire Date von kürzer als einem Jahr gemeldet bekommen zu haben. Obwohl doch ein Jahr zuerst als Kostenlose Laufzeit üblich ist.

Kann ich das also irgendwo nochmal aufrufen ob meine Registrierung noch aktiv ist, oder wann sie abläuft ?
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

majorshark

Hallo Skusi.

Mit den gleichen Meldungen im Log schlage ich mich auch herum. Solltest Du etwas herausbekommen lass es mich bitte wissen.
Leider bin ich selbst in der Sache noch nicht weiter gekommen.  :(
Grüße aus Dewitz

VM auf Synology DS718+ mit FHEM 5.9 auf Debian 9.5/32-Bit (stretch)
Nächster Leipziger Stammtisch: