NEWS
Wunsch: Adapter für Panasonic Viera Smart TV Steuerung
-
Habs hin bekommen.
Benötigt wird Python3. Ich habe im Proxmox einen CT erstellt und Python 2 deinstalliert.sudo apt purge -y python2.7-minimal sudo ln -s /usr/bin/python3 /usr/bin/python sudo apt install -y python3-pip sudo ln -s /usr/bin/pip3 /usr/bin/pipunter
python --versionsollte jetzt Python3.x auftauchen
aiohttp wird noch benötigt
pip install aiohttpjetzt kann man die Bibliothek installieren
pip install panasonic-vieraund los geht's
root@viera:~# python Python 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import panasonic_viera >>> rc = panasonic_viera.RemoteControl("192.168.xxx.xxx") >>> rc.request_pin_code() >>> pin = input("Enter the displayed pin code: ") Enter the displayed pin code: 1111 >>> rc.authorize_pin_code(pincode=pin) >>> print (rc.app_id) A*********** >>> print (rc.enc_key) D**************** >>> rc.send_key(panasonic_viera.Keys.epg) >>> Strg + D -
Habs hin bekommen.
Benötigt wird Python3. Ich habe im Proxmox einen CT erstellt und Python 2 deinstalliert.sudo apt purge -y python2.7-minimal sudo ln -s /usr/bin/python3 /usr/bin/python sudo apt install -y python3-pip sudo ln -s /usr/bin/pip3 /usr/bin/pipunter
python --versionsollte jetzt Python3.x auftauchen
aiohttp wird noch benötigt
pip install aiohttpjetzt kann man die Bibliothek installieren
pip install panasonic-vieraund los geht's
root@viera:~# python Python 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import panasonic_viera >>> rc = panasonic_viera.RemoteControl("192.168.xxx.xxx") >>> rc.request_pin_code() >>> pin = input("Enter the displayed pin code: ") Enter the displayed pin code: 1111 >>> rc.authorize_pin_code(pincode=pin) >>> print (rc.app_id) A*********** >>> print (rc.enc_key) D**************** >>> rc.send_key(panasonic_viera.Keys.epg) >>> Strg + D -
Habs hin bekommen.
Benötigt wird Python3. Ich habe im Proxmox einen CT erstellt und Python 2 deinstalliert.sudo apt purge -y python2.7-minimal sudo ln -s /usr/bin/python3 /usr/bin/python sudo apt install -y python3-pip sudo ln -s /usr/bin/pip3 /usr/bin/pipunter
python --versionsollte jetzt Python3.x auftauchen
aiohttp wird noch benötigt
pip install aiohttpjetzt kann man die Bibliothek installieren
pip install panasonic-vieraund los geht's
root@viera:~# python Python 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import panasonic_viera >>> rc = panasonic_viera.RemoteControl("192.168.xxx.xxx") >>> rc.request_pin_code() >>> pin = input("Enter the displayed pin code: ") Enter the displayed pin code: 1111 >>> rc.authorize_pin_code(pincode=pin) >>> print (rc.app_id) A*********** >>> print (rc.enc_key) D**************** >>> rc.send_key(panasonic_viera.Keys.epg) >>> Strg + D -
@vumer Ärgerlich, auf Volumen Up Down könnte ich verzichten da der andere Volumen Datenpunkt mit Zahlenwert ja geht. Aber Control Left brauche ich auf jeden fall. Weiß gar nicht ob @JensMaus hier mitliest?
@jack99n sagte in Wunsch: Adapter für Panasonic Viera Smart TV Steuerung:
@vumer Ärgerlich, auf Volumen Up Down könnte ich verzichten da der andere Volumen Datenpunkt mit Zahlenwert ja geht. Aber Control Left brauche ich auf jeden fall.
sehe ich genauso
@gironimo sagte in Wunsch: Adapter für Panasonic Viera Smart TV Steuerung:
bei mir schaltet der der TV leider nie im Reiter info beim Punkt tv_on auf off.
das ärgert mich auch sehr. Ich dachte das mit der ID dass es funktionieren wird.
-
@jack99n sagte in Wunsch: Adapter für Panasonic Viera Smart TV Steuerung:
@vumer Ärgerlich, auf Volumen Up Down könnte ich verzichten da der andere Volumen Datenpunkt mit Zahlenwert ja geht. Aber Control Left brauche ich auf jeden fall.
sehe ich genauso
@gironimo sagte in Wunsch: Adapter für Panasonic Viera Smart TV Steuerung:
bei mir schaltet der der TV leider nie im Reiter info beim Punkt tv_on auf off.
das ärgert mich auch sehr. Ich dachte das mit der ID dass es funktionieren wird.
-
-
host.raspberrypi 2021-05-24 17:13:08.616 info Restart adapter system.adapter.panasonic-viera.0 because enabled host.raspberrypi 2021-05-24 17:13:08.615 error instance system.adapter.panasonic-viera.0 terminated with code 6 (UNCAUGHT_EXCEPTION) panasonic-viera.0 2021-05-24 17:13:07.992 warn (1300) Terminated (UNCAUGHT_EXCEPTION): Without reason panasonic-viera.0 2021-05-24 17:13:07.991 info (1300) terminating panasonic-viera.0 2021-05-24 17:13:07.472 error (1300) callback is not a function panasonic-viera.0 2021-05-24 17:13:07.472 error at process._tickCallback (internal/process/next_tick.js:63:19) panasonic-viera.0 2021-05-24 17:13:07.472 error at endReadableNT (_stream_readable.js:1145:12) panasonic-viera.0 2021-05-24 17:13:07.472 error at IncomingMessage.emit (events.js:203:15) panasonic-viera.0 2021-05-24 17:13:07.472 error at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.panasonic-viera/lib/viera.js:93:17) panasonic-viera.0 2021-05-24 17:13:07.472 error (1300) TypeError: callback is not a function panasonic-viera.0 2021-05-24 17:13:07.470 error (1300) uncaught exception: callback is not a functionTrotz der Ankündigung im Log, macht die Instanz keinen Restart.
Es ist übrigens die Stable Version und der Fehler trat früher so nicht auf (meine ich)..... -
host.raspberrypi 2021-05-24 17:13:08.616 info Restart adapter system.adapter.panasonic-viera.0 because enabled host.raspberrypi 2021-05-24 17:13:08.615 error instance system.adapter.panasonic-viera.0 terminated with code 6 (UNCAUGHT_EXCEPTION) panasonic-viera.0 2021-05-24 17:13:07.992 warn (1300) Terminated (UNCAUGHT_EXCEPTION): Without reason panasonic-viera.0 2021-05-24 17:13:07.991 info (1300) terminating panasonic-viera.0 2021-05-24 17:13:07.472 error (1300) callback is not a function panasonic-viera.0 2021-05-24 17:13:07.472 error at process._tickCallback (internal/process/next_tick.js:63:19) panasonic-viera.0 2021-05-24 17:13:07.472 error at endReadableNT (_stream_readable.js:1145:12) panasonic-viera.0 2021-05-24 17:13:07.472 error at IncomingMessage.emit (events.js:203:15) panasonic-viera.0 2021-05-24 17:13:07.472 error at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.panasonic-viera/lib/viera.js:93:17) panasonic-viera.0 2021-05-24 17:13:07.472 error (1300) TypeError: callback is not a function panasonic-viera.0 2021-05-24 17:13:07.470 error (1300) uncaught exception: callback is not a functionTrotz der Ankündigung im Log, macht die Instanz keinen Restart.
Es ist übrigens die Stable Version und der Fehler trat früher so nicht auf (meine ich)..... -
oh je
host.iobroker 2021-05-26 22:03:00.027 info instance system.adapter.daswetter.0 started with pid 18349 host.iobroker 2021-05-26 21:35:26.063 warn Do not restart adapter system.adapter.panasonic-viera.0 because restart loop detected host.iobroker 2021-05-26 21:35:26.063 info Restart adapter system.adapter.panasonic-viera.0 because enabled host.iobroker 2021-05-26 21:35:26.061 error instance system.adapter.panasonic-viera.0 terminated with code 6 (UNCAUGHT_EXCEPTION) panasonic-viera.0 2021-05-26 21:35:24.927 error (18299) Exception-Code: ECONNRESET: read ECONNRESET panasonic-viera.0 2021-05-26 21:35:24.927 error at TCP.onStreamRead (internal/stream_base_commons.js:209:20) panasonic-viera.0 2021-05-26 21:35:24.927 error (18299) Error: read ECONNRESET panasonic-viera.0 2021-05-26 21:35:24.927 error (18299) unhandled promise rejection: read ECONNRESET panasonic-viera.0 2021-05-26 21:35:24.925 error (18299) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). host.iobroker 2021-05-26 21:32:52.804 info instance system.adapter.panasonic-viera.0 started with pid 18299 host.iobroker 2021-05-26 21:32:22.768 info Restart adapter system.adapter.panasonic-viera.0 because enabled host.iobroker 2021-05-26 21:32:22.765 error instance system.adapter.panasonic-viera.0 terminated with code 6 (UNCAUGHT_EXCEPTION) panasonic-viera.0 2021-05-26 21:32:21.631 error (18274) Exception-Code: ECONNRESET: read ECONNRESET panasonic-viera.0 2021-05-26 21:32:21.631 error at TCP.onStreamRead (internal/stream_base_commons.js:209:20) panasonic-viera.0 2021-05-26 21:32:21.631 error (18274) Error: read ECONNRESET panasonic-viera.0 2021-05-26 21:32:21.630 error (18274) unhandled promise rejection: read ECONNRESET panasonic-viera.0 2021-05-26 21:32:21.629 error (18274) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). host.iobroker 2021-05-26 21:28:47.026 info instance system.adapter.panasonic-viera.0 started with pid 18274 host.iobroker 2021-05-26 21:28:17.004 info Restart adapter system.adapter.panasonic-viera.0 because enabled host.iobroker 2021-05-26 21:28:17.001 error instance system.adapter.panasonic-viera.0 terminated with code 6 (UNCAUGHT_EXCEPTION) panasonic-viera.0 2021-05-26 21:28:15.871 error (18213) Exception-Code: ECONNRESET: read ECONNRESET panasonic-viera.0 2021-05-26 21:28:15.871 error at TCP.onStreamRead (internal/stream_base_commons.js:209:20) panasonic-viera.0 2021-05-26 21:28:15.871 error (18213) Error: read ECONNRESET panasonic-viera.0 2021-05-26 21:28:15.870 error (18213) unhandled promise rejection: read ECONNRESET panasonic-viera.0 2021-05-26 21:28:15.869 error (18213) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). host.iobroker 2021-05-26 21:25:05.419 info instance system.adapter.panasonic-viera.0 started with pid 18213 host.iobroker 2021-05-26 21:25:03.472 info instance system.adapter.panasonic-viera.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) host.iobroker 2021-05-26 21:25:03.399 info stopInstance system.adapter.panasonic-viera.0 killing pid 18197 host.iobroker 2021-05-26 21:25:02.397 info stopInstance system.adapter.panasonic-viera.0 send kill signal -
Immer noch das gleich Verhalten. Ich habe nun 2.0 installiert, aber sobald ich die Lautstärke ändere, steigt die Instanz aus....
host.raspberrypi 2021-10-11 21:30:54.936 error instance system.adapter.panasonic-viera.0 terminated with code 6 (UNCAUGHT_EXCEPTION) panasonic-viera.0 2021-10-11 21:30:54.209 warn Terminated (UNCAUGHT_EXCEPTION): Without reason panasonic-viera.0 2021-10-11 21:30:54.208 info terminating panasonic-viera.0 2021-10-11 21:30:53.695 error callback is not a function panasonic-viera.0 2021-10-11 21:30:53.694 error TypeError: callback is not a function at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.panasonic-viera/lib/viera.js:93:17) at IncomingMessage.emit (node:events:402:35) at endReadableNT (node:internal/streams/readable:1343:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) panasonic-viera.0 2021-10-11 21:30:53.692 error uncaught exception: callback is not a function
-
Hallo zusammen,
ich habe versucht mittelst dem Python Skript den pin Code zu bekommen, allerdings scheitert es leider schon nach der Installation von Panasonic-Viera.
Da komme ich leider nicht mehr weiter welche Befehle sollten dann in der Commandozeile ausgeführt werden ?Kann mir hier jemand weiterhelfen ?
-
Hallo zusammen,
ich habe versucht mittelst dem Python Skript den pin Code zu bekommen, allerdings scheitert es leider schon nach der Installation von Panasonic-Viera.
Da komme ich leider nicht mehr weiter welche Befehle sollten dann in der Commandozeile ausgeführt werden ?Kann mir hier jemand weiterhelfen ?
-
-
-
das sieht schon mal besser aus :)
Aber ich bekomme leider nach der Anfrage rc.request_pin_code() folgende Fehlermeldung:Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/panasonic-viera/panasonic_viera/__init__.py", line 346, in request_pin_code raise e # Pass to the next handler File "/panasonic-viera/panasonic_viera/__init__.py", line 338, in request_pin_code res = self.soap_request(URL_CONTROL_NRC, URN_REMOTE_CONTROL, 'X_DisplayPinCode', params, body_elem="u") File "/panasonic-viera/panasonic_viera/__init__.py", line 258, in soap_request raise e # Pass to the next handler File "/panasonic-viera/panasonic_viera/__init__.py", line 254, in soap_request res = urlopen(req, timeout=5).read() File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.9/urllib/request.py", line 523, in open response = meth(req, response) File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response response = self.parent.error( File "/usr/lib/python3.9/urllib/request.py", line 561, in error return self._call_chain(*args) File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain result = func(*args) File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbiddenworan könnte das liegen?
-
das sieht schon mal besser aus :)
Aber ich bekomme leider nach der Anfrage rc.request_pin_code() folgende Fehlermeldung:Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/panasonic-viera/panasonic_viera/__init__.py", line 346, in request_pin_code raise e # Pass to the next handler File "/panasonic-viera/panasonic_viera/__init__.py", line 338, in request_pin_code res = self.soap_request(URL_CONTROL_NRC, URN_REMOTE_CONTROL, 'X_DisplayPinCode', params, body_elem="u") File "/panasonic-viera/panasonic_viera/__init__.py", line 258, in soap_request raise e # Pass to the next handler File "/panasonic-viera/panasonic_viera/__init__.py", line 254, in soap_request res = urlopen(req, timeout=5).read() File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.9/urllib/request.py", line 523, in open response = meth(req, response) File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response response = self.parent.error( File "/usr/lib/python3.9/urllib/request.py", line 561, in error return self._call_chain(*args) File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain result = func(*args) File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbiddenworan könnte das liegen?