thermostat-pi-dht
Version:
A Node.js framework (standalone app + lib) to control a heating system with a Raspberry Pi using DHT11 or DHT22/AM2302 sensors and GPIO actuators.
15 lines (14 loc) • 735 B
TypeScript
import { ThermostatSetpoint } from './ThermostatSetpoint';
/** The data describing the latest state of a thermostat (without its technical configuration). */
export interface ThermostatData extends ThermostatSetpoint {
/** UNIX timestamp (in milliseconds) of the latest measurement. */
timestamp?: number;
/** Temperature (in °C) measured in the latest measurement; possibly with correction summand applied. */
temperature?: number;
/** Raw temperature (in °C) measured in the latest measurement. */
rawTemperature?: number;
/** Relative humidity (in %) measured in the latest measurement. */
humidity?: number;
/** Determines whether the heating is currently on. */
heatingIsOn?: boolean;
}