You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: getting-started.rst
+19-8
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,37 @@ Getting started
3
3
***************
4
4
5
5
.. note::
6
-
We're currently working on improving the installation experience by creating installers and packages,
7
-
but for now we only offer zip files (containing everything you need).
6
+
We're currently working on improving the installation experience by creating proper installers and packages,
7
+
but for now we offer standalone archives containing everything you need.
8
8
9
9
.. Content from aw-server/README.md should be moved here.
10
10
11
11
Installation
12
12
============
13
13
14
-
First, grab the `latest release from GitHub <https://github.com/ActivityWatch/activitywatch/releases>`_.
14
+
.. note::
15
+
The prebuilt executables have been known to sometimes have issues on Linux and macOS.
16
+
If they don't work for you consider `installing-from-source` and filing an issue.
15
17
16
-
To install from a zip-file, simply unextract it into an appropriate directory.
18
+
1. First, grab the `latest release from GitHub <https://github.com/ActivityWatch/activitywatch/releases>`_ for your operating system.
17
19
18
-
If you want to install from source, see `installing-from-source`.
20
+
2. Unzip the archive into an appropriate directory and you're done!
19
21
20
22
Usage
21
23
=====
22
24
23
25
The aw-qt application is the easiest way to use ActivityWatch. It creates a trayicon and automatically starts the server and the default watchers.
24
26
25
-
Simply run the :code:`aw-qt` binary from where you unzipped the downloaded release to start it.
27
+
Simply run the :code:`./aw-qt` binary from the installation directory and you should see an icon appear in your system tray (unless you're running Gnome 3, where there is none).
28
+
29
+
You should now have the web interface running at `<localhost:5600>`_ and will in a few minutes be able to view your data under the Activity section!
30
+
31
+
.. note::
32
+
If you want more advanced ways to run ActivityWatch (including running it without aw-qt), check out the "Running" section of `installing-from-source`.
33
+
34
+
Autostart
35
+
=========
26
36
27
-
You might want to make it start on login, we will automate this for you in the future but for now you'll have to do it yourself.
28
-
Searching the web for "autostart application <your operating system>" should get you some good results.
37
+
You might want to make :code:`aw-qt` start automatically on login.
38
+
We hope to automate this for you in the future but for now you'll have to do it yourself.
39
+
Searching the web for "autostart application <your operating system>" should get you some good results that don't take long.
Copy file name to clipboardexpand all lines: installing-from-source.rst
+21-15
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Installing from source
4
4
Here's the guide to installing ActivityWatch from source. If you are just looking to try it out, see the getting started guide instead.
5
5
6
6
.. note::
7
-
This guide has only been tested on Linux. It's expected to work with minimal modification on macOS as well but will require some extra (undocumented) work on Windows.
7
+
This is written for Linux and macOS. For Windows the build process is more complicated and we therefore suggest using the pre-built packages instead on that operating system.
8
8
9
9
Cloning the submodules
10
10
----------------------
@@ -16,7 +16,7 @@ This can either be done at the cloning stage with:
Or afterwards (if you've already cloned normally) using:
21
21
22
22
.. code-block:: sh
@@ -36,23 +36,23 @@ You need to ensure you have:
36
36
Using a virtualenv
37
37
------------------
38
38
39
-
You might want to set up a virtualenv so we don't install everything system-wide.
39
+
You might want to set up a virtualenv so we don't install everything system-wide.
40
40
41
-
.. note::
41
+
.. note::
42
42
This is currently required, but can be avoided with some minor modifications since some commands (notably those installing Python packages) will need root if not run in a virtualenv (sorry for not making it easier).
43
-
43
+
44
44
.. code-block:: sh
45
-
45
+
46
46
pip3 install --user virtualenv # Assuming you don't already have it, you might want to use your systems package manager instead.
47
47
python3 -m venv venv
48
-
48
+
49
49
Now activate the virtualenv in your current shell session:
50
50
51
51
.. code-block:: sh
52
52
53
-
# For bash/zsh users:
53
+
# For bash/zsh users:
54
54
source ./venv/bin/activate
55
-
# For fish users:
55
+
# For fish users:
56
56
source ./venv/bin/activate.fish
57
57
58
58
@@ -62,18 +62,24 @@ Building and installing
62
62
Build and install everything into the virtualenv:
63
63
64
64
.. code-block:: sh
65
-
65
+
66
66
make build
67
67
68
-
Running it
68
+
Running
69
69
----------
70
70
71
-
Now you should be able to start ActivityWatch, you have two options:
71
+
Now you should be able to start ActivityWatch **from the terminal where you've activated the virtualenv**.
72
+
You have two options:
73
+
74
+
1. Use the trayicon manager (Recommended for normal use)
75
+
76
+
- Run from your terminal with: :code:`aw-qt`
77
+
78
+
2. Start each module separately (Recommended for developing)
72
79
73
-
1. Recommended for normal use: Use the trayicon manager (aw-qt)
74
-
2. Recommended for developing: Run each module separately (aw-server, aw-watcher-afk, aw-watcher-window)
80
+
- Run from your terminal with: :code:`aw-server`, :code:`aw-watcher-afk`, and :code:`aw-watcher-window`
75
81
76
-
- Use the :code:`--testing` flag for each module to run in testing mode. This runs the server of a different port (5666) and uses a separate database file to avoid mixing your important data with your testing data.
82
+
Both methods take the :code:`--testing` flag as a command line parameter to run in testing mode. This runs the server on a different port (5666) and uses a separate database file to avoid mixing your important data with your testing data.
Copy file name to clipboardexpand all lines: rest.rst
+4-4
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ If no such library yet exists for a given language, this document is meant to pr
14
14
in the API browser available from the web UI of your aw-server instance.
15
15
16
16
17
-
API Security
18
-
------------
17
+
REST Security
18
+
-------------
19
19
20
20
.. note::
21
21
Our current security consists only of not allowing non-localhost connections, this is likely to be the case for quite a while.
@@ -24,8 +24,8 @@ Clients might in the future be able to have read-only or append-only access to b
24
24
All clients will probably also encrypt data in transit.
25
25
26
26
27
-
API Reference
28
-
-------------
27
+
REST Reference
28
+
--------------
29
29
30
30
.. note::
31
31
This reference is highly incomplete. For an interactive view of the API, try out the API playground running on your local server at: http://localhost:5600/api/
0 commit comments