lg-netcast
Netcast client written in js/ts
Installation
npm install lg-netcast
Usage Example
Initialize the client with the API host. By default the port is :8080
, make sure you add that to your API_HOST
Get current channel information
;client.get_sessionaccess_token.then;
Check the API docs for general usage on this package
Authentication
To interact with the TV, you need a valid access_token
. The access token is actually just the pair code of the TV, you can get that with client.display_pair_code()
.
CLI
This package comes with a very simple CLI to query TV information
Usage: netcast-cli [options] Options: --host: Host of the TV --access_token: Pair code of the TV --command: command to issue
❯ netcast-cli --host 192.168.1.14:8080 --access_token 1234567Querying current channel
License
MIT