lighthouse 0.2.1

Command line tool and Philips Hue light control framework wrapping up the Hue API
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Save the bridge to file and load it back in;
fn main() {
    use lighthouse::*;

    let filename = "test_bridge";
    // Create bridge from an IP and a Key.
    let mut b = bridge::Bridge::new("127.0.0.1".parse().unwrap(), "<SOME-KEY>".to_owned()).unwrap();

    b.to_file(filename);
    bridge::Bridge::from_file(filename);
}