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

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

Vorheriges Thema - Nächstes Thema

JoWiemann

Hallo,

ich habe ein entsprechendes issue (https://github.com/tgalal/yowsup/issues/2727) aufgemacht. In der 3.2.2 das selbe Verhalten.

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

#1756
Zitat von: JoWiemann am 07 Mai 2019, 18:22:15
Hallo,

ich habe ein entsprechendes issue (https://github.com/tgalal/yowsup/issues/2727) aufgemacht. In der 3.2.2 das selbe Verhalten.

Grüße Jörg
grad noch rechtzeitig  8), wollte soeben anfangen  ;)

DANKE!

heinzfo

#1757
WhatsApp auf verbose 5

Ich sende das keyword Ip an FHEM

Nach 2019.05.07 18:20:18 4: WhatsApp: parse: Iq: im Code unten, kommt abwechselnd die Smartphone Nummer und die Yowsup Nummer.

Die Antwort Wrong Command!, FHEM > Smartphone kommt richtig an.


2019.05.07 18:20:17 4: WhatsApp: parse:
[49151xxx@s.whatsapp.net(07-05-2019 18:20)]:[Ip]    095614D82653DA2AF571C99E5677AC81
Message 095614D82653DA2AF571C99E5677AC81: Sent delivered receipt and Read
[connected]:

2019.05.07 18:20:17 3: WhatsApp: sending /message send 49151xxx '*Wrong Command!*'
2019.05.07 18:20:17 3: HeinzMobil: commands not allowed
2019.05.07 18:20:17 4: WhatsApp: parse: [connected]:
2019.05.07 18:20:18 4: WhatsApp: parse:
Sent: 1557246017-3
[connected]:

2019.05.07 18:20:18 4: WhatsApp: parse: Iq:
ID: 4
Type: result
from: 49171xxx@s.whatsapp.net


2019.05.07 18:21:04 4: WhatsApp: parse: CHATSTATE:
State: composing
From: 49151xxx@s.whatsapp.net


2019.05.07 18:21:06 4: WhatsApp: parse: CHATSTATE:
State: paused
From: 49151xxx@s.whatsapp.net


2019.05.07 18:21:08 4: WhatsApp: parse: Iq:
ID: 5
Type: result
from: 49171xxx@s.whatsapp.net


2019.05.07 18:21:20 4: WhatsApp: parse: CHATSTATE:
State: composing
From: 49151xxx@s.whatsapp.net


2019.05.07 18:21:20 4: WhatsApp: parse: CHATSTATE:
State: paused
From: 49151xxx@s.whatsapp.net


2019.05.07 18:21:58 4: WhatsApp: parse: Iq:
ID: 6
Type: result
from: 49171xxx@s.whatsapp.net

heinzfo

#1758
#Update Es ist repariert! Please install yowsup-master new :-)

PS: tgalal repariert es gerade :-) https://github.com/tgalal/yowsup/issues/2727

Hallo

Das keyword Ip kommt schon an, siehe [Ip] im CodeTag FHEM reagiert aber auf den nachfolgenden String.

Das keyword Rpi habe ich im funktionsfähigen Zustand an FHEM gesendet.
Hier ist der Hash im [] und Rpi kommt danach

2019.05.06 18:16:14 4: WhatsApp: parse:
[49171xxx@s.whatsapp.net(06-05-2019 18:16)]:[48558C013DAC7E2D1FA0A9AD07A87625] Rpi
Message 48558C013DAC7E2D1FA0A9AD07A87625: Sent delivered receipt and Read
[connected]:


Grüße
Heinz

luetty

#1759
good news: tgalal hat den echo-client entsprechend angepasst.

Funktioniert jetzt bei mir  ;D ;D ;D ;D


...ging ja ratz-fatz - danke an Jörg & Heinz, in erster Linie aber natürlich an tgalal  8)

heinzfo

Ich möchte mich mal für die wirklich tolle Arbeit von tgalal und Andre BEDANKEN!!!

Ohne die Beiden wäre es an dieser Stelle zanpenduster  ;)

Und DANKE an alle die sich immer wieder um das Modul/Wiki und den Thread kümmern  ;)

Beste Grüße
Heinz

JoWiemann

Hallo,

ich habe das Wiki nun auch für Python 3.5 angepasst. Bitte einmal quer lesen, ob ich etwas vergessen habe.

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

MaDu89

Hey Leute, mit yowsup lief alles wunderbar durch und mit fhem auch kein Problem.

hab viel schon rumgelesen aber hänge noch an paar Stellen fest....vielleicht kann mir jemand helfen.
ich kann Nachrichten senden/empfangen.... kein Problem (prima, ist auch meine Hauptfunktion natürlich)

