dht-logger
Read DHT sensor data formatted in JSON over a serial interface and log it.
This crate is still under development and is not stable.
This crate is for logging measurement from a device reading DHT sensors and writing the measurements over a serial connection. The hardware producing the data does not matter, but it must be logging data over serial in JSON with fields for temperature, humidity, and heat index. Here's a pretty version of an example reading:
This code has been tested using arduino-dht-logger as the hardware source providing data over serial.
Example
The following example creates a DHT logger from a configuration file, then reads data from the serial port and logs it to whatever logging channels are configured.
use Path;
use DhtLogger;
let config_path = new;
let logger = from_config;
logger.read_sensor_and_log_data;