blob: e76b6009026c5a6bd0e33debe937ebce27f08bf9 [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
vuko2afcbdd2021-12-28 15:07:47 +01005This is running on `customs` machine. Go to
6``hswaw/machines/customs.hackerspace.pl`` to see how it is deployed.
7
vuko3cd087d2021-12-28 13:19:40 +01008.. _Warsaw Hackerspace: https://hackerspace.pl
9
10Setup
11-----
12.. code:: bash
13
14 cp config.yaml.dist config.yaml
vuko2afcbdd2021-12-28 15:07:47 +010015 cp web-config.yaml.dist web-config.yaml
vuko3cd087d2021-12-28 13:19:40 +010016
vuko2afcbdd2021-12-28 15:07:47 +010017 # edit config files using your favourite editor
vuko3cd087d2021-12-28 13:19:40 +010018 $EDITOR config.yaml
vuko2afcbdd2021-12-28 15:07:47 +010019 $EDITOR web-config.yaml
vuko3cd087d2021-12-28 13:19:40 +010020
21 # create new database file (or copy existing one)
22 sqlite3 at.db < dbsetup.sql
23
vuko2afcbdd2021-12-28 15:07:47 +010024 # build
25 nix-build ../../default.nix -A hswaw.checkinator
vuko3cd087d2021-12-28 13:19:40 +010026
27Running
28-------
29.. code:: bash
30
vuko2afcbdd2021-12-28 15:07:47 +010031 # run tracker
32 ./result/bin/checkinator-tracker config.yaml
vuko3cd087d2021-12-28 13:19:40 +010033
vuko2afcbdd2021-12-28 15:07:47 +010034 # run web interface
35 # TODO: fix running debug entry point from nix build
36 ./result/bin/checkinator-web-debug