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

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

Vorheriges Thema - Nächstes Thema

thaliondrambor

Ich hatte auch seit ein paar Tagen Probleme mit WhatsApp. Erst konnte er gar nichts mehr senden und Empfangen, was ja auch zu erwarten war, da WhatsApp ein Update gemacht hatte. (Auch auf meinem Handy kam die Nachricht, dass ich noch X Tage Zeit habe für ein Update und ich sonst WhatsApp nicht weiter nutzen kann.)

Ich hatte zu erst vor ein paar Tagen ein paar Codezeilen geändert (von Github), da lief es zwar, aber es kamen oft komische Zeichen an (a's, x's, ?).
Heute habe ich mich etwas länger damit beschäftigt und nach den Anleitungen aus diesem Forum und Github alles wieder einwandfrei zum Laufen gebracht.

Wenn yowsup wie im Wiki beschrieben installiert wurde, dann folgende Anweisung zum Updaten:

Neueste Version von yowsup installieren:
cd /opt
sudo rm master.zip
sudo mv yowsup-master yowsup-master-old
sudo wget https://github.com/jlguardi/yowsup/archive/master.zip
sudo unzip master.zip


Anschließende müssen noch die alten Verschlüsselungs-Schlüssel gelöscht werden, damit auch mit den bestehenden "Kontakte" geschrieben werden kann:
cd /opt/fhem/.yowsup
ls
rm -r 49************


Für die Sternchen muss die Telefonnummer(n) die ihr über "ls" seht eingegeben werden, um die Schlüssel zu löschen.
Anschließend den Server neustarten.

Jetzt noch eine Nachricht an die zuvor gelöschten Nummer senden, damit wieder neue Schlüssel angelegt werden.

Seit dem geht alles wieder ausnahmslos bei mir.

satprofi

Zitat von: rr725 am 26 März 2016, 09:15:17
schade.... als ich mit whatsapp anfing war ich happy als es in fhem funktionierte. es war, so fand ich, schon eine herausforderung, die ganzen anleitungen durchzuwühlen. doch leider ist es ziemlich zuzuverlässig.
parallel habe ich noch pushbullet laufen und werde nun alles was ich auf whatsapp umgestellt hatte wieder auf pushbullet "umbiegen".  dies ist recht pflegeleicht und funktioniert einfach.
Hallo. Werd mich auch mit alternativen befassen bevor ich meine simcard verlängere.

Sent from my OPO

gruss
-----------------------------------------------------------------------
beelink miniPC - Fhem 6.x CUL 868, FS20, NetIO230 CUL 433
HMLAN, HM-CC-RT-DN,Homematic Actoren,LD382A,Telegram

Ma_Bo

Schaut euch mal Telegram an, das läuft super, ich habe jetzt alles erfolgreich von WhatsApp auf Telegram umgestellt.
NUC mit FHEM, HM Heizungsthermostate, HM Wandthermostate, Intertechno Funksteckdosen, 10" Tablet als Wanddisplay, KeyMatic, Fensterkontakte, Fensterkontakte umgebaut als Wassermelder und Briefkastenmelder, Aussenthermostat, Anwesenheitssteuerung über Fritz Box, Google Home usw. usw.

Quoti

Halli Hallo, nach unzähligen Probieren und Versuchen (ohne hier ins Forum geschaut zu haben) wo dann gar nihcts funktioniert hat, bin ich heute auf diesen Thread gestoßen.
Durch die jlguardi Version war es mir nun möglich mich wieder zu registrieren(Festnetznummer, klappte auch wunderbar, nur zuletzt ging gar nichts mehr, Versenden auf console brachte not-authorized, neu registrieren brachte old version)
Stand also: jlguardi version, Registrierung klappte, config wurde mit der registrierung angepasst, jedoch bringt ein test versand auf console folgendes:

  File "yowsup-cli", line 323, in <module>
    if not parser.process():
  File "yowsup-cli", line 231, in process
    self.startSendClient()
  File "yowsup-cli", line 271, in startSendClient
    from yowsup.demos import sendclient
  File "/opt/yowsup/yowsup/demos/sendclient/__init__.py", line 1, in <module>
    from .stack import YowsupSendStack
  File "/opt/yowsup/yowsup/demos/sendclient/stack.py", line 2, in <module>
    from .layer import SendLayer
  File "/opt/yowsup/yowsup/demos/sendclient/layer.py", line 1, in <module>
    from yowsup.layers.interface                           import YowInterfaceLayer, ProtocolEntityCallback
  File "/opt/yowsup/yowsup/layers/interface/__init__.py", line 1, in <module>
    from .interface import YowInterfaceLayer, ProtocolEntityCallback
  File "/opt/yowsup/yowsup/layers/interface/interface.py", line 7, in <module>
    from yowsup.layers.axolotl.layer import YowAxolotlLayer
  File "/opt/yowsup/yowsup/layers/axolotl/__init__.py", line 1, in <module>
    from .layer import YowAxolotlLayer
  File "/opt/yowsup/yowsup/layers/axolotl/layer.py", line 26, in <module>
    from axolotl.axolotladdress import AxolotlAddress