1. Ich hätte gerne aber auch das Bilder senden bzw. empfangen (in welchen Speicherpfad beim Empfangen?) und beim senden stürzt das Modul ab und ich muss reconnecten. Rechte sind alle korrekt gesetzt. Als befehl hab ich z.B.

set WhatsApp <Telefonnummer> image /profile setPicture /opt/fhem/fhem_logo.png


2. Bekomme ich das Profilbild nicht geändert mit:

set WhatsApp raw /profile setPicture /opt/fhem/fhem_logo.png


Vielen dank schonmal für die Unterstützung und ein großen Dank an die Entwickler! Ich bin begeisterter FHEM-Nutzer

RPi 3 B+mit FHEM, PiHole, PiVPN, Homatic, ESP8266, ESP32 Cam, Sonoff, Sonoff Pow, Shelly, 433MHz Funksteckdosen, ETA Pelletheizung, IPCam, RGB Controller LK35, MediaServer, Volumio, NAS/Backup, Homebot LG, FRITZ!Box 7560, Telegram, Dot-Matrix MAX 7219, SmartMirror, 3D-Drucker...seit 2017 stabil!


MaDu89

Die ' ' hab ich auch schon gesetzt. Ich bin alle Möglichkeiten durch, wahrscheinlich liegt es an einer anderen Stelle das Problem. Wollte nur mal gern wissen ob es bei anderen alles funktioniert...dann geh ich selbst wieder auf Problemlösung. Oftmals verzweifelt man ja die ersten 1-2 Tage daran. Gibt auf und dann am 3. Tag läuft die Sache  8)
RPi 3 B+mit FHEM, PiHole, PiVPN, Homatic, ESP8266, ESP32 Cam, Sonoff, Sonoff Pow, Shelly, 433MHz Funksteckdosen, ETA Pelletheizung, IPCam, RGB Controller LK35, MediaServer, Volumio, NAS/Backup, Homebot LG, FRITZ!Box 7560, Telegram, Dot-Matrix MAX 7219, SmartMirror, 3D-Drucker...seit 2017 stabil!

heinzfo

Profilbild hochladen hat bei zwei verschiedenen RPi/Fhem Installationen funktioniert.

Bilder senden geht bei mir nicht.

Grüße
Heinz

MaDu89

gelöst: 2. Bekomme ich das Profilbild nicht geändert mit:

set WhatsApp raw /profile setPicture /opt/fhem/fhem_logo.png

Ich habe jetzt das aktuelle Profilbild drin. Im Smartphone selbst habe ich am Kontakt nochmal was geändert und speichern gedrückt dann wurde auch das Profilbild meines FHEM Accounts aktualisiert und jetzt funktioniert es!

aber mit dem Bild (send image) das will immer noch nicht so recht -.-
RPi 3 B+mit FHEM, PiHole, PiVPN, Homatic, ESP8266, ESP32 Cam, Sonoff, Sonoff Pow, Shelly, 433MHz Funksteckdosen, ETA Pelletheizung, IPCam, RGB Controller LK35, MediaServer, Volumio, NAS/Backup, Homebot LG, FRITZ!Box 7560, Telegram, Dot-Matrix MAX 7219, SmartMirror, 3D-Drucker...seit 2017 stabil!

heinzfo

Wenn man in WhatsApp auf dem Smartphone auf Kontakt ansehen geht und dann einmal dahin tippt wo das Profilbild sein sollte wird es geladen. Das musste ich bei einer Installation so machen.

Grüße
Heinz

Jamo

Bilder senden geht bei mir auch nicht, modul und/oder FHEM stürzt ab.
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/ConbeeII, FB, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack

otto

Hallo sobald ich ein Profilbild  machen will oder ein Foto gesendet bekomme stürzt Whatsapp ab und ich muss es aus Fhem löschen und wieder neu anlegen dann gehts wieder  hier ein Auszug aus dem log:
SError: [Errno 13] Permission denied: '/.config'
2019.05.14 21:31:50 3: WhatsApp: sending /disconnect
2019.05.14 21:31:50 3: WhatsApp: Disconnected
2019.05.14 21:31:50 3: WhatsApp: read: end of file reached while sysread
2019.05.14 21:32:00 1: PERL WARNING: Use of uninitialized value $home in concatenation (.) or string at ./FHEM/32_yowsup.pm line 171.
2019.05.14 21:32:00 2: WhatsApp: setting $HOME to
2019.05.14 21:32:00 2: WhatsApp: starting yoswup-cli: /opt/yowsup-master/yowsup-cli demos --config-phone 49xxxxxxxxxx --yowsup
Traceback (most recent call last):
  File "/opt/yowsup-master/yowsup-cli", line 680, in <module>
    if not parser.process():
  File "/opt/yowsup-master/yowsup-cli", line 547, 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)


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