Skip to content
This repository has been archived by the owner on Apr 9, 2018. It is now read-only.

Homecontrol Server: Bindings: [Device] LG TV (Netcast OS)

Robert Morigi-Eades edited this page Mar 24, 2017 · 1 revision

Overview

-- coming soon --

TV Apps List

http://developer.lgappstv.com/TV_HELP/index.jsp?topic=%2Flge.tvsdk.references.book%2Fhtml%2FUDAP%2FUDAP%2FObtaining+the+Apps+list+Controller+Host.htm

Requesting from the TV

Requests are made to the TV using the following request URI:

http://{target_ip}:{port}/udap/api/data?target=applist_get&type={APPtype}&index={APPindex}&number={APPnumber}

Note - If both index and number are 0, the list of all apps in the category specified by type is fetched.

{APPtype} specifies the category for obtaining the list of apps. The following three values are available.

  1. List of all apps
  2. List of apps in the Premium category
  3. List of apps in the My Apps category

{APPindex} specifies the starting index of the apps list. The value range is from 1 to 1024.

{APPnumber} specifies the number of apps to be obtained from the starting index. This value has to be greater than or equal to the index value. The value can be from 1 to 1024.

Returned data from the TV

The data is returned from the TV in the following format:

<?xml version="1.0" encoding="utf-8"?>
<envelope>
    <dataList name="App List">
        <data>
            <auid>Unique ID of the app</auid>
            <name>app name</name>
            <type>category of the app</type>
            <cpid>content ID</cpid>
            <adult>whether the app is adult all or not</adult>
            <icon_name> app icon name</icon_name>
        </data>
        <data>
            ...
        </data>
    </dataList>
</envelope>

Returned data from the HomeControl-server

The server processes the data from the TV and converts it to json format, relaying to the clients upon request:

{
    "<auid>": {
        "auid": "<auid>",
        "name": "<name>",
        "type": "<type>",
        "cpid": "<cpid>",
        "adult": "<adult>",
        "icon_name": "<icon_name>"
    },
    "...": {
        "auid": "...",
        "name": "...",
        "type": "...",
        "cpid": "...",
        "adult": "...",
        "icon_name": "..."
    },
    ...
}

LG developer documentation for Netcast TVs

LG online documentation: http://developer.lgappstv.com/TV_HELP/index.jsp

Saved pdf version of LG documentation: https://github.com/robe16/HomeControl-documentation/blob/master/developer-docs/doc_device_lg-tv-netcast.pdf

Clone this wiki locally