![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
homebridge-lg-netcast
Advanced tools
Homebridge plugin for interacting with LG Netcast-based TVs (2012, 2013)
Warning: This is very much a proof of concept to get my TV working. It might work for you, and it might also not.
npm install -g homebridge-lg-netcast
To pair with the TV, you need to get it to display a valid access token. If you leave out the access_token
key it should prompt it for you.
This repository also comes with a netcast-cli
helper tool that you can use to query the TV. Not specifying anything will prompt the access token / pair code:
netcast-cli --host 192.168.1.14:8080
Note: The default port is :8080
, make sure you specify that.
Add the platform to your config.json:
name
: Name of the accessoryhost
: IP + Port of your TVmac
: Mac address of the TV (currently unused)accessToken
: Pair code of the TVkeyInputDelay
: Delay in ms to wait before issuing repeated key presses (such as switching input source)offPauseDuration
: Delay in ms to pause polling for TV status after turning off. This is needed because the TV still responds to channel query requests when it has been turned offchannels
: List of channels that are availableTo identify the current channel, use the netcast-cli
helper tool:
❯ netcast-cli --host 192.168.1.14:8080 --access_token xxxxx
Querying current channel
{
chtype: 'terrestrial',
sourceIndex: '1',
physicalNum: '21',
major: '81',
displayMajor: '81',
minor: '65535',
displayMinor: '-1',
chname: 'フジテレビ',
progName: 'ザ・ノンフィクション たたかれても たたかれても… 〜山根明と妻のその 後〜',
audioCh: '0',
inputSourceName: 'TV',
inputSourceType: '0',
labelName: {},
inputSourceIdx: '0'
}
Important notes here are:
For HDMI devices: Specify only inputSourceType
and inputSourceIdx
. Set type
to "hdmi", this is very important!
For channels: Specify type
= "tuner" and the following keys:
"sourceIndex": "1",
"physicalNum": "25",
"major": "41",
"minor": "65535",
"inputSourceType": "0",
"inputSourceIdx": "0"
"platforms": [
{
"platform": "LgNetcast",
"name": "LGPlatform",
"accessories": [
{
"accessory": "LgNetcastTV",
"name": "TestTV",
"host": "192.168.1.14:8080",
"mac": "cc:2d:8c:a4:4a:d6",
"accessToken": "xxxxx",
"keyInputDelay": 600,
"offPauseDuration": 600000,
"channels": [
{
"name": "AppleTV",
"type": "hdmi",
"channel": {
"inputSourceType": "6",
"inputSourceIdx": "3"
}
},
{
"name": "Chromecast",
"type": "hdmi",
"channel": {
"inputSourceType": "6",
"inputSourceIdx": "4"
}
},
{
"name": "Nihon TV",
"type": "tuner",
"channel": {
"sourceIndex": "1",
"physicalNum": "25",
"major": "41",
"minor": "65535",
"inputSourceType": "0",
"inputSourceIdx": "0"
}
},
}
}
]
}
This is not supported. It's just not possible through the Netcast API nor wakeonlan, so as a workaround, use automations and HDMI CEC through LG Simplink. Turning the TV on itself won't do anything except setting the TV state to "on".
For example, use an AppleTV or Chromecast, and turn it on when the TV state turns to "on". (I personally use homebridge-apple-tv-remote and turn the ATV on when my TV turns on.)
This is also not supported through the Netcast API. The workaround that this plugin uses is to manually open the input source menu, then physically clicking LEFT/RIGHT, then hitting "OK". That's also why the inputSourceIdx
key is needed for everything.
To change the interval in which keys are being issued, change the keyInputDelay
config key. For my TV the UI loads really slow, so I had to set it between 600 - 1000ms.
Powered by https://github.com/dvcrn/lg-netcast
FAQs
Homebridge plugin to interact with LG Netcast TVs
The npm package homebridge-lg-netcast receives a total of 4 weekly downloads. As such, homebridge-lg-netcast popularity was classified as not popular.
We found that homebridge-lg-netcast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.