Skip to content

A Rust library for simplifying API interactions with Samsung Smart TVs. Easily send remote commands, control TV functions, and manage connections using an intuitive API wrapper.

License

Notifications You must be signed in to change notification settings

vivekrp/samsung-tv-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

samsung-tv-rs

A Rust library for interacting with Samsung Smart TVs via their API.

Installation

Add this to your Cargo.toml:

[dependencies]
samsung-tv-rs = "0.1.0"

Usage

use samsung_tv_rs::{Commands, SamsungTV};

#[tokio::main]
async fn main() {
    let tv = SamsungTV::new("192.168.1.100", 8001, "v2");

    match tv.get_info().await {
        Ok(_) => println!("Successfully called TV API"),
        Err(e) => eprintln!("Failed to get TV info: {}", e),
    }

    match tv.send_command(Commands::KEY_VOLUP).await {
        Ok(_) => println!("Volume up command sent successfully!"),
        Err(e) => eprintln!("Failed to send command: {}", e),
    }
}

License

This project is licensed under the MIT License.

About

A Rust library for simplifying API interactions with Samsung Smart TVs. Easily send remote commands, control TV functions, and manage connections using an intuitive API wrapper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 71.0%
  • Python 29.0%