Homecontrol Server: Bindings: [Device] LG TV (Netcast OS)
-- coming soon --
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.
- List of all apps
- List of apps in the Premium category
- 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.
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>
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 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