1 unstable release
Uses old Rust 2015
0.1.0 | Jun 9, 2018 |
---|
#27 in #humidity
14KB
255 lines
usbrh
A small tool and library for the USBRH (USB-connected temperature and humidity sensor).
The USBRH is a product of Strawberry Linux. It uses Sensirion SHT11 sensor.
https://strawberry-linux.com/catalog/items?code=52001
Install
# If you are using openSUSE
% sudo zypper install libusb-1_0-devel
# or if you are using Ubuntu
% sudo apt install libusb-dev
% cargo build --release
% sudo install -s target/release/usbrh /usr/local/bin
or
% cargo install usbrh
Usage
% usbrh --help
% sudo usbrh
temperature humidity
25.02 60.00
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Acknowledgements
- USBRH driver for Linux for the USB protocol.
Resources
- https://www.sensirion.com/en/environmental-sensors/humidity-sensors/digital-humidity-sensors-for-accurate-measurements/
- https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/0_Datasheets/Humidity/Sensirion_Humidity_Sensors_SHT1x_Datasheet.pdf
- https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/1_Subsidiaries_Documents/1_Japan/1_Humidity_Sensors/Sensirion_Humidity_Sensors_SHT1x_Datasheet_V5b_J.pdf
Dependencies
~5.5MB
~93K SLoC