{# Settings ▸ Activity, above the fields: each computer's ActivityWatch — reachable?, last pull, what each bucket has sent so far — and "Pull now" (POST /activity/api/pull, then the page reloads). Styles inline (settings page). #} {% macro n(x) %}{{ "{:,.0f}".format(x).replace(",", " ") if x is not none else "—" }}{% endmacro %}
{% for s in sources if s.name in names %}

{{ s.name }} {% if s.error %}· not reachable{% elif s.last_ok %}· ok{% endif %}

{{ s.url }}{% if s.version %} · ActivityWatch {{ s.version }}{% endif %} · last pull {{ ago(s.last_ok) }}{% if s.error %} · tried {{ ago(s.last_try) }}{% endif %}
{% for b in s.buckets %} {% else %}{% endfor %}
BucketKeptFromNewest
{{ b.bucket_id }}{{ n(b.n) }}{% if b.type == "os.hid.input" %} min{% endif %}{{ when(b.first) }}{{ when(b.last) }}
Nothing yet.
{% else %}

No computers yet

Add them below: name=address, e.g. laptop=http://192.168.1.20:5600
{% endfor %}

Sorting

{{ c.categories }} categories · {{ c.rules }} rules{% if not c.categories %} — import FlowWatch's: python3 -m plugins.activity.pull --flowwatch …{% endif %}