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

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

Vorheriges Thema - Nächstes Thema

heinzfo

#1725
Jetzt habe ich es auf einer Mobilnetznummer registriert und es geht wieder!

Auf einer zweiten RPi/Fhem Installation funktioniert es nun auch mit einer weiteren Mobilnetznummer.

Zwei Festnetznummern funktionierten einige Jahre problemlos, mal sehen wie lange WhatsApp/yowsup online bleibt  ;)

Jamo

So, nachdem mein Whatsapp mit meiner Mobilnummer seit dem 29.04.2019 auch nicht mehr funktionierte, habe ich ebenso die folgende Fehlermeldung wie bei user 'heinzfo' bekommen,
nämlich
....
status: fail
reason: blocked
login: 49xxx

Als ich dann inder WhatsApp App im iPhone nachschaue, bekam ich folgende Meldung: "Your Phone numer +49 xxxx xxxxxxx is banned from using WhatsApp. Please contact customer support for assistance."

Jetzt habe ich nochmal eine Festnetznummer mit sudo ./yowsup-cli registration --requestcode voice --config-phone 49xxxxxxxxxx --config-cc 49 eingerichtet, jetzt geht WhatsApp wieder.
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence

RadioJames

@piet_pit

Zitat..bist du hier weiter gekommen, ich habe das gleiche Problem..

Hallo Pit,

trotz misslungener readline Installation funktioniert der Rest.

Grüße James
There are 10 kind of people. Those who understand binary and those who don't.

heinzfo

Oha, es tut sich was in Richtung medien [feat] add alias methods for enc video, audio, doc
https://github.com/tgalal/yowsup kann das in 32_yowsup.pm verarbeitet werden?

Grüße
Heinz

Jamo

Wegen dem Fehler während der readline installation, bei mir hat jetzt folgendes funktioniert:

sudo apt-get install libncurses5-dev libffi-dev
sudo pip install gnureadline==6.3.3
sudo pip install readline


Ich weiss allerdings nicht ob man die gnureadline installation braucht. Nach diesen Schritten ist jedenfalls die readline installation bei mir fehlerfrei durchgelaufen.
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence

Holger S

Hallo,

hat jemand schon das Senden an einer Gruppe versucht?
Funktioniert bei mir nicht mehr.

Danke Holger

otto

Gibts schon eine Lösung für meinen Fehler oder weiß einer was fehlt?

pi@raspberrypi:/opt/yowsup-master $ sudo ./yowsup-cli registration --requestcode sms --config-phone 4917ooooooooo --config-cc 49
Traceback (most recent call last):
  File "./yowsup-cli", line 6, in <module>
    from yowsup.config.manager import ConfigManager
  File "/opt/yowsup-master/yowsup/config/manager.py", line 4, in <module>
    from yowsup.config.v1.serialize import ConfigSerialize
  File "/opt/yowsup-master/yowsup/config/v1/serialize.py", line 8, in <module>
    from consonance.structs.keypair import KeyPair
ImportError: No module named consonance.structs.keypair
pi@raspberrypi:/opt/yowsup-master $

Versionen sind Aktuell
Package                   Version
------------------------- -----------
appdirs                   1.4.3
asn1crypto                0.24.0
cffi                      1.12.3
cryptography              2.6.1
defusedxml                0.4.1
dissononce                0.34.3
enum34                    1.1.6
gnureadline               6.3.3
idna                      2.2
ipaddress                 1.0.17
keyring                   10.1
keyrings.alt              1.3
pip                       19.1
protobuf                  3.8.0rc1
pyasn1                    0.1.9
pycparser                 2.19
pycrypto                  2.6.1
pygobject                 3.22.0
python-axolotl            0.1.42
python-axolotl-curve25519 0.4.1.post2
python-dateutil           2.5.3
pyxdg                     0.25
RPi.GPIO                  0.6.5
SecretStorage             2.3.1
setuptools                41.0.1
six                       1.10.0
SOAPpy                    0.12.22
wheel                     0.29.0
wstools                   0.4.3


Gruß Otto

JoWiemann

Hallo Otto,

Deine Module mögen aktuell sein. Es fehlt aber das Modul consonance.



Gesendet von iPhone mit Tapatalk

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

RadioJames

WhatsApp läuft wieder prima, allerdings wird mir das Log zugemüllt:
W 2019-05-04 10:55:41,987 yowsup.layers.protocol_ib.layer - ignoring edge_routing ib node for now
W 2019-05-04 11:10:42,996 yowsup.layers.protocol_ib.layer - ignoring edge_routing ib node for now
W 2019-05-04 11:25:43,987 yowsup.layers.protocol_ib.layer - ignoring edge_routing ib node for now
W 2019-05-04 11:40:44,983 yowsup.layers.protocol_ib.layer - ignoring edge_routing ib node for now
W 2019-05-04 11:55:45,981 yowsup.layers.protocol_ib.layer - ignoring edge_routing ib node for now
W 2019-05-04 12:10:46,980 yowsup.layers.protocol_ib.layer - ignoring edge_routing ib node for now
...


Wenn ich das "W" am Anfang richtig interpretiere, ist es "nur" eine Warnung. Ist aber lästig, weil es alle 15 Minuten kommt.

Hat jemand einen Tipp, wie das Problem gelöst werden kann?

Grüße James
There are 10 kind of people. Those who understand binary and those who don't.

otto

Danke JoWiemann nun geht schon mal über Console aber Whatsapp in Fhem geht nicht Online ?

2019.05.04 12:50:11 3: WhatsApp: sending /disconnect
2019.05.04 12:50:11 3: WhatsApp: Disconnected
2019.05.04 12:50:11 3: WhatsApp: read: end of file reached while sysread
2019.05.04 12:50:21 1: PERL WARNING: Use of uninitialized value $home in concatenation (.) or string at ./FHEM/32_yowsup.pm line 171.
2019.05.04 12:50:21 2: WhatsApp: setting $HOME to
2019.05.04 12:50:21 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos -c /opt/yowsup-config/yowsup.config --yowsup
W 2019-05-04 12:50:24,948 yowsup.config.manager - load_path couldn't find the path: /opt/yowsup-config/yowsup.config
E 2019-05-04 12:50:24,963 yowsup.config.manager - Could not find a config for username=/opt/yowsup-config/yowsup.config, paths checked: /opt/yowsup-config/yowsup.config/config.json:/opt/yowsup-config/yowsup.config/config.yo
Traceback (most recent call last):
  File "/opt/yowsup-master/yowsup-cli", line 572, in <module>
    if not parser.process():
  File "/opt/yowsup-master/yowsup-cli", line 440, in process
    super(DemosArgParser, self).process()
  File "/opt/yowsup-master/yowsup-cli", line 253, in process
    internal_config = self._config_manager.load(self._config.phone)
  File "/opt/yowsup-master/yowsup/config/manager.py", line 40, in load
    config_dir = StorageTools.getStorageForPhone(username)
  File "/opt/yowsup-master/yowsup/common/tools.py", line 99, in getStorageForPhone
    return StorageTools.constructPath(phone + '/')
  File "/opt/yowsup-master/yowsup/common/tools.py", line 92, in constructPath
    os.makedirs(os.path.dirname(fullPath))
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/.config'
2019.05.04 12:50:25 3: WhatsApp: sending /disconnect


Gruß Otto

heinzfo

evtl. hilft

cd  /opt/fhem
sudo chown -R fhem:dialout .config

otto

Hab ich versucht aber es kommt immer noch eine Fehlermeldung die leider auch nicht verstehe. ???
019.05.04 19:34:14 2: WhatsApp: setting $HOME to
2019.05.04 19:34:14 2: WhatsApp: starting yoswup-cli: /opt/local/bin/yowsup-cli demos -c /root/yowsup-config --yowsup
2019.05.04 19:34:14 1: PERL WARNING: Can't exec "/opt/local/bin/yowsup-cli": Datei oder Verzeichnis nicht gefunden at ./FHEM/32_yowsup.pm line 177.
2019.05.04 19:34:14 1: exec failed
2019.05.04 19:34:14 1: set the cmd attribut to: <path1>/yowsup-cli demos -c <path2>/config.yowsup --yowsup
2019.05.04 19:34:14 3: WhatsApp: sending /disconnect
2019.05.04 19:34:14 3: WhatsApp: Disconnected
2019.05.04 19:34:14 3: WhatsApp: read: end of file reached while sysread 



Gruß otto

heinzfo

Dort sollte yowsup-cli nicht aufgerufen werden.

Can't exec "/opt/local/bin/yowsup-cli": Datei oder Verzeichnis nicht gefunden


sondern in /opt/fhem/yowsup-master

otto

Hallo hab ich auch gemacht Danke , aber glaube das wird wieder eine unendliche Geschichte  :-[
2019.05.04 23:29:22 1: PERL WARNING: Use of uninitialized value $home in concatenation (.) or string at ./FHEM/32_yowsup.pm line 171.
2019.05.04 23:29:22 2: WhatsApp: setting $HOME to
2019.05.04 23:29:22 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos --config-phone 4910000000000 --yowsup
Traceback (most recent call last):
  File "/opt/yowsup-master/yowsup-cli", line 572, in <module>
    if not parser.process():
  File "/opt/yowsup-master/yowsup-cli", line 440, in process
    super(DemosArgParser, self).process()
  File "/opt/yowsup-master/yowsup-cli", line 198, in process
    self._config = self._config_manager.load(config_phone)
  File "/opt/yowsup-master/yowsup/config/manager.py", line 40, in load
    config_dir = StorageTools.getStorageForPhone(username)
  File "/opt/yowsup-master/yowsup/common/tools.py", line 99, in getStorageForPhone
    return StorageTools.constructPath(phone + '/')
  File "/opt/yowsup-master/yowsup/common/tools.py", line 92, in constructPath
    os.makedirs(os.path.dirname(fullPath))
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/.config'
2019.05.04 23:29:26 3: WhatsApp: sending /disconnect
2019.05.04 23:29:26 3: WhatsApp: Disconnected
2019.05.04 23:29:26 3: WhatsApp: read: end of file reached while sysread

wo will er hier hinschreiben und warum ?

Gruß Otto

JoWiemann

Hallo,

Tarek hat die yowsup Version 3.2.0  und die consonance Version 0.1.2 veröffentlicht. (Also bitte beide updaten)

Hier das change log:

The format is based on Keep a Changelog, and this project (kinda) adheres to Semantic Versioning.
[3.2.0] 2019-05-04
Changed
Set min protobuf version to fix an error
Use WhatsApp version set by env in noise layer
Fixed error when mcc,mnc and fdid were missing from config
Don't crash when received an unrecognized ib node
Don't crash when received an unrecognized media type and send receipt
Don't crash when received an unrecognized notification type and send receipt
Asyncore is now used as default ConnectionDispatcher
Received protobuf messages are now handled in upper layers rather than Axolotl

Added
MediaCipher for encrypting and decrypting media files
"media" yowsup-cli action with encrypt and decrypt media commands
Receive Audio, Video, Image, Document, Contact, Location, GIF, URL message support
MediaSink demo, access by yowsup-cli demos --mediasink

Removed
unused -w flag from yowsup-cli config

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