NEWS
lgtv Adapter zur Steuerung von LG WebOS SmartTVs
-
@toschi
Da hat sich leider noch ein Fehler eingeschlichen gehabt.
Bitte nochmal probieren.@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 29os: 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 -
Von Github direkt installieren funktioniert. Über Update Button geht es nicht.
-
@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.
-
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.
Hab jetzt mal auf Hithub und NPM die Version 1.1.8 veröffentlicht.
Kann allerdings dauern, bis sie im Stable repository ist. -
Hallo zusammen,
aufgrund mangelnden Angebots :lol: habe ich mich entschlossen einen Adapter für LG WebOS SmartTV's auf Basis von Hobbyquakers https://github.com/hobbyquaker/lgtv2 zu entwickeln.
Ich habe es - bin kein JavaScript-Profi - schon soweit geschafft, dass er in der Adapterliste korrekt auftaucht:

Und auch die Adapter-Konfiguration ist fertig:

Bisher habe ich nur die Popup-Funktion eingebaut. Wenn also z.b. "lgtv.0.popup" irgend ein Wert übergeben wird (hier sind teilweise auch HTML-Tags möglich), wird auf dem Fernseher ein Info-Popup angezeigt:

Nun mein großes Problem:
Ich habe das bisher extrem "quick & dirty" gelöst, indem ich Hobbyquakers LGTV2 mittels
var lgtvobj = require("lgtv2")({url: 'ws://' + adapter.config.IP + ':3000', timeout: adapter.config.timeout, reconnect: adapter.config.reconnect});eingebunden, würde aber gern die Funktionen aus Hobbyquakers Script direkt implementieren wollen, um es übersichtlicher zu haben.
Einfaches "copy & paste" geht da natürlich nicht.
Daher nun meine Frage, ob mir da jemand helfen kann bzw. mir Tipps geben kann, wie ich am Besten vorgehe?
Ist so ein Adapter überhaupt gewünscht?
Was haltet Ihr bisher davon?
-
Der Dank gilt @dirkhe . Er hat den "Fehler" ja gefunden :)
-
Der Dank gilt @dirkhe . Er hat den "Fehler" ja gefunden :)
@SchuetzeSchulz sagte in lgtv Adapter zur Steuerung von LG WebOS SmartTVs:
Der Dank gilt @dirkhe
Dank an @dirkhe :grinning:
-
Hallo zusammen,
aufgrund mangelnden Angebots :lol: habe ich mich entschlossen einen Adapter für LG WebOS SmartTV's auf Basis von Hobbyquakers https://github.com/hobbyquaker/lgtv2 zu entwickeln.
Ich habe es - bin kein JavaScript-Profi - schon soweit geschafft, dass er in der Adapterliste korrekt auftaucht:

Und auch die Adapter-Konfiguration ist fertig:

Bisher habe ich nur die Popup-Funktion eingebaut. Wenn also z.b. "lgtv.0.popup" irgend ein Wert übergeben wird (hier sind teilweise auch HTML-Tags möglich), wird auf dem Fernseher ein Info-Popup angezeigt:

Nun mein großes Problem:
Ich habe das bisher extrem "quick & dirty" gelöst, indem ich Hobbyquakers LGTV2 mittels
var lgtvobj = require("lgtv2")({url: 'ws://' + adapter.config.IP + ':3000', timeout: adapter.config.timeout, reconnect: adapter.config.reconnect});eingebunden, würde aber gern die Funktionen aus Hobbyquakers Script direkt implementieren wollen, um es übersichtlicher zu haben.
Einfaches "copy & paste" geht da natürlich nicht.
Daher nun meine Frage, ob mir da jemand helfen kann bzw. mir Tipps geben kann, wie ich am Besten vorgehe?
Ist so ein Adapter überhaupt gewünscht?
Was haltet Ihr bisher davon?
@SchuetzeSchulz
hi
bei der installation probleme - im info wird update auf 1.1.8 angezeigt - wenn fertig ist es aber immer noch 1.1.7wenn ich über "katze" installiere kommt code 25
-
@SchuetzeSchulz
hi
bei der installation probleme - im info wird update auf 1.1.8 angezeigt - wenn fertig ist es aber immer noch 1.1.7wenn ich über "katze" installiere kommt code 25
Hi,
ich habe das gleiche Problem.Nach Installation von 1.1.8 habe ich immer noch 1.1.7 und mir wird die Installation auf 1.1.8 vorgeschlagen.
-
Hi,
ich habe das gleiche Problem.Nach Installation von 1.1.8 habe ich immer noch 1.1.7 und mir wird die Installation auf 1.1.8 vorgeschlagen.
Bitte bei Problemen den Adapter mal komplett deinstallieren und dann neu installieren.
-
Bitte bei Problemen den Adapter mal komplett deinstallieren und dann neu installieren.
@SchuetzeSchulz adapter gelöscht - neu installiert - selbes problem

