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

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

Vorheriges Thema - Nächstes Thema

heinzfo

Vielen Dank!

Kannst Du etwas zum eigentlichen Problem sagen?

Gesendet von meinem GT-I9505 mit Tapatalk


heinzfo

Ich habe die neuste master.zip installiert "sudo wget https://github.com/jlguardi/yowsup/archive/master.zip"

Nun dieser Fehler im FHEM Logfile:

2016.06.18 10:59:32 3: WhatsApp: sending /disconnect
2016.06.18 10:59:32 3: WhatsApp: Disconnected
2016.06.18 10:59:32 3: WhatsApp: read: end of file reached while sysread
2016.06.18 10:59:42 2: WhatsApp: setting $HOME to /opt/fhem
2016.06.18 10:59:42 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
Traceback (most recent call last):
  File "/opt/yowsup-master/yowsup-cli", line 324, in <module>
    if not parser.process():
  File "/opt/yowsup-master/yowsup-cli", line 228, in process
    self.startCmdline()
  File "/opt/yowsup-master/yowsup-cli", line 250, in startCmdline
    from yowsup.demos import cli
  File "/opt/yowsup-master/yowsup/demos/cli/__init__.py", line 1, in <module>
    from .stack import YowsupCliStack
  File "/opt/yowsup-master/yowsup/demos/cli/stack.py", line 2, in <module>
    from .layer import YowsupCliLayer
  File "/opt/yowsup-master/yowsup/demos/cli/layer.py", line 2, in <module>
    from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback
  File "/opt/yowsup-master/yowsup/layers/interface/__init__.py", line 1, in <module>
    from .interface import YowInterfaceLayer, ProtocolEntityCallback
  File "/opt/yowsup-master/yowsup/layers/interface/interface.py", line 7, in <module>
    from yowsup.layers.axolotl.layer import YowAxolotlLayer
  File "/opt/yowsup-master/yowsup/layers/axolotl/__init__.py", line 1, in <module>
    from .layer import YowAxolotlLayer
  File "/opt/yowsup-master/yowsup/layers/axolotl/layer.py", line 29, in <module>
    from axolotl.axolotladdress import AxolotlAddress
ImportError: No module named axolotladdress
2016.06.18 10:59:48 3: WhatsApp: sending /disconnect
2016.06.18 10:59:48 3: WhatsApp: Disconnected
2016.06.18 10:59:48 3: WhatsApp: read: end of file reached while sysread


Wie komme ich weiter?

Grüße
Heinz

JoWiemann

Hallo,

von tgalal gibt es auch eine axolotl lib. Findest Du hier: https://github.com/tgalal/python-axolotl.

Die Lib wird genauso installiert wie yowsup.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

heinzfo

Das Problem das ich unter #1256 beschrieben hab ist gelöst.

Ich habe bei meiner yowsup definition der Android devices das attr event-on-change-reading .* entfernt, nun geht es wieder  ;)

heinzfo

Hallo

Seit heute 02:20 geht WhatsApp nicht mehr, nach Anmeldeversuch immer wieder disconnect.

Fhem update und Raspi neustart hellfen nicht.
WhatsApp hat etwas geändert?

Drei Einträge aus dem Logfile:

