How dkssvp/day12-developer-focus-timeline-extraction works
A small Python utility that queries ActivityWatch for foreground-window and AFK events, estimates developer-application focus time over a selected period, and prints and saves a JSON summary. The single source file contains the workflow and interval calculations; the output file is a generated report, not an implemented runtime subsystem. Relationships shown are supported by the inspected source.
Main entry points: focus_tracker.py Focus tracker · focus_summary.json JSON report
Components 4
Focus analysis
- Focus tracker
focus_tracker.py - JSON report
focus_summary.json
Other components
- User
- ActivityWatch
Connections 3
- User → Focus tracker: runs
focus_tracker.py - Focus tracker → ActivityWatch: requests events
focus_tracker.py - Focus tracker → JSON report: writes summary
focus_tracker.py