Skip to content

lwats

Local Watson.

You can use this script to interact with the Watson command line utility, saving all the data into the directory where the script is located.

Usage

Important: this has been tested with Python 3.11.6 in Termux on Android.

Bash
python3 -mvenv venv
venv/bin/python3 -mpip install -r requirements.txt

Then you can invoke the lwats.sh script like this:

Bash
1
2
3
4
5
6
7
8
9
./lwats.sh start myproj
./lwats.sh start myproj +mytag --at 08:00
./lwats.sh stop

./lwats.sh add myproj -f2020-01-01T08:00 -t2020-01-01T16:00

./lwats.sh log -GRac
./lwats.sh report -Gac
./lwats.sh report -Gdc

Or without parameters, to get a REPL prompt:

Bash
./lwats.sh
LWATS_STARTUP_REPORT=true ./lwats.sh