blob: a0414d1ed59e843a5fd6a2c08bc4aba64a77b2c5 [file] [log] [blame]
`Warsaw Hackerspace`_ presence tracker hosted on https://at.hackersapce.pl. It
uses dhcpd.leases file to track MAC adressess of devices connected to hs LAN
network.
.. _Warsaw Hackerspace: https://hackerspace.pl
Setup
-----
.. code:: bash
cp config.yaml.dist config.yaml
# edit config file using your favourite editor
$EDITOR config.yaml
# create new database file (or copy existing one)
sqlite3 at.db < dbsetup.sql
# create python virtual environment
python3 -m venv vevnv
./venv/bin/python3 -m pip install -r requirements
./venv/bin/python3 -m pip install gunicorn
Running
-------
.. code:: bash
./venv/bin/gunicorn run:app
When running on OpenBSD make sure to pass '--no-sendfile' argument to gunicorn
command. This will prevent AttributeError on os.sendfile that seems to be
missing in this marvelous OS-es python3 stdlib.