I’ll try and sort this out Friday morning.
My plan of action is simple; get something networked able to unlock the door with some kind of certificate. This will probably be as simple as humanly possible, probably a 20 line flask app which on a
/open route initiates the
pifacedigitalio module, sets a pin high for a period of time, and responds with a basic set of status responses, as well as a
/status route that can be used for any other relevant information including a log field with the past X accesses (if I can be bothered) I’ll probably also add in a
/fake_open call that does exactly the same as Open, except it triggers a light or something else so it can be played with easily.
These will be authed with probably just simple basic-auth with a super duper long key, all wrapped up in an SSL cert tunnel. Integrating that with user management is then an open and remotely experiment-able issue. Also means that each ‘calling’ system can be separately logged (i.e. the RFID, Web/mobile based, Internal button somewhere, etc, all talk to this). The door won’t know what user opened it, but it will know what service opened it.
TLDR Low hanging fruit, get door under control, simple api anyone* can use, user access control is a separate issue.