Install the Code

Python Libraries

Installing python libraries is very simple, and doesn’t even require complicated shell scripting. A Little basic command-line scripting experience can’t hurt though.

If you haven’t already installed Python SetupTools then I highly recommend you do that first:

Next you can update the Raspberry Pi software:

Next you can move on to installing the python libraries individually, line by line:

Github Code

By installing the code from Github, you can easily run the RFID reading routine, and have your Pi-Lock up and running in no time.The files on Github can be found at the following link: github.com/pi-lock/pi


In order to install this without going through a web-browser, simple type into your shell command-line:

Pi-Lock

  • WebFiles
  • classes
    • classEntradaLog.py
    • classErrorLog.py
    • classSmallKeypad.py
    • classPermiso.py
    • classSystemStats.py
  • PyWebServer.py
  • RFID_Lock.sqlite
  • configuration.py
  • editDNS.py
  • readRFID.py
  • Alfonso Porreca

    Hi,
    first I would thank you for sharing this piece of code.
    I’m trying to run it on a new Raspberry Pi 2 Model B with no success. It stop at import RPIO probably because RPIO is not fully compatible with Pi 2.
    Could you suggest where I should modify the code (if possible) for eventually use RPi.GPIO module which (they claims) support RPi 2 boards?

    Thanks
    Alfonso

    • Alfonso Porreca

      ok, I managed to make it work with RPIO and RPi.GPIO also.
      Another question: PyWebServer is intended to visualize access, not to setting user admitted. Is it right?

      Thanks,
      Alf