[Altes Modul] GoogleCast (98_GOOGLECAST.pm)

Begonnen von dominik, 10 Dezember 2015, 22:43:49

Vorheriges Thema - Nächstes Thema

JF Mennedy

#750
Nach shutdown restart bleiben die castdevice jedoch im Status PythonBinding timeout... Das system ist extrem blockiert bis das device Pythonbinding gelöscht wird... Dann neu definieren Pythonbinding und castdevice sind wieder online...

JF Mennedy

Youtube music kann auf die home minis casten... Aber wenn ich die URL eingebe z. B. set castdevice play url="https://music.youtube.com/watch?v=HGlIImajcRI&feature=share" wird nichts abgespielt.. Auch eine URL für ein web Radio geht nicht... (Z. B url="http://radios.rtbf.be/classic21-128.mp3" )

dominik

#752
Kannst du mir bitte den Output von
grep 15733 /opt/fhem/log/fhem....log
posten?

Bzgl. Youtube Music, das ist leider eine andere App, daher funktioniert das nicht. Die rtbf.be URL habe ich bei mir auch probiert und den Fehler gefunden, sobald ich den Fix hab, melde ich mich.

//Edit: Der rtbf.de Link sollte nun funktionieren. Bitte beachte, zuerst sudo pip3 install aiohttp ausfuehren.
Restarts sollten nun auch funktionieren, wenn nicht, bitte um Info.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

JF Mennedy

Nach dem ersten Shutdown restart waren die Castdevices wieder gelöscht... Wieder angelegt nochmal shutdown restart Castdevices nicht gelöscht, aber teils offline teils PythonBinding timeout


jan@debian-vm:/$ grep 15733 /opt/fhem/log/fhem-2020-08-28.log
2020.08.28 07:44:24 3: Opening pythonbinding device ws:127.0.0.1:15733
2020.08.28 07:44:24 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 07:44:32 4: http://127.0.0.1:15733/: HTTP response code 101
2020.08.28 07:44:32 5: HttpUtils http://127.0.0.1:15733/: Got data, length: 0
2020.08.28 07:48:27 3: Opening pythonbinding device ws:127.0.0.1:15733
2020.08.28 07:48:27 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 07:48:32 4: http://127.0.0.1:15733/: HTTP response code 101
2020.08.28 07:48:32 5: HttpUtils http://127.0.0.1:15733/: Got data, length: 0
2020.08.28 08:32:14 3: Opening pythonbinding device ws:127.0.0.1:15733
2020.08.28 08:32:14 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:32:20 1: pythonbinding: Can't connect to ws:127.0.0.1:15733: write to http://127.0.0.1:15733 timed out
2020.08.28 08:32:20 1: BindingsIo: ERROR pythonbinding - error while connecting: write to http://127.0.0.1:15733 timed out
2020.08.28 08:32:30 5: HttpUtils url=http://127.0.0.1:15733/
2020.08.28 08:32:30 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
Host: 127.0.0.1:15733
2020.08.28 08:32:44 5: HttpUtils url=http://127.0.0.1:15733/
2020.08.28 08:32:44 1: BindingsIo: ERROR pythonbinding - error while connecting: write to http://127.0.0.1:15733 timed out
Host: 127.0.0.1:15733
2020.08.28 08:32:47 4: http://127.0.0.1:15733/: HTTP response code 101
2020.08.28 08:32:47 5: HttpUtils http://127.0.0.1:15733/: Got data, length: 0
2020.08.28 08:32:48 1: ws:127.0.0.1:15733 reappeared (pythonbinding)
2020.08.28 08:32:50 5: HttpUtils url=http://127.0.0.1:15733/
2020.08.28 08:32:50 4: http://127.0.0.1:15733/: HTTP response code 101
2020.08.28 08:32:50 5: HttpUtils http://127.0.0.1:15733/: Got data, length: 0
2020.08.28 08:32:51 1: ws:127.0.0.1:15733 reappeared (pythonbinding)
Host: 127.0.0.1:15733
2020.08.28 08:32:54 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:33:04 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:33:07 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:33:18 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:33:21 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:33:31 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:33:36 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:33:46 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:33:53 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:34:03 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:34:06 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:34:16 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:34:20 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:34:30 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:34:33 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:34:43 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:34:46 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:34:56 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:34:59 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:35:09 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:35:12 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:35:22 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
2020.08.28 08:35:55 1: BindingsIo: ERROR pythonbinding - error while connecting: read from http://127.0.0.1:15733 timed out
2020.08.28 08:36:05 5: HttpUtils url=http://127.0.0.1:15733/
2020.08.28 08:36:06 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (pythonbinding)
2020.08.28 08:36:07 5: HttpUtils url=http://127.0.0.1:15733/
2020.08.28 08:36:17 5: HttpUtils url=http://127.0.0.1:15733/
2020.08.28 08:36:27 5: HttpUtils url=http://127.0.0.1:15733/
2020.08.28 08:36:27 5: HttpUtils url=http://127.0.0.1:15733/
Host: 127.0.0.1:15733
Host: 127.0.0.1:15733
2020.08.28 08:36:29 4: http://127.0.0.1:15733/: HTTP response code 101
2020.08.28 08:36:29 5: HttpUtils http://127.0.0.1:15733/: Got data, length: 0
2020.08.28 08:36:42 1: ws:127.0.0.1:15733 reappeared (pythonbinding)
2020.08.28 08:36:42 4: http://127.0.0.1:15733/: HTTP response code 101
2020.08.28 08:36:42 5: HttpUtils http://127.0.0.1:15733/: Got data, length: 0
2020.08.28 08:36:43 1: ws:127.0.0.1:15733 reappeared (pythonbinding)

