LG webos client

Simple LG webOS client written purerly in Rust. Inspired by lgtv.js

Supported commands

Example

Add to Cargo.toml

toml [dependencies] lg-webos-client = "0.1.0" tokio = { version = "1.2.0", default-features = false, features = ["full"] }

And then write code

```rust

[tokio::main]

async fn main() { let client = lgwebosclient::WebosClient::new("ws://192.168.1.62:3000/").await; // wait for registration... std::thread::sleep(std::time::Duration::frommillis(3000)); client .sendcommand(lgwebosclient::Command::SetVolume(20)).await; } ```

The code above simply connects to tv in local network and after successfull registration it sets volume to 20.