{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ _('ActivityWatch Setup') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Integrations', 'url': url_for('integrations.list_integrations')}, {'text': 'ActivityWatch Setup'} ] %} {{ page_header( icon_class='fas fa-desktop', title_text=_('ActivityWatch Setup'), subtitle_text=_('Import window and web activity from ActivityWatch (aw-server) as automatic time entries'), breadcrumbs=breadcrumbs ) }}

{{ _('Server Connection') }}

{{ _('Base URL of your aw-server (no trailing slash). aw-server must be running and reachable from this server.') }} {{ _('Use http://localhost:5600 if TimeTracker runs on the same machine.') }}

{{ _('Import Settings') }}

{% if projects %}

{{ _('Assign imported activity events to this project. Leave empty to import without a project.') }}

{% else %}

{{ _('No active projects found. Events will be imported without a project.') }} {{ _('You can create a project later and assign events to it.') }}

{{ _('Create a project') }} →
{% endif %}

{{ _('How many days back to import on full sync (1–90, default: 7).') }}

{{ _('Comma-separated or JSON array. Leave empty to use all aw-watcher-window_* and aw-watcher-web_* buckets.') }}

{{ _('Automatically sync activity on a schedule. You can also trigger manual syncs.') }}

{{ _('Cancel') }}
{% if integration.config.get('server_url') %}

{{ _('Test & Sync') }}

{{ _('After saving, you can test the connection and run a sync from the integration page.') }}

{{ _('Test Connection') }}
{% endif %} {% endblock %}