Prerequisite
LG Developer site account
LG TV (webOS TV) with developer mode enabled
PC connected to the same TV network
Setup your LG TV
Enable Developer mode in LG TV
Getting Started
Reference document:
Keep your LG TV and PC connected in the same network
Installing the Developer Mode app
To install the Developer Mode app, follow the steps below:
First, turn on your webOS TV and check if your webOS TV is connected to a network.
Sign in with your LG Developer site account.
Go to the LG Content Store.
Search for "Developer Mode.”
Select the Developer Mode app and click the Install button.
Turning Developer Mode on
After installing the Developer Mode app, you can enable Developer Mode on your TV.
Setup your PC
CLI Installation on your PC
Follow the setups given in this link: https://webostv.developer.lge.com/develop/tools/cli-installation
Connecting TV and PC
Connecting with CLI
Follow the instructions below to add the target TV with the CLI:
Run the webOS TV CLI.
Execute the ares-setup-device command. Then, select add.
ares-setup-device name deviceinfo connection profile -------- ------------------------ ---------- ------- emulator developer@127.0.0.1:6622 ssh tv ** You can modify the device info in the above list, or add new device. ? Select: (Use arrow keys) > add modify remove
Input the information about your TV as below example:
** You can modify the device info in the above list, or add new device. ? Select: add ? Enter Device Name: tv2 ? Enter Device IP address: 10.123.45.67 ? Enter Device Port: 9922 ? Enter ssh user: prisoner ? Enter description: new device ? Select authentification: password ? Enter password: ? Save ? Yes name deviceinfo connection profile -------- -------------------------- ---- -- tv2 prisoner@10.123.45.67:9922 ssh tv emulator developer@127.0.0.1:6622 ssh tv
After adding your TV as the target device, check the result with the command below:
ares-setup-device --list
Click the Key Server button in the Developer Mode app.
Get the key file from your webOS TV with the following command on your PC:
ares-novacom --device tv2 --getkey
A command prompt appears to enter the Passphrase. Enter the exact characters (case-sensitive) as displayed on your TV screen. You can see Passphrase, which consists of 6 characters, on the bottom left side of the Developer Mode app screen.
A command prompt appears to enter the Passphrase. Enter the exact characters (case-sensitive) as displayed on your TV screen. You can see Passphrase, which consists of 6 characters, on the bottom left side of the Developer Mode app screen.
input passphrase [default: webos]:
Check the connection with your TV and PC with the following command:
ares-device-info --device tv2
If the connection is established successfully, the device information is displayed as shown below. The information might differ depending on your TV device.
modelName : WEBOS6.0 sdkVersion : 6.1.0 firmwareVersion : 00.00.00 boardType : K7LP_ATSC_KR otaId : HE_DTV_W21P_AFADATAA
Now, you are ready to install and launch your app on your real TV.
Install the web app
Install the package file of your web app
Make sure that your target device is running. Execute the following command with the name of the target device and package file as parameters to install the package file on the target device.
ares-install --device tv2 ./FILE_NAME.ipk
If the installation is successful, you will see a
success
message.
Note: If the shared file is in Zip format, Please unzip the file to get the IPK file before executing the command.