I am working on a project to have the Onion Omega unlock a door when a card is swiped. I have written a python script that changes the relays when a correct card number is inputted, but now the problem is to get the card reader to send the data to the script. Does anyone have any ideas about how to get this to work? The card reader is a MSR90, and from what I can find online it acts like a keyboard. So how do I get the data being sent out of the reader into the script running on the Onion?
The only ideas I've had so far would be to have the card reader hooked up to a pi, and then have the pi transmit the data to the onion, but ideally I'd like for it all to happen on the onion.