Skip to content

Commit

Permalink
tweaks based on looking at the diff
Browse files Browse the repository at this point in the history
  • Loading branch information
stvnrhodes committed Mar 6, 2024
1 parent 26293a7 commit 220cb7a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ The LG IP code works by opening a TCP connection and sending symmetrically-encry

The CEC code works by calling ioctls on `/dev/vchiq` so it only works on a raspberry pi.

Use the following command to build a debian package that works on Raspbian.

```shell
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=/usr/bin/arm-linux-gnueabihf-gcc cargo deb --target=armv7-unknown-linux-gnueabihf
```

There's no authentication within the server code. It expects to be run behind a proxy that terminates TLS and provides HTTP basic authentication.

The API is designed around being used as a Google Smart Home Action, but that feature isn't currently functional.
11 changes: 0 additions & 11 deletions debian/cecvol.service

This file was deleted.

1 change: 0 additions & 1 deletion src/bin/tvcli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let tv = lgip::LGTV::new("LGWebOSTV.local".to_string(), mac_addr, &args.keycode);
let mut cmd = args.commands.join(" ");
cmd.push_str("\r");
println!("{}", cmd);
println!("{}", tv.send_command(&cmd)?);
Ok(())
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ fun WearApp() {
)
}

// item { TextField(value = text, onValueChange = { text = it }, label = {
// Text("Label") }) }
item {
Row(modifier = contentModifier, horizontalArrangement = Arrangement.SpaceEvenly) {
Button(
Expand Down Expand Up @@ -378,12 +376,9 @@ fun WearApp() {
}

fun sendPostRequest(cmd: Execution, context: Context) {
Log.d("a", "b")

CoroutineScope(Dispatchers.IO).launch {
val settings = context.dataStore.data.first()
val mURL = URL("https://" + settings[WEBSITE_URL_PREF] + "/fulfillment")
Log.d("a", mURL.toString())
val auth = settings[WEBSITE_USERNAME_PREF] + ":" + settings[WEBSITE_PASSWORD_PREF]
with(mURL.openConnection() as HttpURLConnection) {
requestMethod = "POST"
Expand Down

0 comments on commit 220cb7a

Please sign in to comment.