-
Bitte bei Problemen den Adapter mal komplett deinstallieren und dann neu installieren.
noch eine weitere frage:
der datenpunkt channel wird nicht upgedated - woran könnte das liegen -
noch eine weitere frage:
der datenpunkt channel wird nicht upgedated - woran könnte das liegen -
Bei mir das Gleiche, kann von 1.1.7 nicht auf 1.1.8 updaten. Nach Deinstallation von 1.1.7 wird 1.1.8 angeboten. Installation endet mit Exit code 0, aber er hat 1.1.7 installiert. Beim Versuch 1.1.7 zu installieren kommt Exit code 29.
Beim Versuch zu starten steht im Loghost.ioBrokerDebian10VM 2020-07-11 08:06:07.188 info Restart adapter system.adapter.lgtv.0 because enabled host.ioBrokerDebian10VM 2020-07-11 08:06:07.188 error instance system.adapter.lgtv.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.ioBrokerDebian10VM 2020-07-11 08:06:07.188 error Caught by controller[0]: at internal/main/run_main_module.js:17:47 host.ioBrokerDebian10VM 2020-07-11 08:06:07.188 error Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) host.ioBrokerDebian10VM 2020-07-11 08:06:07.188 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.lgtv/lgtv.js:622:5) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at startAdapter (/opt/iobroker/node_modules/iobroker.lgtv/lgtv.js:344:15) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at new Adapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:393:32) host.ioBrokerDebian10VM 2020-07-11 08:06:07.186 error Caught by controller[0]: at JSON.parse (<anonymous>) host.ioBrokerDebian10VM 2020-07-11 08:06:07.186 error Caught by controller[0]: SyntaxError: Unexpected token } in JSON at position 520 host.ioBrokerDebian10VM 2020-07-11 08:06:07.186 error Caught by controller[0]: ^ host.ioBrokerDebian10VM 2020-07-11 08:06:07.186 error Caught by controller[0]: }, host.ioBrokerDebian10VM 2020-07-11 08:06:07.185 error Caught by controller[0]: undefined:17 host.ioBrokerDebian10VM 2020-07-11 08:06:06.741 info instance system.adapter.lgtv.0 started with pid 21423 -
Bei mir das Gleiche, kann von 1.1.7 nicht auf 1.1.8 updaten. Nach Deinstallation von 1.1.7 wird 1.1.8 angeboten. Installation endet mit Exit code 0, aber er hat 1.1.7 installiert. Beim Versuch 1.1.7 zu installieren kommt Exit code 29.
Beim Versuch zu starten steht im Loghost.ioBrokerDebian10VM 2020-07-11 08:06:07.188 info Restart adapter system.adapter.lgtv.0 because enabled host.ioBrokerDebian10VM 2020-07-11 08:06:07.188 error instance system.adapter.lgtv.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.ioBrokerDebian10VM 2020-07-11 08:06:07.188 error Caught by controller[0]: at internal/main/run_main_module.js:17:47 host.ioBrokerDebian10VM 2020-07-11 08:06:07.188 error Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) host.ioBrokerDebian10VM 2020-07-11 08:06:07.188 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.lgtv/lgtv.js:622:5) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at startAdapter (/opt/iobroker/node_modules/iobroker.lgtv/lgtv.js:344:15) host.ioBrokerDebian10VM 2020-07-11 08:06:07.187 error Caught by controller[0]: at new Adapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:393:32) host.ioBrokerDebian10VM 2020-07-11 08:06:07.186 error Caught by controller[0]: at JSON.parse (<anonymous>) host.ioBrokerDebian10VM 2020-07-11 08:06:07.186 error Caught by controller[0]: SyntaxError: Unexpected token } in JSON at position 520 host.ioBrokerDebian10VM 2020-07-11 08:06:07.186 error Caught by controller[0]: ^ host.ioBrokerDebian10VM 2020-07-11 08:06:07.186 error Caught by controller[0]: }, host.ioBrokerDebian10VM 2020-07-11 08:06:07.185 error Caught by controller[0]: undefined:17 host.ioBrokerDebian10VM 2020-07-11 08:06:06.741 info instance system.adapter.lgtv.0 started with pid 21423 -
-
@sigi234 ich habe latest - konntest du 1.1.8 installieren ?
