diff --git a/README.md b/README.md index 0f30b8c..757a090 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/debian/cecvol.service b/debian/cecvol.service deleted file mode 100644 index b06c6ee..0000000 --- a/debian/cecvol.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Allow external control of CEC commands to TV -After=network.target - -[Service] -DynamicUser=yes -Restart=on-failure -ExecStart=/usr/bin/cecvol --use-lg-ip-control - -[Install] -WantedBy=multi-user.target diff --git a/src/bin/tvcli.rs b/src/bin/tvcli.rs index 55adc22..ff24032 100644 --- a/src/bin/tvcli.rs +++ b/src/bin/tvcli.rs @@ -25,7 +25,6 @@ fn main() -> Result<(), Box> { 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(()) } diff --git a/wearos/app/src/main/java/com/stevenandbonnie/cecvol/presentation/MainActivity.kt b/wearos/app/src/main/java/com/stevenandbonnie/cecvol/presentation/MainActivity.kt index 6ea3aaa..3b6f54a 100644 --- a/wearos/app/src/main/java/com/stevenandbonnie/cecvol/presentation/MainActivity.kt +++ b/wearos/app/src/main/java/com/stevenandbonnie/cecvol/presentation/MainActivity.kt @@ -132,8 +132,6 @@ fun WearApp() { ) } - // item { TextField(value = text, onValueChange = { text = it }, label = { - // Text("Label") }) } item { Row(modifier = contentModifier, horizontalArrangement = Arrangement.SpaceEvenly) { Button( @@ -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"