Skip to content

Feature: one-click exportable work-hours report (HTML/CSV) from the Activity view #899

Description

@danielalanbates

Summary

I'd love a simple, shareable "work hours report" export in the Activity view — aimed at people who use ActivityWatch to track their working hours and need to hand a clean summary to an employer or client.

Problem

The Activity view is great for exploring data, but the only exports today are raw JSON buckets. For the common "send my boss my hours" use case, that's both too detailed (window titles) and not consumable by non-technical recipients.

Proposed feature

An "Export report" button on the Activity view that produces a self-contained HTML (and/or CSV) file for a selected period, containing:

  • One row per day: date, first activity ("started"), last activity ("finished"), total active time (from the AFK watcher, idle time excluded)
  • A period total
  • Optionally, top N applications by time — easy to omit for privacy

Because it's generated client-side from the existing /api/0/buckets endpoints, no server changes are needed.

Prototype

I have a working prototype as a small standalone script injected into the web UI (~100 lines, no dependencies): it fetches the AFK + window buckets, aggregates per day, and downloads a styled, self-contained work-hours-report.html. Happy to share the code or rework it into a proper PR against aw-webui if maintainers are interested in the direction.

Motivation

This would make ActivityWatch a viable drop-in replacement for commercial "AI time tracker" apps (Rize, Timing) for the freelancer/employee timesheet use case, using data it already collects.
Fable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions