buerostatus

Crates.iobuerostatus
lib.rsbuerostatus
version0.1.1
sourcesrc
created_at2016-05-26 14:40:35.937864
updated_at2017-01-24 23:30:15.111696
descriptionA Rust crate that wraps the buerostatus API from https://github.com/fsr
homepagehttps://github.com/Feliix42/buerostatus-rs
repositoryhttps://github.com/Feliix42/buerostatus-rs
max_upload_size
id5192
size5,098
Felix Suchert (Feliix42)

documentation

https://feliix42.github.io/buerostatus-rs/

README

buerostatus-rs

A small Rust crate that wraps the API of fsr/buerostatus and tells wou whether someone is in the office.

Build Status Crates.io

Example

if let Ok(is_open) = get_buerostatus() {
    if is_open { println!("Someone's inside!"); }
    else { println!("No one is there..."); }
}
else {
    println!("An error occured!");
}

Usage & Documentation

Please check the documentation for details on certain functions and errors.

Roadmap

  • Write some examples
  • Add travis
  • Documentation
  • Maybe add function to get exact light value

License

This work is licensed under the MIT License. For more information, head over to the LICENSE file.

Commit count: 12

cargo fmt