Nod

Submit a ticket My Tickets
Welcome
Login  Sign up

WebOS Debugging

Useful Information

Update Firmware - Requires LG Developer account credentials


Remote Debugging

Applications can be debugged remotely, using the SCAP API from LG, apps using console.log() will be inspectable remotely in Chrome.

<html>
<head>
<title>Enable Debug mode</title>

<!--  Include SCAP API Library -->
<script type="text/javascript" src="./js/cordova/2.7.0/cordova.webos.js"></script>
<script type="text/javascript" src="./js/cordova-cd/1.2/configuration.js"></script>
</head>


var configuration = new Configuration();
var options = {};
options.enabled = true; //enabling debug mode
configuration.debug(
    function successCb(){
        console.log("Succeeded to enable the debug mode");
    },
    function failureCb(){
        console.log("Failed to enable the debug mode");
    },
    options);

When the app is running and the screen is connected to the network, open Chrome on another device and navigate to http://[screen IP address]:9998 e.g. 192.168.88.254:9998. A list will appear with the apps which can be inspected, clicking one will show a web inspector and allow for debugging of JS etc.

LG WebOS TVs have a hard limit of 2 videos playing at once.


IPKs

IPKs are simply .deb debian archives, which themselves are simply ar archives containing specific files, viz.

  • a file named debian-binary containing the 4 byte string "2.0\n"
  • a file named control.tar.gz with a gzipped tar archive of control information
  • a file named data.tar.gz or data.tar with a possibly gzipped tar archive of data

The owner and group id of each of these three files can be set to 0 and the file mode to 100644.


Autoprovisioning

LG autoprovisioning uses the auto set feature that is available on all the platforms we support (webOS 2.0, 3.0, 3.2, 4.0).

If a USB drive (MBR/FAT formatted) is in the screen when it starts up and it contains a file named scap_installation.json, that will be used to update the server settings on the screen, and the new application will be fetched and launched automatically, with the following caveats:

  • SM5KE screens require recent (July 2019) firmware in order to perform auto set on a wireless network. This firmware can be delivered on the same USB drive.
  • The Auto Set server setting must be set to On. This is the factory default.
  • If there is a currently installed application, that application may launch before the new application is installed as a result of the auto set. This can be prevented by changing the Application Launch Mode in the server setting from Local to USB, so the screen cannot find the current application to launch it.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.