LG WebOS TV and Loxone

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • J V
    LoxBus Spammer
    • 28.08.2015
    • 367

    #1

    LG WebOS TV and Loxone

    Hello,

    Has anyone tried to control a LG WebOS TV from Loxone?
    From what I can find, it can be controlled via json, after first getting a pairing key that is specific for the client. I have found information that seems helpful here:
    Python: http://harizanov.com/2013/12/control...-raspberry-pi/

    I assume it will be necessary to get this key first and store it for use in other commands.

    Thanks!

    Jörg
  • J V
    LoxBus Spammer
    • 28.08.2015
    • 367

    #2
    Perhaps I linked the wrong document... Later TVs use Webos, and can be controlled via node.js.
    Control LG WebOS TV using node.js. Contribute to msloth/lgtv.js development by creating an account on GitHub.


    Is there a way of running node.js on the Miniserver? Or is it possible to mimic the behaviour by sending/receiving network packets?

    I suspect this part of the code is similar to sending a TCP packet:
    Code:
    var send_command = function(prefix, msgtype, uri, payload, fn) {
      command_count++;
      var msg = '{"id":"' + prefix + command_count + '","type":"' + msgtype + '","uri":"' + uri + '"';
      if (typeof payload === 'string' && payload.length > 0) {
        msg += ',"payload":' + payload + "}";
      } else {
        msg += "}";
      }
    console.log("---> Sending command:" + msg);
    I'll keep working on it...
    Zuletzt geändert von J V; 15.12.2017, 10:16.

    Kommentar

    • Christian Fenzl
      Lebende Foren Legende
      • 31.08.2015
      • 11233

      #3
      No and No.
      You have to use a more open device in between (like a Raspberry), as Loxone does not provide http session handling.

      Regards, Christian
      Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

      Kommentar

      • J V
        LoxBus Spammer
        • 28.08.2015
        • 367

        #4
        Thanks for the clear and to the point answer.

        Ok, so something to add via EventGhost (my amplifier communicates via this as it lacks network but has a serial connection to a computer). But a better option probably is adding it to a LoxBerry... I'll really have to experiment with it (squeezebox, tv, ....). I'd love to install it in Docker, but cannot as my current system does not support Hyper-V (old laptop), but I should manage in virtualbox just to play with it.

        Kommentar

        Lädt...