aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreuxane2024-11-24 17:17:02 +0100
committereuxane2024-11-24 17:17:02 +0100
commit58541ee9e74b71b870f1773030f0a61b86fd0300 (patch)
tree5ee899a9dd02ff935974e96ac7ace3205a88b103
parent4a2d827b1469d6f49bfca43cfa87c306d7ae2993 (diff)
downloadtickwatch-58541ee9e74b71b870f1773030f0a61b86fd0300.tar.gz
readme: add
-rw-r--r--readme.md55
1 files changed, 55 insertions, 0 deletions
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..d404a98
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,55 @@
1tickwatch
2=========
3
4CLI usage
5---------
6
7```help
8tickwatch: A monitoring and visualization tool
9
10Usage: tickwatch [OPTIONS]
11
12Monitor options:
13 --ping=HOST Monitor ping latency to specified IP or hostname
14 Prefix hostname with 4/ or 6/ to force IP version
15 --value=PATH Monitor a sysfs file's value
16 --change=PATH Monitor changes in a sysfs file's value
17
18Display options:
19 --scale=CHOICE Set scaling method for values
20 Choices: log2 (default), log10, ln, linear
21 --symbols=CHOICE Set output symbol set
22 Choices: unicode (default), numeric
23 --min=VALUE Set minimum value for scaling (default: 0)
24 --max=VALUE Set maximum value for scaling (default: 1000)
25
26Other options:
27 --help, -h Display this help message
28 --version, -v Display the version
29
30Examples:
31 tickwatch --ping=6/euxane.net
32
33 tickwatch --scale=linear --max=50000 \
34 --value=/sys/class/thermal/thermal_zone0/temp
35
36 tickwatch --max=100000 \
37 --change=/sys/class/net/eth0/statistics/rx_packets
38```
39
40
41Development commands
42--------------------
43
44* Enter the development shell: `nix develop`
45* Run tests in loop: `watchexec -cclear -r nim r -d:test main.nim`
46* Build executable: `nim c -d:release main.nim`
47
48
49Copyright and Licence
50---------------------
51
52Copyright 2024 Euxane TRAN-GIRARD.
53
54This code is published under the terms of the European Union Public Licence,
55version 1.2. See `licence.txt`.