Skip to content

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

License

Notifications You must be signed in to change notification settings

marcoradocchia/datalogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <[email protected]>
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