Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.