An RFID Lock system with an esp8266 on micropython and a flask back end.
NOTE This project is not production ready and secure, its meant to be a learning material.
git clone https://github.com/jakhax/esp9266_rfid_lock/
sudo apt-get install python3.6-venv
python3.6 -m venv virtual
source virtual/bin/activate
pip install -r requirements.txt
pip install -r requirements-esp32.txt
See the following resources to get started and install micropython.
- https://docs.micropython.org/en/latest/esp8266/tutorial/
- GETTING STARTED WITH MICROPYTHON ON ESP8266
- you require picocom for this,
sudo apt install picocom
picocom -b 115200 /dev/ttyUSB0
ampy --port /dev/ttyUSB0 put reader/lock.py
ampy --port /dev/ttyUSB0 put reader/mfrc522.py
ampy --port /dev/ttyUSB0 put reader/main.py
ampy --port /dev/ttyUSB0 put reader/_server.py
ampy --port /dev/ttyUSB0 put reader/mfrc522.py
ampy --port /dev/ttyUSB0 put reader/main.py
Create Database preferably on postgres, then add its url to config.py
or set it as a env variable DATABASE_URL
Run migrations python manage.py db migrate
python manage.py runserver
Open the app on your browser, by default on 127.0.0.1:5000
.
This project is licensed under the MIT Open Source license.