Run Client from Windows/Ubuntu

Hi

I could able to build an activity watch, but now I want to run this in the client-server model.
Server - Deployed remotely.

Clients- What is required to run clients independently.(I don’t want to install server across all the locations of clients).

Tried executing aw-client --host -p but not use.

Even tried running python3 client.py

Following error is returned.
(venv) [email protected] aw_client % python3 client.py
Traceback (most recent call last):
File “client.py”, line 17, in
from .config import load_config
ImportError: attempted relative import with no known parent packag

Is it really essential to install the server as well across all the client , please guide.

This has been discussed several times before, please search around and you should find answers.

You probably want to run the watchers, not the aw-client library (and you can’t just run client.py directly btw, you need to run the module, after installing it).

You can find the prebuilt watchers (aw-watcher-afk, afk-watcher-window) in their respective directories inside the release .zip. Then configure them as described in the aw-client section of the config documentation: https://docs.activitywatch.net/en/latest/getting-started.html#config

Here are a few related topics: