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

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

Vorheriges Thema - Nächstes Thema

otto

Hallo wieder einmal  :-[
hab noch mal alles upgedatet aber es kommt wieder der Fehler ?
2019.05.05 18:51:00 3: WhatsApp: Disconnected
2019.05.05 18:51:00 3: WhatsApp: read: end of file reached while sysread
2019.05.05 18:51:10 1: PERL WARNING: Use of uninitialized value $home in concatenation (.) or string at ./FHEM/32_yowsup.pm line 171.
2019.05.05 18:51:10 2: WhatsApp: setting $HOME to
2019.05.05 18:51:10 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos --config-phone 4910000000 --yowsup
Traceback (most recent call last):
  File "/opt/yowsup-master/yowsup-cli", line 679, in <module>
    if not parser.process():
  File "/opt/yowsup-master/yowsup-cli", line 546, in process
    super(DemosArgParser, self).process()
  File "/opt/yowsup-master/yowsup-cli", line 206, 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.05 18:51:33 3: WhatsApp: sending /disconnect
2019.05.05 18:51:33 3: WhatsApp: Disconnected
2019.05.05 18:51:34 3: WhatsApp: read: end of file reached while sysread
2019.05.05 18:51:44 1: PERL WARNING: Use of uninitialized value $home in concatenation (.) or string at ./FHEM/32_yowsup.pm line 171.
2019.05.05 18:51:44 2: WhatsApp: setting $HOME to
2019.05.05 18:51:44 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos --config-phone 4917000000 --yowsup
2019.05.05 18:51:44 3: WhatsApp: sending /disconnect
2019.05.05 18:51:44 3: WhatsApp: Disconnected

hier noch die Rechte von Fhem

pi@raspberrypi:~ $  ls -lha /opt/fhem
insgesamt 700K
drwxrwxrwx 12 fhem dialout 4,0K Mai  4 23:38 .
drwxr-xr-x  6 root root    4,0K Mai  5 15:21 ..
-rw--w--w-  1 fhem dialout  321 Mai  3 23:45 .bash_history
-rw-rw-rw-  1 fhem dialout 284K Mai  5 18:41 CHANGED
drwxrwxrwx  3 fhem dialout 4,0K Mai  4 14:13 .config
-rw-rw-rw-  1 fhem dialout  39K Mai  4 13:10 configDB.pm
drwxrwxrwx 46 fhem dialout 4,0K Aug 25  2016 contrib
drwxrwxrwx  3 fhem dialout 4,0K Jan  4  2016 demolog
drwxrwxrwx  4 fhem dialout 4,0K Nov 12  2017 docs
-rwxrwxrwx  1 fhem dialout   50 Feb  3  2017 emsmessages.classdef
drwxrwxrwx  6 fhem dialout  32K Mai  5 18:41 FHEM
-rw-rw-rw-  1 fhem dialout  51K Mai  4 22:59 fhem.cfg
-rw-rw-rw-  1 fhem dialout  25K Mai  5 18:41 fhem.cfg.demo
-rwxrwxrwx  1 fhem dialout 154K Mai  5 18:41 fhem.pl
drwxrwxrwx  2 fhem dialout  12K Mai  3 11:11 log
-rw-rw-rw-  1 fhem dialout  41K Mai  5 18:41 MAINTAINER.txt
-rw-rw-rw-  1 fhem dialout  935 Nov 15  2015 README_DEMO.txt
drwxrwxrwx  7 fhem dialout 4,0K Dez 17 16:19 restoreDir
drwxrwxrwx  2 fhem dialout 4,0K Mär 28  2016 unused
drwxrwxrwx  9 fhem dialout 4,0K Jan  4  2016 www
drwxrwxrwx  5 fhem dialout 4,0K Mai  5 15:23 yowsup
pi@raspberrypi:~ $


Package                   Version
------------------------- -----------
appdirs                   1.4.3
asn1crypto                0.24.0
cffi                      1.12.3
consonance                0.1.2
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
transitions               0.6.9
wheel                     0.29.0
wstools                   0.4.3
yowsup                    3.2.0
pi@raspberrypi:~ $






Gruß Otto
Fhem 1 wire Adapter mit FT232RL&DS2480B Raspberry PI HMLAN HM485LAN HM-LC-Sw4-PCB   HMW-IO-12-SW7-DR Funkhandsender
FRITZ!Powerline 546E

Christian S.

Bei der Anmeldung am WhatsApp-Server bekomme ich immer folgende Meldung:

registration: error: unrecognized arguments: --config-phone 49XXX --config-cc 49

Was mache ich falsch?

Gruß
Christian
FHEM auf NUC, CUL V3 868 MHz
DECT200 Steckdosen
MAX Heizungsthermostate, Wandthermostate, Fensterkontakte
Homematic
Netatmo

heinzfo

Meinst Du mit Anmelden das Registrieren um den Verifikation Code zu erhalten?

Ich musste das so machen:

sudo su - fhem
cd /opt/yowsup-master/
python yowsup-cli registration --requestcode sms --config-phone 49171xxx --config-cc 49
python yowsup-cli registration --config-phone 49171xxx -R 123456


Dann eine Nachricht senden:

python /opt/yowsup-master/yowsup-cli demos --config-phone 49171xxx -s 49151xxx "Das ist ein Test"


Wenn die Nachricht erfolgreich gesendet wurde und beim Empfänger ankommt, geht es auch mit FHEM.

Grüße
Heinz

Christian S.

Ja, mit anmelden meine ich registrieren
Ich hatte vorher für die Registrierung folgendes eingegeben:

yowsup-cli registration --requestcode voice --config-phone 49XXX --config-cc 49

dann kam immer die Meldung:

registration: error: unrecognized arguments: --config-phone 49XXX --config-cc 49

wenn ich zur Registrierung eingebe:

python yowsup-cli registration --requestcode sms --config-phone 49XXX --config-cc 49

kommt folgende Meldung:

Traceback (most recent call last):
  File "yowsup-cli", line 5, in <module>
    from yowsup.env import YowsupEnv
  File "/opt/yowsup-master/yowsup/env/__init__.py", line 1, in <module>
    from .env import YowsupEnv
  File "/opt/yowsup-master/yowsup/env/env.py", line 17, in <module>
    class YowsupEnv(with_metaclass(YowsupEnvType, object)):
  File "/usr/lib/python2.7/abc.py", line 87, in __new__
    cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases


Gruß
Christian

FHEM auf NUC, CUL V3 868 MHz
DECT200 Steckdosen
MAX Heizungsthermostate, Wandthermostate, Fensterkontakte
Homematic
Netatmo


heinzfo

Hallo

Ich habe heute auf yowsup 3.1.0 > 3.2.0 und consonance 0.1.1 > 0.1.2 aktualisiert.

Jetzt klappt es mit den Zeilenumbruch nicht mehr.
Auch das hier hilft nicht mehr weiter https://github.com/tgalal/yowsup/issues/539

Gibt es schon eine Lösung?

Grüße
Heinz

Christian S.

Ich habe die yowsup-cli aus dem Verzeichniss /usr/local/bin/ entfernt und bekomme trotzdem die gleiche Meldung:

Traceback (most recent call last):
  File "yowsup-cli", line 5, in <module>
    from yowsup.env import YowsupEnv
  File "/opt/yowsup-master/yowsup/env/__init__.py", line 1, in <module>
    from .env import YowsupEnv
  File "/opt/yowsup-master/yowsup/env/env.py", line 17, in <module>
    class YowsupEnv(with_metaclass(YowsupEnvType, object)):
  File "/usr/lib/python2.7/abc.py", line 87, in __new__
    cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases


Gruß
Christian
FHEM auf NUC, CUL V3 868 MHz
DECT200 Steckdosen
MAX Heizungsthermostate, Wandthermostate, Fensterkontakte
Homematic
Netatmo

luetty

#1747
Zitat von: heinzfo am 05 Mai 2019, 21:48:55
Hallo

Ich habe heute auf yowsup 3.1.0 > 3.2.0 und consonance 0.1.1 > 0.1.2 aktualisiert.

Jetzt klappt es mit den Zeilenumbruch nicht mehr.
Auch das hier hilft nicht mehr weiter https://github.com/tgalal/yowsup/issues/539

Gibt es schon eine Lösung?

Grüße
Heinz

Bei mir funktionierte das auch immer nur, durch anpassen der message_text.py (gemäß Deinem Link).
Dort mußt Du die Syntax aber ändern:

self.conversation = body.replace("###","\n")

anstatt

self.body = body.replace("###","\n")

Bei mir funktioniert's. Mal schauen wie lange, da dort ein Kommentar "obsolete" enthalten ist.

heinzfo


piet_pit

Hallo Zusammen, Hallo heinzfo,
ich habe jetzt meinen separaten Pi-Homebridgeserver neu aufgesetzt und dort Stretch aufgespielt. Danach das Wiki von Yowsup abgearbeitet und siehe da, es ist geschmeidig durchgelaufen und Yowsup klappt.

Da wohl Yowsup nicht Remote läuft, muss ich wohl notgedrungen jetzt auch meinen FHEM-Server neu aufsetzen und dort auch Stretch und danach dort Yowsup aufspielen, scheint mir trotz Aufwand wohl der beste Weg.

Was meint ihr?
viele Gruesse
Pit
FHEM 6.0 auf Raspberry Pi 3, Rasbian-Stretch
FRITZ!Box 7490
HM-Mod-RPI-PCB
JeeLink
CUNO 1.47

JoWiemann

Hallo,

Tarek hat die yowsup Version 3.2.1  und die python-axolotl Version 0.2.1 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.1] 2019-05-07

Changed
Updated python-axolotl to 0.2.1
Fixed encoding errors when communicating in group
Fixed messages not delivered to groups, showing a "Waiting for this message, this may take a while"
Fixed bug where getKeys for multiple jids would invoke the callback multiple times
Fixes in RequestUpload and media classes in preparation for media sending

Added
More log output in AxolotlSendLayer

Removed
./.

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

luetty

#1751
Zitat von: JoWiemann am 07 Mai 2019, 15:01:21
Hallo,

Tarek hat die yowsup Version 3.2.1  und die python-axolotl Version 0.2.1 veröffentlicht. (Also bitte beide updaten)

Grüße Jörg

Mit den neuen Versionen gibts bei mir leider Probleme!
fhem an WhatsApp geht weiterhin.

Aber WhatsApp an fhem funktioniert nicht mehr. Es sieht aus, als wird die Nachricht nicht entschlüsselt.

Also vorsicht, wer updatet - macht ne Sicherheitskopie der beiden Verzeichnisse!
Ich bin jetzt erstmal zurück auf die alte Version(en).

Oder funktioniert es bei jemanden?!?  :o

heinzfo

#1752
Hallo luetty

Das selbe Verhalten habe ich nach dem Update auch.

Wenn ich mehrmals das selbe keyword an FHEM sende, ist das Reading message immer unterschiedlich.

Grüße
Heinz

JoWiemann

Hallo,

Tarek hat die yowsup Version 3.2.2  und die python-axolotl Version 0.2.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.2] 2019-05-07

Changed
Updated python-axolotl to 0.2.2, fixes possible variable referenced before assignment error

Added
./.

Removed
./.

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

JoWiemann

Zitat von: heinzfo am 07 Mai 2019, 18:09:53
Hallo luetty

Das selbe Verhalten habe ich nach dem Update auch.

Wenn ich mehrmals das selbe keyword an FHEM sende, ist das Reading message immer unterschiedlich.

Grüße
Heinz

Hallo,

steht etwas im Log, dass hilfreich sein könnte?

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