Door control system: Difference between revisions

From London Hackspace Wiki

update with current state of play
m (Fixed broken link)
(update with current state of play)
Line 22: Line 22:


==Software==
==Software==
The source code for the software is on [https://github.com/londonhackspace/acnode-cl Github].
The source code for the software on the nodes is on [https://github.com/londonhackspace/acnode-cl Github], the server is here [https://github.com/londonhackspace/acserver-django acserver-django]


All the logs go over the network to /var/log/network/ on [[boole]].
All the logs go over the network to /var/log/network/ on [[adminstuff]], but it's not configured yet.


The access list is JSON [http://github.com/londonhackspace/hackspace-foundation-sites/blob/master/london.hackspace.org.uk/carddb.php file]. The acserver downloads a new version of the carddb file every 5 minutes from [[Turing]] (the machine that runs the website).
The access list is JSON [http://github.com/londonhackspace/hackspace-foundation-sites/blob/master/london.hackspace.org.uk/carddb.php file]. The acserver should download a new version of the carddb file every 5 minutes from [[Turing]] (the machine that runs the website), but it's not working yet.


The door opener broadcasts on the network whenever the door is opened by a member using their card <s>, or if the front doorbell is pushed</s>. The back door broadcasts on 50000, and the front uses 50002, so we can tell the difference between them in the various listeners.  This is a stop-gap until we add the door ID to the messages.
The door opener broadcasts on the network whenever the door is opened by a member using their card <s>, or if the front doorbell is pushed</s>. The back door broadcasts on 50000, and the front uses 50002, so we can tell the difference between them in the various listeners.  This is a stop-gap until we add the door ID to the messages.