ImportError: No module named axolotladdress

Ich habe nun schon mehrfach versucht python-axolotl über pip zu de/neu-installieren, aber es half alles nichts. Ich verzweifele. Bitte, kann mir jmd. helfen?

JoWiemann

Hallo,

hatte das Problem auch. Du musst das hier: https://github.com/tgalal/python-axolotl noch installieren. Geht entsprechend 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

Englishman

Hallo Zusammen,

Yowsup ist eine tolle sache und läuft hoffentlich wieder.
Ich habe nun yowsup durch pushbullet ergänzt, funktioniert gut aber nicht so ellegant wie Yowsup. Der Plugin für Firefox ist Cool. Das hat WhatsApp nicht.
Ich habe etwas bei Github recherchiert.
Die Jungs kämpfen im Moment mit ständige änderung durch WhatsApp und Co. Seitdem ich es nutze gab es 3 oder 4 komplette Zusammenbrüche, weil etwas in der API geändert wurde.
Die neueste Version ist noch die v2.4.48 und funktioniert seit Wochen nicht mehr.
Weiß noch jemand mehr? Daumen hoch.


define DoSendMessage dummy
...
define n_DoSendMessageChangeWa notify DoSendMessage { fhem "set WhatsAppGroup send $EVENT"}
attr n_DoSendMessageChangeWa room _Specials
define n_DoSendMessageChange notify DoSendMessage { fhem "set DoSendMessageService message $EVENT"}
attr n_DoSendMessageChange room _Specials


Gruß

s3bi

Zitat von: JoWiemann am 28 März 2016, 17:34:30
Hallo,

hatte das Problem auch. Du musst das hier: https://github.com/tgalal/python-axolotl noch installieren. Geht entsprechend wie yowsup.

Grüße Jörg

Hall Jörg,

kannst du das vielleicht etwas näher Erklären? Ich habe das gleich Problem wie Quoti.
Ich habe mit

sudo pip install python-axolotl
und
sudo pip install python-axolotl --upgrade

alles auf den neusten Stand gebracht, die Fehlermeldung ist aber nach wie vor die selbe:

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 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 249, 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 26, in <module>
    from axolotl.axolotladdress import AxolotlAddress
ImportError: No module named axolotladdress


heinzfo

Zitat von: s3bi am 29 März 2016, 14:30:48
Hall Jörg,

kannst du das vielleicht etwas näher Erklären? Ich habe das gleich Problem wie Quoti.
Ich habe mit

sudo pip install python-axolotl
und
sudo pip install python-axolotl --upgrade

alles auf den neusten Stand gebracht, die Fehlermeldung ist aber nach wie vor die selbe:

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 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 249, 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 26, in <module>
    from axolotl.axolotladdress import AxolotlAddress
ImportError: No module named axolotladdress

Probier mal das aus Antwort #1124

Gesendet von meinem GT-I9505 mit Tapatalk


heinzfo

Zitat von: heinzfo am 29 März 2016, 16:12:03
Probier mal das aus Antwort #1124

Gesendet von meinem GT-I9505 mit Tapatalk
#1125 ist richtig!
Sorry

Gesendet von meinem GT-I9505 mit Tapatalk


s3bi

Zitat von: heinzfo am 29 März 2016, 16:15:26
#1125 ist richtig!
Sorry

Gesendet von meinem GT-I9505 mit Tapatalk

Du meinst /opt/fhem/.yowsup auf 777 und fhem als owner?

Das habe ich:

pi@raspberrypi:/opt/fhem/.yowsup $ ls -l
total 8
drwxrwxrwx 2 fhem dialout 4096 Mar 29 10:00 497XXXXXXXXXX
drwxrwxrwx 2 fhem dialout 4096 Mar 22 16:02 497XXXXXXXXXX_old


sudo chown fhem -R /opt/fhem/.yowsup
sudo chmod 777 -R /opt/fhem/.yowsup

JoWiemann

Zitat von: s3bi am 29 März 2016, 14:30:48
Hall Jörg,

kannst du das vielleicht etwas näher Erklären? Ich habe das gleich Problem wie Quoti.
Ich habe mit

