[Altes Modul] GoogleCast (98_GOOGLECAST.pm)

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

Vorheriges Thema - Nächstes Thema

dominik

NestHub und NestHubMax werden unterstützt.

Ich habe es mit Umlauten im Namen jedoch selbst noch nicht getestet, sollte aber dennoch klappen. Probier mal mit...
define nesthub PythonModule googlecast Küche
...es direkt anzulegen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

bartman121

Mit dem Umlaut hatte ich keine Chance

Ich hab's jetzt in "Kueche" umbenannt,dann wird es angelegt.

Danke schonmal für diene Hilfe

JF Mennedy

Guten Morgen,

Update durchgeführt, shutdown restart, und alle devices noch da und operationell :-) ich hatte für den restart 2 chromecast extra abgesteckt, diese wurden natürlich nicht gefunden, aber sobald wieder am Netz gingen sie auch online :-)

Lasse es jetzt laufen und berichte, falls es Probleme gibt...

Gruss Jan

dominik

Zitat von: bartman121 am 11 Oktober 2020, 21:06:09
Mit dem Umlaut hatte ich keine Chance

Ich hab's jetzt in "Kueche" umbenannt,dann wird es angelegt.

Danke schonmal für diene Hilfe

Ok, danke für die Info. Das werde ich mir anschauen woran das liegt.

Zitat von: JF Mennedy am 12 Oktober 2020, 09:06:04
Guten Morgen,

Update durchgeführt, shutdown restart, und alle devices noch da und operationell :-) ich hatte für den restart 2 chromecast extra abgesteckt, diese wurden natürlich nicht gefunden, aber sobald wieder am Netz gingen sie auch online :-)

Lasse es jetzt laufen und berichte, falls es Probleme gibt...

Gruss Jan
Sehr gut, gerne melden wenn Fehler auftreten.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

a_quadrat

Hallo Dominik,

ich bin gerade dabei die "Python-Version" vom googlecast Modul einzubinden. Ich bin nach deiner Anleitung im GitHub vorgegangen. Mein Server läuft mit der Version Ubuntu 20.04.
Dennoch verbindet sich der Pythen-Server nicht. Hier mal ein Auszug aus meinen Log's:


pythonbinding
2020.10.14 10:39:10 1 : UPD FHEM/10_PythonBinding.pm
2020.10.14 10:39:10 1 : UPD FHEM/10_BindingsIo.pm
2020.10.14 10:39:10 1 : UPD FHEM/10_PythonModule.pm
2020.10.14 10:39:11 1 : UPD FHEM/bindings/python/pythonbinding.py
2020.10.14 10:39:11 1 : UPD FHEM/bindings/python/lib/__init__.py
2020.10.14 10:39:11 1 : UPD FHEM/bindings/python/lib/fhem.py
2020.10.14 10:39:11 1 : UPD FHEM/bindings/python/lib/fhem_pythonbinding.py
2020.10.14 10:39:11 1 : Got 12432 bytes for FHEM/bindings/python/lib/fhem_pythonbinding.py, expected 12388
2020.10.14 10:39:11 1 : aborting.
2020.10.14 10:39:14 1 : BindingsIo: ERROR pythonbinding - error while connecting: 127.0.0.1: Connection refused (111)
2020.10.14 10:39:22 3 : Pythonbinding_0: starting
2020.10.14 10:39:22 3 : Pythonbinding_0: using logfile: ./log/PythonBinding-2020-10-14.log
2020.10.14 10:39:22 3 : Pythonbinding_0: read: end of file reached while sysread
2020.10.14 10:39:22 3 : Pythonbinding_0: stopped



Traceback (most recent call last):
  File "FHEM/bindings/python/pythonbinding.py", line 3, in <module>
    import lib.fhem_pythonbinding as fpb
ModuleNotFoundError: No module named 'lib.fhem_pythonbinding'


Kannst du erkennen woran es liegt?

VG Andreas

dominik

2020.10.14 10:39:11 1 : UPD FHEM/bindings/python/lib/fhem_pythonbinding.py
2020.10.14 10:39:11 1 : Got 12432 bytes for FHEM/bindings/python/lib/fhem_pythonbinding.py, expected 12388
2020.10.14 10:39:11 1 : aborting.


Da wurde das Update abgebrochen. Ich habe soeben das controls File nochmals aktualisiert, nun sollte das Update laufen. Bitte daher nochmals "update".
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

a_quadrat

 :) Danke, das dachte ich mir schon. Jetzt läuft es...

a_quadrat

Mein Python Log müllt sich zu  ;). Was bedeuten diese Einträge?


2020-10-14 17:06:05,471 - WARNING  - zeroconf: packets() made no progress adding records; returning
2020-10-14 17:08:31,210 - WARNING  - zeroconf: packets() made no progress adding records; returning
2020-10-14 17:08:31,214 - WARNING  - zeroconf: packets() made no progress adding records; returning
2020-10-14 17:10:01,270 - WARNING  - zeroconf: packets() made no progress adding records; returning
2020-10-14 17:10:01,275 - WARNING  - zeroconf: packets() made no progress adding records; returning
2020-10-14 17:11:31,383 - WARNING  - zeroconf: packets() made no progress adding records; returning
2020-10-14 17:11:31,393 - WARNING  - zeroconf: packets() made no progress adding records; returning


Das ist nur ein kleiner Auszug  ;).

dominik

Kannst du mal das hier ausfuehern
sudo -u fhem pip3 show pychromecast
sudo -u fhem pip3 show zeroconf
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

a_quadrat

hab ich gemacht:


root@homeserver:~# sudo -u fhem pip3 show pychromecast
Name: PyChromecast
Version: 7.5.0
Summary: Python module to talk to Google Chromecast.
Home-page: https://github.com/balloob/pychromecast
Author: Paulus Schoutsen
Author-email: paulus@paulusschoutsen.nl
License: MIT
Location: /opt/fhem/.local/lib/python3.8/site-packages
Requires: casttube, zeroconf, protobuf, requests
Required-by:
root@homeserver:~# sudo -u fhem pip3 show zeroconf
Name: zeroconf
Version: 0.27.0
Summary: Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)
Home-page: https://github.com/jstasiak/python-zeroconf
Author: Paul Scott-Murphy, William McBrine, Jakub Stasiak
Author-email: UNKNOWN
License: LGPL
Location: /usr/local/lib/python3.8/dist-packages
Requires: ifaddr
Required-by: PyChromecast

dominik

Ok, eine kurze Google Recherche dazu hat ergeben, dass es bei zeroconf in der Library da scheinbar dieses Problem gab.
Probier mal
sudo -u fhem pip3 install --upgrade zeroconf
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

a_quadrat

Hallo Dominik,

das upgrade allein hat nicht gereicht, aber mit einem reboot vom System, kommen jetzt keine Einträge mehr hinzu.

VG Andreas

JF Mennedy

Hallo Dominik,

wäre es möglich auch für die Ring-Doorbell ein Binding zu erstellen?

Es gibt da schon was in Python:

https://github.com/tchellomello/python-ring-doorbell

Ich glaube, das würde ausser mir auch noch einige andere Besitzer dieser Klingel interessieren...

Ich steige da noch nicht so richtig durch (HelloWorld Beispiel) wie das zu bewerkstelligen ist...

Gruss Jan

dominik

Zitat von: JF Mennedy am 15 Oktober 2020, 18:20:14
Hallo Dominik,

wäre es möglich auch für die Ring-Doorbell ein Binding zu erstellen?

Es gibt da schon was in Python:

https://github.com/tchellomello/python-ring-doorbell

Ich glaube, das würde ausser mir auch noch einige andere Besitzer dieser Klingel interessieren...

Ich steige da noch nicht so richtig durch (HelloWorld Beispiel) wie das zu bewerkstelligen ist...

Gruss Jan

Ja, das ist kein Problem. Das ist der große Vorteil bei Python, es gibt unzählige fertige Libraries :)
Ich habe mir das mal angesehen, sieht sehr einfach aus. Kannst du dazu einen eigenen Thread machen? Dann können wir das dort weiter besprechen.

Bin gerade noch am Umlaut-Problem für Googlecast, danach schau ich mir die Ring Doorbell an.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: bartman121 am 11 Oktober 2020, 21:06:09
Mit dem Umlaut hatte ich keine Chance

Ich hab's jetzt in "Kueche" umbenannt,dann wird es angelegt.

Danke schonmal für diene Hilfe
Fehler behoben, Umlaute funktionieren nun
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik