snapshot of https://github.com/ActivityWatch/aw-server.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Build / Test on ubuntu-latest (push) Successful in 3m6s
Lint / lint (push) Successful in 22s
Build / typecheck (ubuntu-latest, 3.9) (push) Successful in 1m49s
Lint / format (push) Successful in 42s
Build / Test on macOS-latest (push) Has been cancelled
Build / Test on windows-latest (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1m31s

This commit is contained in:
upstream-mirror
2026-09-16 00:20:00 +05:00
commit 07fb811788
40 changed files with 4688 additions and 0 deletions

12
misc/aw-server.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=ActivityWatch
Documentation=
After=mongodb.service
[Service]
Type=simple
ExecStart=/usr/bin/env aw-server
Restart=always
[Install]
WantedBy=default.target

13
misc/process_logs.py Normal file
View File

@@ -0,0 +1,13 @@
"""
Useful for turning JSON logs into human-readable logs.
Usage:
aw-server --log-json 2>&1 | python3 process_logs.py
"""
import json
while True:
msg = json.loads(input())
print("{asctime} [{levelname}] {message}".format(**msg))