|
@@ -1,4 +1,5 @@
|
|
|
mod battery;
|
|
|
+mod disk;
|
|
|
mod time;
|
|
|
mod temperature;
|
|
|
|
|
@@ -7,6 +8,7 @@ use comm::Channel;
|
|
|
use config::Config;
|
|
|
use std::thread;
|
|
|
use self::battery::BatterySensor;
|
|
|
+use self::disk::DiskSensor;
|
|
|
use self::temperature::TempSensor;
|
|
|
use self::time::TimeSensor;
|
|
|
|
|
@@ -20,6 +22,7 @@ pub fn sensors(tx: &Channel, config: &Config) {
|
|
|
|
|
|
|
|
|
let mut sensors: Vec<Box<Sensor>> = vec![
|
|
|
+ Box::new(DiskSensor::new("/")),
|
|
|
Box::new(TempSensor::new(zone)),
|
|
|
Box::new(TimeSensor::new("UTC %H:%M", true)),
|
|
|
Box::new(TimeSensor::new("%Y-%m-%d %H:%M", false))
|