Humidity & Temperature CLI datalogger for DHT22 sensor on Raspberry Pi.
The following installation instructions assume a Rust toolchain installed
on the system. In order to install such toolchain you can use rusutp
: see
https://www.rust-lang.org/tools/install for further installation
instructions and notes.
If you want to install datalogger
, including manpage and shell
completions (Bash, Zsh, Fish), clone this repository and compile/install
using make
:
git clone https://github.com/marcoradocchia/datalogger
cd datalogger
make
sudo make install
To build and install from master branch run:
cargo install --git https://github.com/marcoradocchia/datalogger --branch master
To build and install the latest release from crates.io run:
cargo install datalogger
datalogger 0.2.0
Marco Radocchia <marco.radocchia@outlook.com>
Humidity & Temperature CLI datalogger for DHT22 sensor on Raspberry Pi.
USAGE:
datalogger [OPTIONS] --pin <PIN>
OPTIONS:
--csv Dumps data to CSV file (can be swapped at runtime signalling
`datalogger` process with SIGUSR1)
-d, --directory <DIRECTORY> Output CSV directory [default: ~]
-f, --format <FORMAT> Output CSV filename format (see
https://docs.rs/chrono/latest/chrono/format/strftime/index.html
for valid specifiers) [default: %Y%m%d]
-h, --help Print help information
-i, --interval <INTERVAL> Interval in seconds between consecutive measures [default: 120]
-p, --pin <PIN> GPIO pin for DHT22 data connection
-P, --pipe Print output as `<hum,temp>` to stdout (for use in unix pipeline)
-q, --quiet Mute standard output
-V, --version Print version information
Complete CHANGELOG.