Skip to content

Conversation

stakach
Copy link
Member

@stakach stakach commented Sep 13, 2024

I created an interface so we can standardise providing guests QR codes that will get them through the base building gates
https://github.com/PlaceOS/driver/blob/master/src/placeos-driver/interface/guest_building_access.cr

This is implemented on our Integriti driver
https://github.com/PlaceOS/drivers/blob/master/drivers/inner_range/integriti.cr#L956-L1010

Somewhat based on how I saw @camreeves code working for Gallagher

Additions we could make to this pull request:

  1. store the credentials against the guest booking (store in metadata)
  2. if the booking is cancelled and has some credentials generated, revoke_guest_access

Currently the QR code being generated is just taking the card data and creating a HEX or Base64 version of that.
I asked ChatGPT about this so we probably need to confirm with the QR code readers that are in use, or maybe @w-le @camreeves can remember what was used when we last did this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants