Registry / utility / sensors

sensors

JSON →
library0.2.2rscratesunverified

A Rust-friendly interface to lm-sensors for reading hardware sensor data.

# Cargo.toml [dependencies] sensors = "0.2.2"
INSTALL
IMPORT
SIG · SENSORS
S
sensors
utilityrustv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sensor
use sensors::Sensor;

Opens a sensor named 'coretemp'.

use sensors::Sensor; fn main() { let sensor = Sensor::new("coretemp").unwrap(); println!("Sensor: {:?}", sensor); }
Debug
Known issues
gotchaRequires lm-sensors to be installed on the system.
fix
Install lm-sensors via package manager (e.g., apt install lm-sensors).
affects: >=0.1.0
Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
sensors — cargo add sensors · libregistry