2 releases
0.1.1 | Sep 26, 2023 |
---|---|
0.1.0 | Sep 26, 2023 |
#1070 in Web programming
31 downloads per month
44KB
423 lines
Kenku Control
Kenku Control is a library for controlling Kenku FM. It provides a set of functions and utilities to interact with the Kenku Remote.
Features
- List all tracks and sounds in your kenku.
- Control the playback state.
- individual controll of the medias and the folders.
Usage
Here's an example of how to use Kenku Control in your Rust code:
#[tokio::main]
async fn main() {
let ip = "127.0.0.1".to_string();
let port = "3333".to_string();
let controller = Controller::new(ip, port);
let playlists = controller.get_playlist().await.unwrap();
for track in playlists.tracks {
let status = track.play(&controller).await.unwrap();
println!("{status:#?}");
}
}
Make sure you have a Kenku Remote Online in your computer before running the code.
Contributing
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Dependencies
~4–17MB
~243K SLoC