Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bergpb/lisapi

Open more actions menu

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.