Skip to content
/ lisapi Public

A Flask app to control some things in your Raspberry Pi.

License

Notifications You must be signed in to change notification settings

bergpb/lisapi

Repository files navigation

LisaPi - Flask Application

Control your Raspberry Pi Pins with Flask application.

Tested in models B+ and 3B+

Features:

  • Login
  • Some system info in dashboard (auto update using webockets).
  • Register pins to control.
  • Control state of pins between on/off.
  • PWA Ready.

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 (using poetry):

  1. Clone project,
  2. Enter in project folder,
  3. Install dependencies with poetry: poetry install,
  4. Run migrations: flask db init && flask db migrate && flask db upgrade,
  5. Create admin user: flask seed,
  6. Run project in development mode: python wsgi.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 (auto update using websockets).
  • PWA implementation.
  • User permissions.
  • Apply Unit Tests.
  • RestFull Api.

Some project images:

img1.png img2.png img3.png img4.png img5.png img6.png img7.png img8.png