blob: a0414d1ed59e843a5fd6a2c08bc4aba64a77b2c5 [file] [log] [blame]
vuko3cd087d2021-12-28 13:19:40 +01001`Warsaw Hackerspace`_ presence tracker hosted on https://at.hackersapce.pl. It
2uses dhcpd.leases file to track MAC adressess of devices connected to hs LAN
3network.
4
5.. _Warsaw Hackerspace: https://hackerspace.pl
6
7Setup
8-----
9.. code:: bash
10
11 cp config.yaml.dist config.yaml
12
13 # edit config file using your favourite editor
14 $EDITOR config.yaml
15
16 # create new database file (or copy existing one)
17 sqlite3 at.db < dbsetup.sql
18
19 # create python virtual environment
20 python3 -m venv vevnv
21 ./venv/bin/python3 -m pip install -r requirements
22 ./venv/bin/python3 -m pip install gunicorn
23
24Running
25-------
26.. code:: bash
27
28 ./venv/bin/gunicorn run:app
29
30When running on OpenBSD make sure to pass '--no-sendfile' argument to gunicorn
31command. This will prevent AttributeError on os.sendfile that seems to be
32missing in this marvelous OS-es python3 stdlib.