test fork
Find a file
2025-06-04 13:15:39 +02:00
.github/workflows Provide update-alternatives to shwitch to archive mode 2025-06-04 13:15:39 +02:00
cmd Add excel export 2025-03-19 20:56:23 +01:00
DEBIAN Provide update-alternatives to shwitch to archive mode 2025-06-04 13:15:39 +02:00
internal Add excel export 2025-03-19 20:56:23 +01:00
systemd Fix documentation - timer runs every 15 minutes instead of 5 2024-01-25 20:22:00 +01:00
.gitignore Introduce timetracker application 2024-01-25 20:14:22 +01:00
go.mod Use go 1.18 again 2025-03-20 20:07:06 +01:00
go.sum Add excel export 2025-03-19 20:56:23 +01:00
LICENSE Introduce timetracker application 2024-01-25 20:14:22 +01:00
Readme.md Provide update-alternatives to shwitch to archive mode 2025-06-04 13:15:39 +02:00

Timetracker

Tracks every 15 minutes if system is running to store the beginning and end of using the system.

Anchore Syft SBOM scan CodeQL

Parameters

The timetracker application provides the following arguments which can be passed:

Property Description
archivedata Enables archiving timetracker status to excel archive file, default: false
configpath Defines the location of the necessary files, default: /var/lib/timetracker

Execution

The application is triggered by a systemd timer which triggers the application via systemd unit.

Note: Running timetracker with systemd unit uses the default property values. To change it you have use the appropriate alternative.

Switch alternative

update-alternatives --config timetracker

To enable the timer you have to (requires root privileges):

enable the timer

systemctl enable timetracker.timer

start the timer

systemctl start timetracker.timer

To verify if the timer is running you can check it using:

systemctl list-timers

Show results

The aggregated data can be displayed using journalctl:

journalctl -u timetracker.service -t timetracker

License

This application is published under the MIT license.