2016.06.29 08:36:33 2: WhatsApp: setting $HOME to /opt/fhem
2016.06.29 08:36:33 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
2016.06.29 08:36:36 3: WhatsApp: sending /L
2016.06.29 08:36:36 3: WhatsApp: sending /presence available
2016.06.29 08:36:36 3: WhatsApp: sending /presence name 'fhem'
2016.06.29 08:36:38 3: WhatsApp: sending /disconnect
2016.06.29 08:36:38 3: WhatsApp: Disconnected
2016.06.29 08:36:38 3: WhatsApp: read: error during sysread: Keine Kind-Prozesse
2016.06.29 08:36:38 3: WhatsApp: read: end of file reached while sysread
2016.06.29 08:36:48 2: WhatsApp: setting $HOME to /opt/fhem
2016.06.29 08:36:48 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
2016.06.29 08:36:52 3: WhatsApp: sending /L
2016.06.29 08:36:52 3: WhatsApp: sending /presence available
2016.06.29 08:36:52 3: WhatsApp: sending /presence name 'fhem'
2016.06.29 08:36:53 3: WhatsApp: sending /disconnect
2016.06.29 08:36:53 3: WhatsApp: Disconnected
2016.06.29 08:36:53 3: WhatsApp: read: error during sysread: Keine Kind-Prozesse
2016.06.29 08:36:53 3: WhatsApp: read: end of file reached while sysread
2016.06.29 08:37:03 2: WhatsApp: setting $HOME to /opt/fhem
2016.06.29 08:37:03 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
2016.06.29 08:37:08 3: WhatsApp: sending /L
2016.06.29 08:37:08 3: WhatsApp: sending /presence available
2016.06.29 08:37:08 3: WhatsApp: sending /presence name 'fhem'
2016.06.29 08:37:12 3: WhatsApp: sending /disconnect
2016.06.29 08:37:12 3: WhatsApp: Disconnected
2016.06.29 08:37:12 3: WhatsApp: read: error during sysread: Keine Kind-Prozesse
2016.06.29 08:37:12 3: WhatsApp: read: end of file reached while sysread


Evtl. können die Spezialisten hier helfen.

Danke und Grüße
Heinz

RitterSport

Hier das gleiche, seit 2:20 läuft es nicht mehr.
2016.06.29 02:22:15 3: WhatsApp: sending /presence available
Traceback (most recent call last):
  File "/opt/yowsup-master/yowsup-cli", line 323, in <module>
    if not parser.process():
  File "/opt/yowsup-master/yowsup-cli", line 227, in process
    self.startCmdline()
  File "/opt/yowsup-master/yowsup-cli", line 255, in startCmdline
    stack.start()
  File "/opt/yowsup-master/yowsup/demos/cli/stack.py", line 25, in start
    self.stack.loop(timeout = 0.5, discrete = 0.5)
  File "/opt/yowsup-master/yowsup/stacks/yowstack.py", line 187, in loop
    asyncore.loop(*args, **kwargs)
  File "/usr/lib/python2.7/asyncore.py", line 216, in loop
    poll_fun(timeout, map)
  File "/usr/lib/python2.7/asyncore.py", line 156, in poll
    read(obj)
  File "/usr/lib/python2.7/asyncore.py", line 87, in read
    obj.handle_error()
  File "/usr/lib/python2.7/asyncore.py", line 83, in read
    obj.handle_read_event()
  File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event
    self.handle_read()
  File "/opt/yowsup-master/yowsup/layers/network/layer.py", line 86, in handle_read
    self.receive(data)
  File "/opt/yowsup-master/yowsup/layers/network/layer.py", line 94, in receive
    self.toUpper(data)
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 59, in toUpper
    self.__upper.receive(data)
  File "/opt/yowsup-master/yowsup/layers/stanzaregulator/layer.py", line 28, in receive
    self.processReceived()
  File "/opt/yowsup-master/yowsup/layers/stanzaregulator/layer.py", line 48, in processReceived
    self.toUpper(oneMessageData)
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 59, in toUpper
    self.__upper.receive(data)
  File "/opt/yowsup-master/yowsup/layers/auth/layer_crypt.py", line 63, in receive
    self.toUpper(payload)
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 59, in toUpper
    self.__upper.receive(data)
  File "/opt/yowsup-master/yowsup/layers/coder/layer.py", line 33, in receive
    node = self.reader.getProtocolTreeNode(data)
  File "/opt/yowsup-master/yowsup/layers/coder/decoder.py", line 13, in getProtocolTreeNode
    return self.streamStart(data)
  File "/opt/yowsup-master/yowsup/layers/coder/decoder.py", line 36, in streamStart
    raise Exception("expecting STREAM_START in streamStart, instead got token: %s" % token)
Exception: expecting STREAM_START in streamStart, instead got token: failure

heinzfo

#1266
Hallo JoWiemann

Kannst Du mir bitte etwas näher erklären wie das in Antwort #1262 gemeint ist?
Ich habe diese Datei geholt: python-axolotl-master.zip
In welchem Verzeichniss auf dem Raspberry muss ich das entpacken?

