Skip to content

Instantly share code, notes, and snippets.

@mhutchins
Created July 25, 2019 20:08
Show Gist options
  • Save mhutchins/8a2b93da4146789be201b70d375d03fe to your computer and use it in GitHub Desktop.
Save mhutchins/8a2b93da4146789be201b70d375d03fe to your computer and use it in GitHub Desktop.
Controlers:
controllerid, name
X00001, gate
X00002, folly
X00003, shed
X00004, passage
X00005, f-door
Cards:
unit_id, cardid, owner, readers[]
C00001, 6243091, martin, R00001
Readers:
readerid, name, controller, gpioD0, gpio D1, locks[]
R0001, "Gate", X0001, 11, 12, L0001, L0002
R0002, "Shed", X0003, 11, 12, L0003
Locks:
lockid, name, controller, gpio
L0001, Gate, X0001, 17
L0002, Folly, X0002, 17
L0003, Shed, X0003, 17
Buttons:
buttonid, name, controller, gpio
I0001, Gate PTE, X0001, 18
I0002, Gate Doorbell, X0001, 19
I0003, Front Doorbell, X0005, 18
I0004, Indoor Gate Release, X0004, 18
Bells:
bellid, name, controller,
B0001, Back corridoor
send_event_map
mapid, unit_id_sender, unit_id_reciever[]
M0001, I0002, B0001-1
M0002, I0003, B0001-2
M0002, I0001, L0001
M0002, I0004, L0001, L0002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment