How to add a Keycard - hackeriet/hackeriet.no GitHub Wiki
11¤h1. How to add keys to the Humla doorbot
- Log in to humladoor:
ssh pi@humladoor
- look at logfile for door; tail \-f /var/log/door.log
- swipe the card you wish to add
- copy the full card number from the console output into /home/pi/users/$username
The first numbers should match the numbers printed on the card. The last number doesn’t match the one
on the card. The leading zeroes should not be included!
You can use ssh to open the door, for instance from your cell phone or laptop.
This happens automatically if you put your ssh key into the lock.
It’s also a practical way of letting someone in remotely.
- Log in to humladoor:
ssh pi@humladoor
- Get root:
sudo \-i
- Switch directories:
cd ~humla
- Paste your ssh key at the end of the authorized keys file
vim .ssh/authorized_keys
Now you can open the lock with
ssh humla@humladoor