Danke und Grüße
Heinz

Freibeuter

Auch bei mir läuft es nicht mehr, eine Test hat folgendes ergeben:
python yowsup-cli demos -c /opt/yowsup-config/yowsup.config -s 490000000000 "Das ist ein Test"
Authentication Error: not-authorized
Gruß
Peter F.

TeeVau

Account deaktiviert?

Mein Account wurde nach ein paar Monaten deaktiviert. Habe es jetzt dran gegeben, yowsup war irgendwie immer eine Dauerbaustelle, die Aufmerksamkeit benötigte. Dafür ist mir mein Leben zu kurz ;-)
FHEM 5.8 dev (virtualisiert) / FBF 7390 (CUL 868MHz V 1.51 / panStick (AVR1))
FS20: fs20di,fs20pira,fs20sm8,fs20st2,fs20tfk,fs20ue1,fs20ws1
panStamp (AVR1): RGB Multi von ext23, 1W-DSxxxx, I/O Sketch, Spritzpumpe
Multimedia: Panasonic TV (VIERA), Kodi, Yamaha RX-V781, LMS
Sonstiges: XiaomiFlowerSen


ChrisK

Zitat von: heinzfo am 29 Juni 2016, 08:48:11
...
Seit heute 02:20 geht WhatsApp nicht mehr, nach Anmeldeversuch immer wieder disconnect.
...
Sieht bei mir seit kurz nach 2 Uhr auch so aus, "Error: not-authorized"
Ein Update auf die aktuelle Version von yowsup hat nicht geholfen und in den Issues auf github scheint es auch noch nichts hierzu zu geben (ist ja grad mal seit ein paar Stunden so).

Hab mir jetzt TelegramBot eingerichtet und bin positiv überrascht wie einfach das ging. Ist zwar eine App mehr auf dem Handy, aber wie man hier so liest, ist das zuverlässiger und einfacher. Jetzt muss ich ein paar notifies anpassen heute Abend, aber das ist nur Copy&Paste.

heinzfo

#1271
Es läuft wieder  :)

Das habe ich gemacht.

Folgende Schritte aus dem fhem wiki http://www.fhemwiki.de/wiki/Yowsup

1. möglicherweise nicht notwendig!

sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade
sudo apt-get install python-soappy python-dateutil python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install python-axolotl


2. yowsup update

cd /opt
sudo rm master.zip
sudo mv yowsup-master yowsup-master-alt
sudo wget -N https://github.com/tgalal/yowsup/archive/master.zip
#alternativ sudo wget https://github.com/jlguardi/yowsup/archive/master.zip (Stand März 2016 aktueller)
sudo unzip master.zip


3. axolotl update

cd /opt/fhem/.yowsup
sudo wget https://github.com/tgalal/python-axolotl/archive/master.zip
sudo unzip master.zip
cd python-axolotl-master
sudo python setup.py install


4. Raspberry reboot

sudo reboot


Beste Grüße
Heinz

ChrisK

Zitat von: heinzfo am 29 Juni 2016, 12:17:01
Es läuft wieder  :)

Das habe ich gemacht.
...
Das waren die Schritte, die ich auch gemacht habe, außer die letzten beiden Punkt (python-axolotl und reboot). Das habe ich jetzt nachgeholt, aber ich bleibe weiterhin "not-authorized".

Freibeuter


VB90

ich kann zwar wieder connecten, bekomme aber folgende Fehlermeldung:

Zitat2016.06.29 18:00:54.956 4: WhatsApp: parse: Auth: Logged in!
2016.06.29 18:00:54.973 4: WhatsApp: parse:
[connected]:[connected]:[connected]:
ERROR:yowsup.layers.interface.interface:Stream Error type: xml-not-well-formed
{'xml-not-well-formed': None}

INFO:yowsup.layers.interface.interface:Initiating reconnect
2016.06.29 18:00:55.701 4: WhatsApp: parse: general: Disconnected: Requested
[connected]:
Man muss das Rad nicht neu erfinden, nur wissen wie es gedreht wird.