Skip to content

Commit b2b3696

Browse files
committed
improved docs, fixes ActivityWatch#110
1 parent b3319fa commit b2b3696

6 files changed

+52
-35
lines changed

architecture.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Client libraries:
2525

2626
Since aw-server doesn't do any data collection on it's own, we need watchers that observe the world and sent the data off to aw-server for storage.
2727

28-
For a list of watchers, see `watchers`.
28+
For a list of watchers, see :doc:`watchers`.
2929

3030
User interfaces
3131
---------------

conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
# Add any paths that contain custom static files (such as style sheets) here,
167167
# relative to this directory. They are copied after the builtin static files,
168168
# so a file named "default.css" will overwrite the builtin "default.css".
169-
html_static_path = ['_static']
169+
# html_static_path = ['_static']
170170

171171
# Add any extra paths that contain custom files (such as robots.txt or
172172
# .htaccess) here, relative to this directory. These files are copied

event-model.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Event model
33

44
The ActivityWatch event model is pretty simple, here's its representation in JSON:
55

6-
.. code-block:: js
6+
.. code-block:: javascript
77
8-
{
9-
"timestamp": "2016-04-27T15:23:55Z", # ISO8601 formatted timestamp
10-
"duration": 3.14, # Duration in seconds
11-
"data": {"key": "value"} # A JSON object, the schema of this depends on the bucket type
12-
}
8+
event = {
9+
"timestamp": "2016-04-27T15:23:55Z", // ISO8601 formatted timestamp
10+
"duration": 3.14, // Duration in seconds
11+
"data": {"key": "value"}, // A JSON object, the schema of this depends on the bucket type
12+
}
1313
1414
It should be noted that all timestamps are stored as UTC. Timezone information (UTC offset) is currently discarded.

getting-started.rst

+19-8
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,37 @@ Getting started
33
***************
44

55
.. 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.
88

99
.. Content from aw-server/README.md should be moved here.
1010
1111
Installation
1212
============
1313

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.
1517

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.
1719

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!
1921

2022
Usage
2123
=====
2224

2325
The aw-qt application is the easiest way to use ActivityWatch. It creates a trayicon and automatically starts the server and the default watchers.
2426

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+
=========
2636

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.

installing-from-source.rst

+21-15
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Installing from source
44
Here's the guide to installing ActivityWatch from source. If you are just looking to try it out, see the getting started guide instead.
55

66
.. 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.
88

99
Cloning the submodules
1010
----------------------
@@ -16,7 +16,7 @@ This can either be done at the cloning stage with:
1616
.. code-block:: sh
1717
1818
git clone --recursive https://github.com/ActivityWatch/activitywatch.git
19-
19+
2020
Or afterwards (if you've already cloned normally) using:
2121

2222
.. code-block:: sh
@@ -36,23 +36,23 @@ You need to ensure you have:
3636
Using a virtualenv
3737
------------------
3838

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.
4040

41-
.. note::
41+
.. note::
4242
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+
4444
.. code-block:: sh
45-
45+
4646
pip3 install --user virtualenv # Assuming you don't already have it, you might want to use your systems package manager instead.
4747
python3 -m venv venv
48-
48+
4949
Now activate the virtualenv in your current shell session:
5050

5151
.. code-block:: sh
5252
53-
# For bash/zsh users:
53+
# For bash/zsh users:
5454
source ./venv/bin/activate
55-
# For fish users:
55+
# For fish users:
5656
source ./venv/bin/activate.fish
5757
5858
@@ -62,18 +62,24 @@ Building and installing
6262
Build and install everything into the virtualenv:
6363

6464
.. code-block:: sh
65-
65+
6666
make build
6767
68-
Running it
68+
Running
6969
----------
7070

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)
7279

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`
7581

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.
7783

7884
Now everything should be running!
7985
Check out the web UI at http://localhost:5600/

rest.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ If no such library yet exists for a given language, this document is meant to pr
1414
in the API browser available from the web UI of your aw-server instance.
1515

1616

17-
API Security
18-
------------
17+
REST Security
18+
-------------
1919

2020
.. note::
2121
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
2424
All clients will probably also encrypt data in transit.
2525

2626

27-
API Reference
28-
-------------
27+
REST Reference
28+
--------------
2929

3030
.. note::
3131
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

Comments
 (0)