Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(place/visitor_mailer): provide a QR code for building access #516

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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