sudo pip install python-axolotl
und
sudo pip install python-axolotl --upgrade

alles auf den neusten Stand gebracht, die Fehlermeldung ist aber nach wie vor die selbe:

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 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 249, 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 26, in <module>
    from axolotl.axolotladdress import AxolotlAddress
ImportError: No module named axolotladdress



Hallo,

es wird neben den Python Modulen noch eine Lib von tgalal benötigt.

<code>
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
</code>

So hat es bei mir dann funktioniert.

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

s3bi

Zitat von: JoWiemann am 29 März 2016, 19:29:04

Hallo,

es wird neben den Python Modulen noch eine Lib von tgalal benötigt.

<code>
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
</code>

So hat es bei mir dann funktioniert.

Grüße Jörg

Hallo Jörg,

vielen Dank!!!! Das war´s

meyerpr

#1153
Zitat von: Init am 25 März 2016, 16:27:29
nachdem ich wie oben beschrieben die Neuinstallation durchgeführt haben, bekomme ich folgenden Fehler:
python yowsup-cli demos -c /opt/yowsup-config/yowsup.config -s 4917XXXXXXXX "Hallo!"
INFO:yowsup.layers.axolotl.layer:Axolotl layer is generating keys


Habe es eben frisch mit dem neuesten Repo wie Init eine Seite vorher beschrieben hat installiert und konnte es per Voice aktivieren. Bekomme aber den selben Fehler...


pi@raspi /opt/yowsup-master $ python yowsup-cli demos -c /opt/yowsup-config/yowsup.config -s 49xxxxxxxxxx "Test"
INFO:yowsup.layers.axolotl.layer:Axolotl layer is generating keys
Traceback (most recent call last):
  File "yowsup-cli", line 323, in <module>
    if not parser.process():
  File "yowsup-cli", line 231, in process
    self.startSendClient()
  File "yowsup-cli", line 280, in startSendClient
    stack.start()
  File "/opt/yowsup-master/yowsup/demos/sendclient/stack.py", line 31, in start
    self.stack.loop()
  File "/opt/yowsup-master/yowsup/stacks/yowstack.py", line 195, 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 88, in handle_read
    self.receive(data)
  File "/opt/yowsup-master/yowsup/layers/network/layer.py", line 96, in receive
    self.toUpper(data)
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/opt/yowsup-master/yowsup/layers/stanzaregulator/layer.py", line 29, in receive
    self.processReceived()
  File "/opt/yowsup-master/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived
    self.toUpper(oneMessageData)
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/opt/yowsup-master/yowsup/layers/auth/layer_crypt.py", line 65, in receive
    self.toUpper(payload)
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/opt/yowsup-master/yowsup/layers/coder/layer.py", line 35, in receive
    self.toUpper(node)
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/opt/yowsup-master/yowsup/layers/logger/layer.py", line 14, in receive
    self.toUpper(data)
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/opt/yowsup-master/yowsup/layers/axolotl/layer.py", line 130, in receive
    if not self.processIqRegistry(protocolTreeNode):
  File "/opt/yowsup-master/yowsup/layers/__init__.py", line 155, in processIqRegistry
    successClbk(protocolTreeNode, originalIq)
  File "/opt/yowsup-master/yowsup/layers/axolotl/layer.py", line 188, in <lambda>
    self._sendIq(entity, lambda a, b: self.onGetKeysResult(a, b, self.processPendingMessages), self.onGetKeysError)
  File "/opt/yowsup-master/yowsup/layers/axolotl/layer.py", line 628, in onGetKeysResult
    sessionBuilder.processPreKeyBundle(preKeyBundle)
  File "/usr/local/lib/python2.7/dist-packages/axolotl/sessionbuilder.py", line 166, in processPreKeyBundle
    .setOurIdentityKey(self.identityKeyStore.getIdentityKeyPair())\
  File "/opt/yowsup-master/yowsup/layers/axolotl/store/sqlite/liteaxolotlstore.py", line 19, in getIdentityKeyPair
    return self.identityKeyStore.getIdentityKeyPair()
  File "/opt/yowsup-master/yowsup/layers/axolotl/store/sqlite/liteidentitykeystore.py", line 31, in getIdentityKeyPair
    publicKey, privateKey = result
TypeError: 'NoneType' object is not iterable


Nur, was habe ich übersehen? Die Berechtigungen von /opt/fhem/.yowsup habe ich angepasst.

Init

Hab mal gerade geschaut, ich habe wohl Reversion 951 geladen und nun sind wir mittlerweile bei 1051.

Wenn interesse besteht, dann kann ich dir genau diese Version zur Verfügung stellen oder du lädst du über git runter.

VG
Marc