All Projects → klattimer → Lgwebosremote

klattimer / Lgwebosremote

Licence: mit
Command line webOS remote for LGTVs

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Lgwebosremote

Http Kit
http-kit is a minimalist, event-driven, high-performance Clojure HTTP server/client library with WebSocket and asynchronous support
Stars: ✭ 2,234 (+958.77%)
Mutual labels:  websockets
Bolt Python
A framework to build Slack apps using Python
Stars: ✭ 190 (-9.95%)
Mutual labels:  websockets
Ixwebsocket
websocket and http client and server library, coming with ws, a command line swiss army knife utility
Stars: ✭ 204 (-3.32%)
Mutual labels:  websockets
Speechtotext Websockets Javascript
SDK & Sample to do speech recognition using websockets in Javascript
Stars: ✭ 191 (-9.48%)
Mutual labels:  websockets
Node Tradfri Client
Library to talk to IKEA Trådfri Gateways without external binaries
Stars: ✭ 193 (-8.53%)
Mutual labels:  smarthome
Pgdeltastream
Streaming Postgres logical replication changes atleast-once over websockets
Stars: ✭ 197 (-6.64%)
Mutual labels:  websockets
Javawebsocketclient
RxJava WebSocket library for Java and Android
Stars: ✭ 188 (-10.9%)
Mutual labels:  websockets
Async Tungstenite
Async binding for Tungstenite, the Lightweight stream-based WebSocket implementation
Stars: ✭ 207 (-1.9%)
Mutual labels:  websockets
Vertx Mqtt Broker
Vert.x based MQTT Broker
Stars: ✭ 193 (-8.53%)
Mutual labels:  websockets
Hexnut
🔩 Hexnut is a middleware based, express/koa like framework for web sockets
Stars: ✭ 204 (-3.32%)
Mutual labels:  websockets
Dotnetify React Template
Real-time React SPA template using dotNetify.
Stars: ✭ 191 (-9.48%)
Mutual labels:  websockets
Esp8266 React
A framework for ESP8266 & ESP32 microcontrollers with a React UI
Stars: ✭ 193 (-8.53%)
Mutual labels:  websockets
Simple Vpn
A simple VPN allowing mesh-like communication between nodes, over websockets
Stars: ✭ 201 (-4.74%)
Mutual labels:  websockets
Platypus
Large-scale server monitoring application written in Golang
Stars: ✭ 190 (-9.95%)
Mutual labels:  websockets
Iobroker.admin
user interface for configuration and administration
Stars: ✭ 207 (-1.9%)
Mutual labels:  smarthome
Netflux
JavaScript client and server side transport API based on WebRTC & WebSocket
Stars: ✭ 188 (-10.9%)
Mutual labels:  websockets
Appweb
Appweb Community Edition Embedded Web Server
Stars: ✭ 196 (-7.11%)
Mutual labels:  websockets
Aleph
Asynchronous communication for Clojure
Stars: ✭ 2,389 (+1032.23%)
Mutual labels:  websockets
Iobroker.zigbee
Zigbee communcation with Hue, Xiaomi, Lighttify... via TI CC253x USB stick
Stars: ✭ 208 (-1.42%)
Mutual labels:  smarthome
Djangochannelsgraphqlws
Django Channels based WebSocket GraphQL server with Graphene-like subscriptions
Stars: ✭ 203 (-3.79%)
Mutual labels:  websockets

LGWebOSRemote

Command line webOS remote for LGTVs. This tool uses a connection via websockets to port 3000 on newer LG TVs, there are other tools which use a restful connection to port 8080 however that port is closed on newer firmware versions.

Supported models

Tested with

  • UF830V
  • UH650V
  • UJ635V
  • UJ6309
  • UJ6570
  • UF776V
  • HU80KG.AEU (CineBeam 4K)
  • OLED55B7
  • SK8500PLA
  • SM9010PLA
  • OLED65B9PUA
  • OLED55C9
  • OLED55CXAUA
  • OLED55CX5LB
  • 43LM6300PSB
  • [please add more!]

Tested with python 2.7 on mac/linux and works fine, your mileage may vary with windows, patches welcome.

Likely supports

All devices with firmware major version 4, product name "webOSTV 2.0"

Available Commands

scan
auth <Hostname/IP> <name>
audioStatus
audioVolume
closeApp <appid>
getTVChannel
input3DOff
input3DOn
inputChannelDown
inputChannelUp
inputMediaFastForward
inputMediaPause
inputMediaPlay
inputMediaRewind
inputMediaStop
listApps
listChannels
listInputs
listServices
mute <muted>
notification <message>
nofificationWithIcon <message> <image_url>
off
on
openAppWithPayload <payload>
openBrowserAt <url>
openYoutubeId <videoid>
openYoutubeURL <url>
setInput <input_id>
setTVChannel <channel>
setVolume <level>
startApp <appid>
swInfo
volumeDown
volumeUp

Install

Requires wakeonlan, websocket for python and iproute2

python -m venv lgtv-venv
source lgtv-venv/bin/activate
pip install git+https://github.com/klattimer/LGWebOSRemote

Example usage

# Scan/Authenticate
$ lgtv scan
{
    "count": 1,
    "list": [
        {
            "address": "192.168.1.31",
            "model": "UF830V",
            "uuid": "10f34f86-0664-f223-4b8f-d16a772d9baf"
        }
    ],
    "result": "ok"
}
$ lgtv auth 192.168.1.31 MyTV
# At this point the TV will request pairing, follow the instructions on screen

# Commands are basically
#$ lgtv TVNAME COMMAND COMMAND ARGS

$ lgtv MyTV on
$ lgtv MyTV off

# If you have the youtube plugin
$ lgtv MyTV openYoutubeURL https://www.youtube.com/watch?v=dQw4w9WgXcQ

# Otherwise, this works reasonably well
$ lgtv MyTV openBrowserAt https://www.youtube.com/tv#/watch?v=dQw4w9WgXcQ

Caveats

You need to auth with the TV before being able to use the on command as it requires the mac address.

Bugs

I couldn't test youtube because it seems the app isn't installed and not available to download right now maybe they're updating it?

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].