Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. lgtv Adapter zur Steuerung von LG WebOS SmartTVs

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    lgtv Adapter zur Steuerung von LG WebOS SmartTVs

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @SchuetzeSchulz last edited by

      @SchuetzeSchulz

      es steht das:

      youtube.leanback.v4

      S 1 Reply Last reply Reply Quote 0
      • S
        SchuetzeSchulz @liv-in-sky last edited by

        @liv-in-sky
        Aber genau mit dem Befehl wird im Quellcode die Youtube App geöffnet:

         sendCommand('ssap://system.launcher/launch', {id: "youtube.leanback.v4"}, (err, val) => {
                                            if (!err) adapter.setState('states.launch', state.val, true);
        

        Scheint also eher ein Bug im LG WebOS zu sein 😞

        liv-in-sky 2 Replies Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @SchuetzeSchulz last edited by

          @SchuetzeSchulz

          das wäre doof - den eine anfrage bei lg würde nix bringen, da wir ja eine fremdsoftware (adapter) nutzen

          sonst funktioniert die app - gestern gab es ein web-os update - hat nix geändert

          1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @SchuetzeSchulz last edited by

            @SchuetzeSchulz

            habe mal node red instaliert - selber fehler - liegt wohl wirklich am web-os

            1 Reply Last reply Reply Quote 0
            • T
              toschi last edited by

              Hi,
              ich habe einen OLED65CX9LA die Verbindung zum TV funktioniert nicht.
              Bei der ersten Verbindung kam die Meldung am TV. Nun bleibt der Adapter rot. Hat da schon jemand Erfahrung?

              D 1 Reply Last reply Reply Quote 0
              • D
                dirkhe Developer @toschi last edited by

                @toschi vor 5 Minuten hätte ich dir helfen können, aber leider ist mir gerade die glaskugel runter gefallen.
                Scherz beiseite, ohne debug Log kann dir keiner helfen

                1 Reply Last reply Reply Quote 0
                • T
                  toschi last edited by

                  Ich habe den Adapter auf Debug gestellt und dieses aus dem Log kopiert. Oder wie macht man das?

                  host.IO-Broker 2020-07-08 22:07:15.181 info instance system.adapter.lgtv.0 started with pid 15621
                  host.IO-Broker 2020-07-08 22:06:45.173 info Restart adapter system.adapter.lgtv.0 because enabled
                  host.IO-Broker 2020-07-08 22:06:45.173 info instance system.adapter.lgtv.0 terminated with code 0 (NO_ERROR)
                  lgtv.0 2020-07-08 22:06:44.671 debug (15576) Connection closed: 1000
                  lgtv.0 2020-07-08 22:06:44.661 info (15576) Terminated (NO_ERROR): Without reason
                  lgtv.0 2020-07-08 22:06:44.660 info (15576) terminating
                  lgtv.0 2020-07-08 22:06:44.656 debug (15576) TV is off
                  lgtv.0 2020-07-08 22:06:44.654 error at processTicksAndRejections (internal/process/task_queues.js:79:11)
                  lgtv.0 2020-07-08 22:06:44.654 error at /opt/iobroker/node_modules/websocket/lib/WebSocketConnection.js:323:40
                  lgtv.0 2020-07-08 22:06:44.654 error at WebSocketConnection.processFrame (/opt/iobroker/node_modules/websocket/lib/WebSocketConnection.js:554:26)
                  lgtv.0 2020-07-08 22:06:44.654 error at WebSocketConnection.emit (events.js:315:20)
                  lgtv.0 2020-07-08 22:06:44.654 error at WebSocketConnection.<anonymous> (/opt/iobroker/node_modules/lgtv2/index.js:146:48)
                  lgtv.0 2020-07-08 22:06:44.654 error at Object.42c660520001 (/opt/iobroker/node_modules/iobroker.lgtv/lgtv.js:387:30)
                  lgtv.0 2020-07-08 22:06:44.654 error (15576) TypeError: Cannot read property 'indexOf' of undefined
                  lgtv.0 2020-07-08 22:06:44.654 error (15576) uncaught exception: Cannot read property 'indexOf' of undefined
                  lgtv.0 2020-07-08 22:06:44.653 debug (15576) audio/getVolume: {"volumeStatus":{"activeStatus":true,"adjustVolume":true,"maxVolume":100,"muteStatus":false,"volume":12,"soundOutput":"tv_external_speaker"},"returnValue":true,"callerId":"se
                  lgtv.0 2020-07-08 22:06:44.634 debug (15576) WebOS TV Connected
                  lgtv.0 2020-07-08 22:06:44.582 debug (15576) Connecting to WebOS TV: ws://192.168.10.94:3000
                  lgtv.0 2020-07-08 22:06:44.575 debug (15576) adapter.config = {"ip":"192.168.10.94","mac":"","timeout":"5000","reconnect":"5000","power":true,"healthIntervall":""}
                  lgtv.0 2020-07-08 22:06:44.574 info (15576) Ready. Configured WebOS TV IP: 192.168.10.94
                  lgtv.0 2020-07-08 22:06:44.564 info (15576) starting. Version 1.1.6 in /opt/iobroker/node_modules/iobroker.lgtv, node: v12.17.0, js-controller: 3.1.6
                  lgtv.0 2020-07-08 22:06:41.633 debug (15576) statesDB connected
                  lgtv.0 2020-07-08 22:06:41.633 debug (15576) States connected to redis: 127.0.0.1:9000
                  lgtv.0 2020-07-08 22:06:41.628 debug (15576) States create System PubSub Client
                  lgtv.0 2020-07-08 22:06:41.627 debug (15576) States create User PubSub Client
                  lgtv.0 2020-07-08 22:06:41.624 debug (15576) Redis States: Use Redis connection: 127.0.0.1:9000
                  lgtv.0 2020-07-08 22:06:41.623 debug (15576) objectDB connected
                  lgtv.0 2020-07-08 22:06:41.621 debug (15576) Objects connected to redis: 127.0.0.1:9001
                  lgtv.0 2020-07-08 22:06:41.612 debug (15576) Objects client initialize lua scripts
                  lgtv.0 2020-07-08 22:06:41.611 debug (15576) Objects create User PubSub Client
                  lgtv.0 2020-07-08 22:06:41.611 debug (15576) Objects create System PubSub Client
                  lgtv.0 2020-07-08 22:06:41.610 debug (15576) Objects client ready ... initialize now
                  lgtv.0 2020-07-08 22:06:41.591 debug (15576) Redis Objects: Use Redis connection: 127.0.0.1:9001
                  host.IO-Broker 2020-07-08 22:06:41.314 info instance system.adapter.lgtv.0 started with pid 15576
                  host.IO-Broker 2020-07-08 22:06:11.304 info Restart adapter system.adapter.lgtv.0 because enabled

                  S 1 Reply Last reply Reply Quote 0
                  • D
                    dirkhe Developer last edited by dirkhe

                    Da ist definitiv ein Bug im Code. Ich meine, dass ich den schon mal gesehen habe und gedacht, dass ich den gefixt habe, vlt habe ich das aber auch nur lokal gemacht
                    Schau mal hier https://forum.iobroker.net/post/449292
                    @SchuetzeSchulz den fix könntest du eigentlich direkt übernehmen?

                    1 Reply Last reply Reply Quote 1
                    • S
                      SchuetzeSchulz @toschi last edited by

                      @toschi
                      Bitte mal den Adapter deinstallieren und neu vom Github installieren.
                      Der Fehler sollte jetzt - hoffentlich - dank @dirkhe weg sein 🙂

                      1 Reply Last reply Reply Quote 0
                      • T
                        toschi last edited by

                        Die Installation von GitHub bricht mit Fehler ab:
                        Fertig mit Fehler: internal/modules/cjs/loader.js:1175 throw err; ^SyntaxError: /opt/iobroker/node_modules/iobroker.lgtv/io-package.json: Unexpected token } in JSON at position 520 at parse () at Object.Module._extensions..json (internal/modules/cjs/loader.js:1172:22) at Module.load (internal/modules/cjs/loader.js:986:32) at Function.Module._load (internal/modules/cjs/loader.js:879:14) at Module.require (internal/modules/cjs/loader.js:1026:19) at require (internal/modules/cjs/helpers.js:72:18) at Upload.uploadAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupUpload.js:481:19) at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupInstall.js:1781:24 at ChildProcess. (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupInstall.js:478:47) at ChildProcess.emit (events.js:315:20)

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          SchuetzeSchulz @toschi last edited by

                          @toschi
                          Da hat sich leider noch ein Fehler eingeschlichen gehabt.
                          Bitte nochmal probieren.

                          sigi234 1 Reply Last reply Reply Quote 0
                          • sigi234
                            sigi234 Forum Testing Most Active @SchuetzeSchulz last edited by sigi234

                            @SchuetzeSchulz sagte in lgtv Adapter zur Steuerung von LG WebOS SmartTVs:

                            @toschi
                            Da hat sich leider noch ein Fehler eingeschlichen gehabt.
                            Bitte nochmal probieren.

                            $ ./iobroker upgrade lgtv
                            Update lgtv from @1.1.6 to @1.1.7
                            NPM version: 6.14.4
                            npm install iobroker.lgtv@1.1.7 --loglevel error (System call)
                            gyp
                             ERR! UNCAUGHT EXCEPTION gyp ERR! stack TypeError: tar.extract is not a functiongyp ERR! stack     at Request.<anonymous> (C:\Program Files\iobroker\Test\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:199:22)gyp ERR! stack     at Request.emit (events.js:327:22)gyp ERR! stack     at Request.onRequestResponse (C:\Program Files\iobroker\Test\nodejs\node_modules\npm\node_modules\request\request.js:1066:10)gyp ERR! stack     at ClientRequest.emit (events.js:315:20)gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:596:27)gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:469:22)gyp ERR! stack     at TLSSocket.emit (events.js:315:20)gyp ERR! stack     at addChunk (_stream_readable.js:295:12)gyp ERR! stack     at readableAddChunk (_stream_readable.js:271:9)gyp ERR! System Windows_NT 10.0.19041gyp ERR! command "C:\\Program Files\\iobroker\\Test\\nodejs\\node.exe" "C:\\Program Files\\iobroker\\Test\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"gyp ERR! cwd C:\Program Files\iobroker\Test\node_modules\unix-dgramgyp ERR! node -v v12.18.0gyp ERR! node-gyp -v v5.1.0gyp ERR! This is a bug in `node-gyp`.gyp ERR! Try to update node-gyp and file an Issue if it does not help:gyp ERR!     <https://github.com/nodejs/node-gyp/issues>
                            ERROR: Cannot find io-package.json in C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv
                            ERROR: Cannot parse C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv/io-package.json:SyntaxError: Unexpected token } in JSON at position 520Cannot find io-package.json in C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv
                            Adapter "lgtv" updated
                            upload [3] lgtv.admin C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv/admin/words.js words.js application/javascript
                             writeFile will not write this file (words.js) in future versions: undefined
                             DB closed
                            upload [2] lgtv.admin C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv/admin/lgtv.png lgtv.png image/png
                             writeFile will not write this file (lgtv.png) in future versions: undefined
                            upload [1] lgtv.admin C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv/admin/index_m.html index_m.html text/html
                             writeFile will not write this file (index_m.html) in future versions: undefined
                            upload [0] lgtv.admin C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv/admin/index.html index.html text/html
                             writeFile will not write this file (index.html) in future versions: undefined
                            Adapter "lgtv" updated
                            ERROR: process exited with code 29
                            
                            os: win32
                            RAM: 7.9 GB 
                            Node.js: v12.18.0
                            NPM: 6.14.4
                            JS-Controller: 3.1.6
                            Admin: 4.1.1
                            Active instances: 46
                            
                            1 Reply Last reply Reply Quote 0
                            • kmxak
                              kmxak Most Active last edited by

                              Von Github direkt installieren funktioniert. Über Update Button geht es nicht.

                              sigi234 1 Reply Last reply Reply Quote 0
                              • sigi234
                                sigi234 Forum Testing Most Active @kmxak last edited by

                                @kmxak sagte in lgtv Adapter zur Steuerung von LG WebOS SmartTVs:

                                Von Github direkt installieren funktioniert. Über Update Button geht es nicht.

                                Kann ich bestätigen.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  toschi last edited by

                                  ich habe den adapter Version 1.1.7 gerade neu in iobroker normal installiert. Hat funktioniert kann aber erst nachmittags testen da TV aus ist.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    SchuetzeSchulz @toschi last edited by

                                    Hab jetzt mal auf Hithub und NPM die Version 1.1.8 veröffentlicht.
                                    Kann allerdings dauern, bis sie im Stable repository ist.

                                    1 Reply Last reply Reply Quote 2
                                    • T
                                      toschi last edited by

                                      Die Version 1.1.7 hat sich verbunden. Laut,leise,Kanal+ und - funktioniert. Den Rest kann ich erst später probieren. Die 1.1.8 kann ich abends testen.

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        toschi last edited by

                                        Die 1.1.8 läuft bei mir auch. Keine Probleme gefunden. Vielen Dank für die schnelle Hilfe.

                                        1 Reply Last reply Reply Quote -1
                                        • sigi234
                                          sigi234 Forum Testing Most Active @SchuetzeSchulz last edited by

                                          @SchuetzeSchulz

                                          Die 1.1.8 läuft bei mir auch. Keine Probleme gefunden. 👍

                                          Screenshot (216)_LI.jpg

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            SchuetzeSchulz @sigi234 last edited by

                                            Der Dank gilt @dirkhe . Er hat den "Fehler" ja gefunden 🙂

                                            sigi234 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            739
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            lgtv
                                            113
                                            861
                                            274317
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo