//! Sensor information or information fetched from the internet.

use super::sensors::BME280Data;

#[derive(Clone)]
pub struct Information {
    pub time: u64,
    pub valid: bool,

    pub inside: Option<TemperatureHumidity>,
    pub outside: Option<TemperatureHumidity>,
    pub bathroom: Option<TemperatureHumidity>,

    pub pressure: Option<u32>,

    pub local: Option<BME280Data>,
}

#[derive(Copy, Clone)]
pub struct TemperatureHumidity {
    pub temperature: i32,
    pub humidity: u32,
}
