blob: 26de179243bdf08f0bac6c2a8489da117e72a135 [file] [log] [blame]
Ari Gerus1bcaa972024-03-19 18:35:00 +01001`Warsaw Hackerspace`_ presence tracker hosted on https://at.hackerspace.pl. It
vuko3cd087d2021-12-28 13:19:40 +01002uses 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
Ari Gerus1bcaa972024-03-19 18:35:00 +010014 cp config.dist.yaml 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