Skip to content
πŸ”ˆ Sonos controller library written in Rust
Branch: master
Clone or download
Latest commit b6a77e5 Sep 10, 2019

License Downloads Version Docs is a Sonos controller library written in Rust. Currently it only supports playback operations (play, pause, stop, skip, add track to queue, remove track from queue) with no support for search operations as of yet.


extern crate sonos;

let devices = sonos::discover().unwrap();
let bedroom = devices.iter()
    .find(|d| == "Bedroom")
    .expect("Couldn't find bedroom");

let track = bedroom.track().unwrap();
let volume = bedroom.volume().unwrap();;
println!("Now playing {} - {} at {}% volume.", track.title, track.artist, volume);
You can’t perform that action at this time.