dominik

Wie heisst bei dir das BindingsIo Device? Ich glaub der Fehler liegt daran, dass ich bei AssignIoDevice hardcoded pyBinding drin stehen hatte. Wenn das Device nicht genau pyBinding heisst, dann wurde mehrmals verbunden was zu Problemen fuehrt.

Ich habe das nun korrigiert und bei mir getestet. Waere super, wenn du es bei dir auch nochmals pruefen koenntest. Danke fuer deine Unterstuetzung beim Testing!
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

JF Mennedy

Ich bekomme es jetzt gar nicht mehr ans Laufen. Ich lege nach und nach die CastDevices an. Anfangs noch online und dann irgendwann nach 4-5 Stück pythonbinding timeout

JF Mennedy

Das ioDevice heisst wie im Git define pythonbinding BindingsIo Python

dominik

Kannst du mir bitte nur das FHEM Log posten, gerne auf BindingsIo gefiltert.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

JF Mennedy


JF Mennedy

Sehr merkwürdig, jetzt konnte ich wieder alles anlegen... Vielleicht war ich vorher immer etwas zu schnell, habe aus ner Textdatei die Definitionen innerhalb weniger Sekunden in fhem eingefügt... Noch zur Info, Youtube auf einem chromecast geht und webradio geht jetzt auch... und ein shutdown restart funzt jetzt auch :-)

dominik

Super! :)

Hast du vielleicht die Devices inkl. BindingsIo/PythonBinding geloescht und dann BindingsIo neu angelegt? Ich glaube da war der Fehler bei mir drin und daher hießen vielleicht 2 Devices sogar gleich und führten zu dem Fehler.

Wenn du noch einen Fehler erhältst, gib mir bitte bescheid.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

JF Mennedy

Hier ein Update nach 1 Tag Laufzeit: Alles läuft und obwohl wir heute Nacht 2 Mal einen Stromausfall hatten, den meine USV nicht überbrücken konnte ist fhem wieder ordentlich gestartet und auch die CastDevices funktionieren noch alle :-)

Zum Thema Youtube hab ich mir ein Workaround geschaffen. Ich nutze Ampache als Streamingserver, hier lege ich über youtoube-dl die Dateien ab und caste sie dann als mp3 auf meine Minis... Zur Zeit läuft das downloaden und umwandeln in mp3 noch manuell, aber da werd ich mir mal über ein Skript was bauen ;-)

dominik

Super :)

Bzgl. der Minis, ich habe schon überlegt pytube zu integrieren und nur den Audiostream aus YouTube dann an die Minis zu schicken, das sollte klappen. Dann ersparst du dir den Download.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

JF Mennedy


dominik

Zitat von: JF Mennedy am 29 August 2020, 12:59:54
Das wäre natürlich noch schicker ;-)

Funktioniert bei mir bereits, werde es am Abend online stellen :) Kannst du bitte pruefen ob die Google Home (nicht Minis) Youtube unterstuetzen? Aktuell wuerde ich alle Modelle mit "Mini" im Modellname mit dieser Methode bespielen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik