https://github.com/ronnyfriedland/timetracker
https://github.com/ronnyfriedland/timetracker
debian github-actions golang systemd-timer
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ronnyfriedland/timetracker
- Owner: ronnyfriedland
- License: mit
- Created: 2024-01-25T19:12:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-04T11:26:57.000Z (8 months ago)
- Last Synced: 2025-06-04T19:05:13.638Z (8 months ago)
- Topics: debian, github-actions, golang, systemd-timer
- Language: Go
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Timetracker
Tracks every 15 minutes if system is running to store the beginning and end of using the system.
[](https://github.com/ronnyfriedland/timetracker/actions/workflows/anchore-syft.yml)
[](https://github.com/ronnyfriedland/timetracker/actions/workflows/codeql.yml)
## 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
```shell
update-alternatives --config timetracker
```
To enable the timer you have to (requires root privileges):
### enable the timer
```shell
systemctl enable timetracker.timer
```
### start the timer
```shell
systemctl start timetracker.timer
```
To verify if the timer is running you can check it using:
```shell
systemctl list-timers
```
### Show results
The aggregated data can be displayed using `journalctl`:
```shell
journalctl -u timetracker.service -t timetracker
```
## License
This application is published under the [MIT license](LICENSE).