An open API service indexing awesome lists of open source software.

https://github.com/bergpb/lisapi

A Flask app to control some things in your Raspberry Pi.
https://github.com/bergpb/lisapi

flask flask-application iot iot-application python raspberry-pi websockets

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## 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](https://github.com/bergpb/lisapi/wiki/Deploy-with-Supervisor)
2. [Deploy with Nginx](https://github.com/bergpb/lisapi/wiki/Deploy-with-Nginx)

#### To do:
- [x] User login.
- [x] Save pins in database.
- [x] Check if pin is disponible before register.
- [x] Verify if pins exist in Raspberry Pi GPIO.
- [x] Return system status in dashboard (auto update using websockets).
- [X] PWA implementation.
- [ ] User permissions.
- [ ] Apply Unit Tests.
- [ ] RestFull Api.

Some project images:

![img1.png](./images/img1.png)
![img2.png](./images/img2.png)
![img3.png](./images/img3.png)
![img4.png](./images/img4.png)
![img5.png](./images/img5.png)
![img6.png](./images/img6.png)
![img7.png](./images/img7.png)
![img8.png](./images/img8.png)