marcoradocchia / datalogger

Humidity & Temperature CLI datalogger for DHT22 sensor on Raspberry Pi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datalogger

GitHub releases GitHub source size GitHub open issues GitHub open pull requests GitHub sponsors GitHub license

Humidity & Temperature CLI datalogger for DHT22 sensor on Raspberry Pi.

Index

Install

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.

Git

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

Cargo

Master branch

To build and install from master branch run:

cargo install --git https://github.com/marcoradocchia/datalogger --branch master

Latest release from crates.io

To build and install the latest release from crates.io run:

cargo install datalogger

Usage

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

Changelog

Complete CHANGELOG.

License

GPLv3

About

Humidity & Temperature CLI datalogger for DHT22 sensor on Raspberry Pi.

License:GNU General Public License v3.0


Languages

Language:Rust 91.9%Language:Makefile 8.1%