From 58541ee9e74b71b870f1773030f0a61b86fd0300 Mon Sep 17 00:00:00 2001 From: euxane Date: Sun, 24 Nov 2024 17:17:02 +0100 Subject: readme: add --- readme.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 readme.md (limited to 'readme.md') diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..d404a98 --- /dev/null +++ b/readme.md @@ -0,0 +1,55 @@ +tickwatch +========= + +CLI usage +--------- + +```help +tickwatch: A monitoring and visualization tool + +Usage: tickwatch [OPTIONS] + +Monitor options: + --ping=HOST Monitor ping latency to specified IP or hostname + Prefix hostname with 4/ or 6/ to force IP version + --value=PATH Monitor a sysfs file's value + --change=PATH Monitor changes in a sysfs file's value + +Display options: + --scale=CHOICE Set scaling method for values + Choices: log2 (default), log10, ln, linear + --symbols=CHOICE Set output symbol set + Choices: unicode (default), numeric + --min=VALUE Set minimum value for scaling (default: 0) + --max=VALUE Set maximum value for scaling (default: 1000) + +Other options: + --help, -h Display this help message + --version, -v Display the version + +Examples: + tickwatch --ping=6/euxane.net + + tickwatch --scale=linear --max=50000 \ + --value=/sys/class/thermal/thermal_zone0/temp + + tickwatch --max=100000 \ + --change=/sys/class/net/eth0/statistics/rx_packets +``` + + +Development commands +-------------------- + +* Enter the development shell: `nix develop` +* Run tests in loop: `watchexec -cclear -r nim r -d:test main.nim` +* Build executable: `nim c -d:release main.nim` + + +Copyright and Licence +--------------------- + +Copyright 2024 Euxane TRAN-GIRARD. + +This code is published under the terms of the European Union Public Licence, +version 1.2. See `licence.txt`. -- cgit v1.2.3