Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter Lgtv v2.3.x

    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

    Test Adapter Lgtv v2.3.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Snigga last edited by

      @snigga sagte in Test Adapter Lgtv v2.0.x:

      EXTERNALLY-MANAGED

      sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED
      

      Dann nochmal versuchen den Adapter zu installieren.

      S 1 Reply Last reply Reply Quote 0
      • S
        Snigga @Thomas Braun last edited by

        @thomas-braun sagte in Test Adapter Lgtv v2.0.x:

        sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED

        erledigt jedoch problem ist weiterhin da

        $ iobroker add lgtv auto --host iobroker --debug
        
        NPM version: 9.8.1
        
        Installing iobroker.lgtv@2.1.2... (System call)
        
        npm ERR! code 1npm ERR! path /opt/iobroker/node_modules/bufferutilnpm ERR! command failednpm ERR! command sh -c node-gyp-buildnpm ERR! gyp info it worked if it ends with oknpm ERR! gyp info using node-gyp@7.1.2npm ERR! gyp info using node@18.18.2 | linux | armnpm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"npm ERR! (node:3508) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)npm ERR! gyp info spawn /usr/bin/python3npm ERR! gyp info spawn args [npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py',npm ERR! gyp info spawn args 'binding.gyp',npm ERR! gyp info spawn args '-f',npm ERR! gyp info spawn args 'make',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/opt/iobroker/node_modules/bufferutil/build/config.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-gyp/addon.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/18.18.2/include/node/common.gypi',npm ERR! gyp info spawn args '-Dlibrary=shared_library',npm ERR! gyp info spawn args '-Dvisibility=default',npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.18.2',npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/iobroker/node_modules/node-gyp',npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.18.2/<(target_arch)/node.lib',npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/bufferutil',npm ERR! gyp info spawn args '-Dnode_engine=v8',npm ERR! gyp info spawn args '--depth=.',npm ERR! gyp info spawn args '--no-parallel',npm ERR! gyp info spawn args '--generator-output',npm ERR! gyp info spawn args 'build',npm ERR! gyp info spawn args '-Goutput_dir=.'npm ERR! gyp info spawn args ]npm ERR! Traceback (most recent call last):npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py", line 51, in <module>npm ERR! sys.exit(gyp.script_main())npm ERR! ^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 670, in script_mainnpm ERR! return main(sys.argv[1:])npm ERR! ^^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in mainnpm ERR! return gyp_main(args)npm ERR! ^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_mainnpm ERR! [generator, flat_list, targets, data] = Load(npm ERR! ^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 150, in Loadnpm ERR! result = gyp.input.Load(npm ERR! ^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Loadnpm ERR! LoadTargetBuildFile(npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFilenpm ERR! build_file_data = LoadOneBuildFile(npm ERR! ^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFilenpm ERR! build_file_contents = open(build_file_path, "rU").read()npm ERR! ^^^^^^^^^^^^^^^^^^^^^^^^^^^npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gypnpm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/opt/iobroker/node_modules/node-gyp/lib/configure.js:351:16)npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)npm ERR! gyp ERR! System Linux 6.1.0-rpi4-rpi-v8npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/bufferutilnpm ERR! gyp ERR! node -v v18.18.2npm ERR! gyp ERR! node-gyp -v v7.1.2npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-11-03T17_45_47_557Z-debug-0.loghost.iobroker Cannot install iobroker.lgtv@2.1.2: 1
        
        ERROR: Process exited with code 25
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Snigga last edited by

          @snigga

          Keine Ahnung. Läuft hier 1A durch:

          echad@chet:~ $ iobroker add lgtv --debug
          NPM version: 10.2.0
          Installing iobroker.lgtv@2.1.2... (System call)
          
          added 15 packages in 11s
          
          108 packages are looking for funding
            run `npm fund` for details
          host.chet install adapter lgtv
          upload [3] lgtv.admin /opt/iobroker/node_modules/iobroker.lgtv/admin/index.html index.html text/html
          upload [2] lgtv.admin /opt/iobroker/node_modules/iobroker.lgtv/admin/index_m.html index_m.html text/html
          upload [1] lgtv.admin /opt/iobroker/node_modules/iobroker.lgtv/admin/lgtv.png lgtv.png image/png
          upload [0] lgtv.admin /opt/iobroker/node_modules/iobroker.lgtv/admin/words.js words.js application/javascript
          host.chet object system.adapter.lgtv created/updated
          host.chet create instance lgtv
          host.chet object system.adapter.lgtv.0.alive created
          host.chet object system.adapter.lgtv.0.connected created
          host.chet object system.adapter.lgtv.0.compactMode created
          host.chet object system.adapter.lgtv.0.cpu created
          host.chet object system.adapter.lgtv.0.cputime created
          host.chet object system.adapter.lgtv.0.memHeapUsed created
          host.chet object system.adapter.lgtv.0.memHeapTotal created
          host.chet object system.adapter.lgtv.0.memRss created
          host.chet object system.adapter.lgtv.0.uptime created
          host.chet object system.adapter.lgtv.0.inputCount created
          host.chet object system.adapter.lgtv.0.outputCount created
          host.chet object system.adapter.lgtv.0.eventLoopLag created
          host.chet object system.adapter.lgtv.0.sigKill created
          host.chet object system.adapter.lgtv.0.logLevel created
          host.chet object lgtv.0.info.connection created
          host.chet object lgtv.0.states created
          host.chet object lgtv.0.states.on created
          host.chet object lgtv.0.states.popup created
          host.chet object lgtv.0.states.turnOff created
          host.chet object lgtv.0.states.power created
          host.chet object lgtv.0.states.mute created
          host.chet object lgtv.0.states.volumeUp created
          host.chet object lgtv.0.states.volumeDown created
          host.chet object lgtv.0.states.3Dmode created
          host.chet object lgtv.0.states.channel created
          host.chet object lgtv.0.states.channelId created
          host.chet object lgtv.0.states.channelUp created
          host.chet object lgtv.0.states.channelDown created
          host.chet object lgtv.0.states.mediaPlay created
          host.chet object lgtv.0.states.mediaPause created
          host.chet object lgtv.0.states.mediaStop created
          host.chet object lgtv.0.states.mediaFastForward created
          host.chet object lgtv.0.states.mediaRewind created
          host.chet object lgtv.0.states.volume created
          host.chet object lgtv.0.states.input created
          host.chet object lgtv.0.states.currentApp created
          host.chet object lgtv.0.states.launch created
          host.chet object lgtv.0.states.openURL created
          host.chet object lgtv.0.states.youtube created
          host.chet object lgtv.0.states.drag created
          host.chet object lgtv.0.states.scroll created
          host.chet object lgtv.0.states.click created
          host.chet object lgtv.0.states.soundOutput created
          host.chet object lgtv.0.states.raw created
          host.chet object lgtv.0.remote.power created
          host.chet object lgtv.0.remote.red created
          host.chet object lgtv.0.remote.green created
          host.chet object lgtv.0.remote.yellow created
          host.chet object lgtv.0.remote.blue created
          host.chet object lgtv.0.remote.home created
          host.chet object lgtv.0.remote.menu created
          host.chet object lgtv.0.remote.cc created
          host.chet object lgtv.0.remote.back created
          host.chet object lgtv.0.remote.up created
          host.chet object lgtv.0.remote.down created
          host.chet object lgtv.0.remote.left created
          host.chet object lgtv.0.remote.right created
          host.chet object lgtv.0.remote.enter created
          host.chet object lgtv.0.remote.dash created
          host.chet object lgtv.0.remote.exit created
          host.chet object lgtv.0.remote.0 created
          host.chet object lgtv.0.remote.1 created
          host.chet object lgtv.0.remote.2 created
          host.chet object lgtv.0.remote.3 created
          host.chet object lgtv.0.remote.4 created
          host.chet object lgtv.0.remote.5 created
          host.chet object lgtv.0.remote.6 created
          host.chet object lgtv.0.remote.7 created
          host.chet object lgtv.0.remote.8 created
          host.chet object lgtv.0.remote.9 created
          host.chet object lgtv.0.states.mac created
          host.chet object lgtv.0.states.model created
          host.chet Set default value of lgtv.0.info.connection: false
          host.chet object system.adapter.lgtv.0 created
          echad@chet:~ $
          
          1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active last edited by Thomas Braun

            @snigga sagte in Test Adapter Lgtv v2.0.x:

            node-gyp -v

            Hast du das separat installiert?

            apt policy node-gyp
            
            mcm1957 1 Reply Last reply Reply Quote 0
            • mcm1957
              mcm1957 @Thomas Braun last edited by

              @thomas-braun
              Mir ist das da aufgefallen:

              /home/iobroker/.cache/node-gyp/18.18.2/include/node/common.gypi
              

              Kann es deiner Meinung nach sein, dass da irgendein Schrott gecashed wird?
              Liegt auch unter /home ?!?!

              Ev. sagt dir das ja was - ich kenn mich leider mit python null aus.

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @mcm1957 last edited by

                @mcm57 sagte in Test Adapter Lgtv v2.0.x:

                Kann es deiner Meinung nach sein, dass da irgendein Schrott gecashed wird?
                Liegt auch unter /home ?!?!

                Nöööö, das ist normal.
                Das Problem hier ist, das python 3.11 erst mit node-gyp >=8 funktioniert.

                Beim TE ist aber node-gyp -v v7.1.2 am Start.

                S mcm1957 2 Replies Last reply Reply Quote 0
                • S
                  Snigga @Thomas Braun last edited by

                  @thomas-braun ich hab nichts installiert raspi os image geflasht und iobroker installiert, danach backupit und das wars

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Snigga last edited by Thomas Braun

                    @snigga

                    Schau mal in die Datei
                    /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
                    rein und such die Stelle mit
                    build_file_contents = open (Müsste so um die Zeile 230 herum zu finden sein).

                    Wenn da

                    build_file_contents = open(build_file_path, 'rU').read()
                    

                    drin steht, änder es auf

                    build_file_contents = open(build_file_path, 'r').read()
                    

                    ab. Also das U löschen.

                    1 Reply Last reply Reply Quote 0
                    • mcm1957
                      mcm1957 @Thomas Braun last edited by

                      @thomas-braun said in Test Adapter Lgtv v2.0.x:

                      @mcm57 sagte in Test Adapter Lgtv v2.0.x:

                      Kann es deiner Meinung nach sein, dass da irgendein Schrott gecashed wird?
                      Liegt auch unter /home ?!?!

                      Nöööö, das ist normal.
                      Das Problem hier ist, das python 3.11 erst mit node-gyp >=8 funktioniert.

                      Beim TE ist aber node-gyp -v v7.1.2 am Start.

                      Kann das irgendwie an den dependencies liegen die der Adapter ausliefert?
                      Im package-lock hab ich nichts gefunden, außer "node-gyp-build": "^4.3.0", Für node-gyp steht nix drinnen.

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @mcm1957 last edited by

                        @mcm57

                        node-gyp kommt soweit ich weiß eigentlich (wie npm) beim Paket 'nodejs' huckepack mit. Deswegen ja meine Frage, ob da irgendwas mal nebenher installiert worden ist.

                        echad@chet:~ $ dpkg -S /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
                        nodejs: /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
                        echad@chet:~ $ apt policy node-gyp
                        node-gyp:
                          Installed: (none)
                          Candidate: 9.3.0-2
                          Version table:
                             9.3.0-2 500
                                500 http://deb.debian.org/debian testing/main arm64 Packages
                                500 http://deb.debian.org/debian testing/main armhf Packages
                        echad@chet:~ $
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S
                          Snigga @Thomas Braun last edited by

                          @thomas-braun

                          pi@iobroker:~ $ dpkg -S /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
                          nodejs: /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
                          pi@iobroker:~ $ apt policy node-gyp
                          node-gyp:
                            Installiert:           (keine)
                            Installationskandidat: 9.3.0-2
                            Versionstabelle:
                               9.3.0-2 500
                                  500 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf Packages
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • S
                            Snigga last edited by

                            pi@iobroker:/opt/iobroker/node_modules $ npm install node-gyp
                            
                            

                            Jetzt kann ich den Adapter wieder installieren

                            1 Reply Last reply Reply Quote 0
                            • K
                              Krys last edited by

                              Ich hatte mit der neusten Version leider kein Glück.
                              Der "on"-state wird nicht zuverlässig erkannt bzw. wechselt zwischendurch, obwohl der TV SJ800V an ist, egal in welchem TV-MODE (live-tv, HDMI, Cast)

                              Der State sagt einem eigens erstellen Datenpunkt, ob der TV an oder aus ist (falls nicht per Alexa eingeschaltet wurde. Wenn "Alexa, Fernseher an", ist klar, dass der Datenpunkt wahr wird und der TV eingeschaltet wird).

                              Wenn ich den TV per Fernbedienung einschalte, geht der eigene Datenpunkt auf wahr, wechselt aber irgendwann auch wieder auf falsch und die verknüpfte Hintergrundbeleuchtung geht aus. Er geht aber nicht mehr auf wahr, obwohl der TV läuft.

                              Wenn ich dann per "Alexa, Fernseher aus" sage, passiert logischerweise nichts mehr. Ich muss erst "Alexa, Fernseher an" (obwohl TV an) & dann "Alexa, Fernseher aus" sagen, damit es passt.

                              Skripte hatte ich bereits neu erstellt/angepasst, aber der Fehler bleibt.

                              Iobroker läuft unter
                              Node.js
                              v18.19.0

                              NPM
                              10.2.3

                              Bin nun wieder auf 1.1.12. Darunter läufts.

                              mcm1957 1 Reply Last reply Reply Quote 0
                              • mcm1957
                                mcm1957 @Krys last edited by

                                @krys
                                Gibst dazu dchon ein issue?
                                Wenn ja schreib bitte deine Erkenntnisse dazu. Wenn nein leg bitte eins an.

                                1 Reply Last reply Reply Quote 0
                                • C
                                  Crazy last edited by

                                  Hi, ich habe leider das Problem, dass mein TV mich nach dem einschalten (und sporadisch auch zwischendurch) wieder fragt, ob die die Verbindung ziwschen TV und "Mobilgerät" erlauben möchte.

                                  Adapter version: 2.1.2
                                  JS-Controller version: 4.0.24
                                  Node version: 18.16.1
                                  Operating system: linux
                                  LG webOS version: 6.4.0-15

                                  Kennt jemand eine Lösung für das Problem?
                                  Ich habe bereits in Issue im Github Projekt angelegt.

                                  Abgesehen von der Permission Anfrage funktioniert aber alles soweit.

                                  Thomas Braun Neuschwansteini 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Crazy last edited by

                                    @crazy sagte in Test Adapter Lgtv v2.0.x:

                                    JS-Controller version: 4.0.24
                                    Node version: 18.16.1

                                    Zunächst einmal den ganzen Sums auf einen aktuellen Stand bringen.

                                    1 Reply Last reply Reply Quote 0
                                    • Neuschwansteini
                                      Neuschwansteini @Crazy last edited by

                                      @crazy

                                      Habe 3 LGTV mit dem Adapter laufen, auf einem habe ich auch das Problem gehabt, dass ich ca 2 Tage lang dauernd mal die Anfrage bestaetigen musste, dann war auf einmal ruhe... bei den anderen war nach 3x fragen Ruhe..
                                      Denke, das liegt evt. auch noch an der Software Version des TV, nicht unbedingt an iobroker.

                                      Welche WebOS Versionen meine haben, kann ich dir leider nicht sagen, da diese nur im Netzwerk hängen und der Adapter diese Info nicht bereitstellt...

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        Crazy last edited by

                                        Mit Adapter Version 1.1.2 habe ich erstmal Ruhe. Obs wirklich daran liegt oder der TV sich jetzt auch dran "gewöhnt" hat weiß ich allerdings nicht 😁

                                        Neuschwansteini 1 Reply Last reply Reply Quote 0
                                        • Neuschwansteini
                                          Neuschwansteini @Crazy last edited by

                                          @crazy

                                          Trotzdem solltest du dein System auf den aktuellen Stand bringen… sonst holt dich die Zeit ein..

                                          1 Reply Last reply Reply Quote 1
                                          • R
                                            RISSN last edited by

                                            Moin, hat jemand zufällig auch das Problem, dass ihr den TV bedienen könnt, also zumindest ausschalten, aber ich kann ihn nicht mehr einschalten? Ich habe die IP und die WLAN MAC eingetragen.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            822
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            16
                                            76
                                            5989
                                            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