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

Overview

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

You might also like...
Turn static CLI commands into TUIs with ease
Turn static CLI commands into TUIs with ease

lazycli Turn static CLI commands into TUIs with ease Demo: Usage Pick a command that spits out either a list or table of content, like ls, docker ps,

CLI Tool for tagging and organizing files by tags.

wutag 🔱 🏷️ CLI tool for tagging and organizing files by tags. Install If you use arch Linux and have AUR repositories set up you can use your favour

📜🔁🎶 A CLI which converts morse code into sound

morse2sound 🎵 A CLI which converts morse code to sound Big shoutout to Br1ght0ne for guiding me how to use Rust on stream

A CLI utility to secretly copy secrets to your clipboard. 🦀
A CLI utility to secretly copy secrets to your clipboard. 🦀

seclip 🔒 📝 A CLI utility to secretly copy secrets to your clipboard. 🦀 Table of Contents Features Installation Usage Build From Source Contribution

Punic is a remote caching CLI built for Apple's .xcframework
Punic is a remote caching CLI built for Apple's .xcframework

Punic is a remote caching CLI built for Carthage that exclusively supports Apple's .xcframeworks.

CLI tool to bake your fresh and hot MD files

At least once in your Rust dev lifetime you wanted to make sure all code examples in your markdown files are up-to-date, correct and code is formated, but you couldn't make that done with already existing tools - fear not!

A CLI tool that allow you to create a temporary new rust project using cargo with already installed dependencies
A CLI tool that allow you to create a temporary new rust project using cargo with already installed dependencies

cargo-temp A CLI tool that allow you to create a new rust project in a temporary directory with already installed dependencies. Install Requires Rust

qsv - Performant CLI tool to query CSVs through SQL

qsv Performant CLI tool to query CSVs through SQL Installation After cloning the repository, you can install a binary locally using cargo install --pa

CLI search and replace | Space Age seD
CLI search and replace | Space Age seD

SAD! Space Age seD What does it do? Basically sad is a Batch File Edit tool. It will show you a really nice diff of proposed changes before you commit

Releases(v0.2.0)
  • v0.2.0(Aug 3, 2022)

    #Added

    • directory CLI option to specify output CSV file directory.
    • format CLI option to specify output CSV filename format.
    • quiet CLI option to mute standard output.
    • csv CLI option to enable CSV file output at launch.
    • Signal handler listening for SIGUSR1 signals to toggle (enable/disable) CSV file output at runtime (e.g. pkill --signal=SIGUSR1 datalogger).
    • build.rs build script to generate manpage & shell completions.
    • Makefile to compile/install/uninstall datalogger alongside manpage & shell completions.
    Source code(tar.gz)
    Source code(zip)
Owner
Marco Radocchia
I'm a physics student with real enthusiasm in computers and free and open source software.
Marco Radocchia
Emulates an Edge hardware-based room sensor client purely as a CLI application

ambi_mock_client Usage You must have Rust installed to build ambi_mock_client. You can find documentation on installing Rust here. Using cargo run > c

Jim Hodapp 1 Jan 22, 2022
A simple program that provides DBus interface to control display temperature and brightness under wayland without flickering

wl-gammarelay-rs Like wl-gammarelay, but written in rust, runs on a single thread, has three times less SLOC and uses DBus (for simplicity). Dbus inte

Max Verevkin 33 Nov 23, 2022
Provides a mock Ambi client that emulates real sensor hardware such as an Edge client

ambi_mock_client Provides a mock Ambi client that emulates real sensor hardware such as an Edge client. Usage You must have Rust installed to build am

Rust Never Sleeps 2 Apr 1, 2022
A tool to control the fan speed by monitoring the temperature of CPU via IPMI.

ipmi-fan-control A tool to control the fan speed by monitoring the temperature of CPU via IPMI. Why Our Dell R730 server's iDRAC is not works as expec

yinheli 9 Dec 29, 2022
A Raspberry Pi Pico-based sequencer for Eurorack

A Raspberry Pi Pico-based sequencer for Eurorack.

Pedro Ferreira 5 Oct 20, 2022
A controller for the display and fan of the Raspberry Pi Waveshare PoE HAT written in Rust 🦀

???? RustBerry-PoE-Monitor RustBerry-PoE-Monitor is a Rust-based monitoring and control tool for the Raspberry Pi, specifically designed for use with

jack 5 Nov 27, 2023
A CLI tool to get help with CLI tools 🐙

A CLI tool to get help with CLI tools ?? halp aims to help find the correct arguments for command-line tools by checking the predefined list of common

Orhun Parmaksız 566 Apr 16, 2023
Quickly build cool CLI apps in Rust.

QuiCLI Quickly build cool CLI apps in Rust. Getting started Read the Getting Started guide! Thanks This is only possible because of all the awesome li

Pascal Hertleif 538 Dec 5, 2022
A minimal CLI framework written in Rust

seahorse A minimal CLI framework written in Rust Features Easy to use No dependencies Typed flags(Bool, String, Int, Float) Documentation Here Usage T

Keisuke Toyota 223 Dec 30, 2022
CLI calculator app and library

calc Yet another CLI calculator. Inspired by the excellent https://github.com/alfredxing/calc. Installation With a Rust toolchain in place: cargo inst

Peter Goodspeed-Niklaus 34 Nov 13, 2022