Hi HN, I wanted to share a CLI tool I've created since it might be useful for you:
activitywatch-exporter is a CLI tool that uploads the ActivityWatch data from the aw-server API to influxdb on a daily basis. This can be used to store the statistics and analyze the long term trends with grafana for example (I've included an example dashboard in the repo). I have it set up with podman quadlets in my home server and run it every night.
Sharing it here since it might be useful for more people.
source code and setup instructions available @ https://github.com/rare-magma/activitywatch-exporter