Check who's currently at the hackerspace https://at.hackerspace.pl
 
 
 
Go to file
vuko 68508440d1 preparation for parsing and webapp split 2020-06-13 12:13:19 +02:00
at split at/__init__.py into dhcpd.py and web.py 2020-06-13 12:03:53 +02:00
static basic user panel 2012-01-29 02:34:11 +01:00
.gitignore add readme gitignore and update at.cfg.dist 2020-06-13 12:07:58 +02:00
README.rst add readme gitignore and update at.cfg.dist 2020-06-13 12:07:58 +02:00
at.cfg.dist add readme gitignore and update at.cfg.dist 2020-06-13 12:07:58 +02:00
cap.py initial commit 2012-01-26 19:58:09 +01:00
dbsetup.sql basic ldap support, needs SSL verify 2012-09-15 01:38:30 +02:00
requirements.txt Remove invalid requirement 2018-01-26 20:05:41 +01:00
run.py add readme gitignore and update at.cfg.dist 2020-06-13 12:07:58 +02:00

README.rst

`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 at.cfg.dist at.dist

    # edit config file using your favourite editor
    $EDITOR at.cfg

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