Skip to content

Welcome

Berg Paulo edited this page Nov 13, 2019 · 2 revisions

LisaPi

Control your Raspberry Pi 2/3 Pins with Flask application.

Features:

  • Login
  • Some system info,
  • Register pins to control,
  • Control state of pins between on/off

Flask modules:

  • Flask-Login
  • Flask-WTF
  • Flask-Migrate
  • Flask-SQLAlchemy
  • Flask-SocketIO

System requirements: sudo apt install build-essential libssl-dev libffi-dev python3-dev

Development:

  1. Clone project,
  2. Enter in project folder,
  3. Install dependencies: pipenv install,
  4. Activate virtualenv: pipenv shell,
  5. Run migrations and create admin user: flask db-seed,
  6. Run project: python run.py.

Production:

  1. Deploy with supervisor
  2. Deploy with nginx

To do:

  • User login.
  • Save pins in database.
  • Check if pin is disponible before register.
  • Verify if pins exist in Raspberry Pi GPIO.
  • Return system status in dashboard (Using Sockets).
  • User permissions.
  • Apply Unit Tests.
  • RestFull Api.

Clone this wiki locally