https://github.com/stefanbirkner/toochwaerg
Scripts for analyzing a work log
https://github.com/stefanbirkner/toochwaerg
jrnl worktime worktimemonitoring
Last synced: 4 months ago
JSON representation
Scripts for analyzing a work log
- Host: GitHub
- URL: https://github.com/stefanbirkner/toochwaerg
- Owner: stefanbirkner
- License: mit
- Created: 2018-07-14T11:42:33.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T20:41:21.000Z (over 1 year ago)
- Last Synced: 2025-01-14T13:54:07.260Z (5 months ago)
- Topics: jrnl, worktime, worktimemonitoring
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Toochwaerg
A bunch of scripts for analyzing a work log that is created with
[jrnl](http://jrnl.sh/).Toochwaerg is published under the
[MIT license](http://opensource.org/licenses/MIT).## Installation
Clone the repository
git clone [email protected]:stefanbirkner/toochwaerg.git
You need to have a JDK (at least JDK 10) installed. Also you need to have jrnl
installed.## Usage
### Calculate hours worked
Execute the script
javac WorkingHours.java; \
jrnl -from year \
| java -cp . WorkingHoursYou get an output like this
2017-08-18 07:59
2017-08-19 04:40 no pause
2017-08-20 08:38
2017-08-21 08:35Each line contains the date and the amount of time you spent. Days without an
entry that contain neither the word "lunch" nor the word "pause" have a marker
"no pause" at the end of the line. This should help you to find days where you
missed to add your pause to the log.### Calculate overtime
Execute the script
javac WorkingHours.java MissingHours.java; \
jrnl -from year \
| java -cp . WorkingHours \
| java -cp . MissingHoursYou get an output like this
PT1H10M
The script implies a working day of 7 hours. It considers each day with data as
a working day except for Saturday and Sunday. This makes it easy to handle sick
days and holidays because they are simply ignored by the calculator.