Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chpf/clock-in
Simple Timesheets by emulating some of the features of org-mode clock-in/clock-out
https://github.com/chpf/clock-in
obsidian-md obsidian-plugin
Last synced: 2 days ago
JSON representation
Simple Timesheets by emulating some of the features of org-mode clock-in/clock-out
- Host: GitHub
- URL: https://github.com/chpf/clock-in
- Owner: chpf
- License: wtfpl
- Created: 2025-02-14T16:04:47.000Z (6 days ago)
- Default Branch: master
- Last Pushed: 2025-02-17T12:36:46.000Z (3 days ago)
- Last Synced: 2025-02-17T13:34:53.280Z (3 days ago)
- Topics: obsidian-md, obsidian-plugin
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clock In
Dead simple (as in more boilerplate that acutal code) [obsidian](https://obsidian.md) plugin that provides three addidional commands
- `clock-in`
- `clock-out`
- `recalculate-hours`Clocking in and out adds the following syntax to the YAML-Frontmatter of the active document. Recalculating recalculates.
```yaml
---
LOGBOOK:
- CLOCK_IN: 2025-02-13T09:55:44.877Z
CLOCK_OUT: 2025-02-13T12:33:46.307Z
HOURS: 2.63
---
```Query the Frontmatter with [Dataview](https://blacksmithgu.github.io/obsidian-dataview/) to build a timesheet for the entire vault.
```dataview
TABLE WITHOUT ID
entry.CLOCK_IN as Started,
entry.HOURS as Hours
FLATTEN LOGBOOK as entry
WHERE entry.HOURS AND entry.CLOCK_IN
```You can clock in and out more that once per file, adjust your dataview query if needed.