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.
- Host: GitHub
- URL: https://github.com/bergpb/lisapi
- Owner: bergpb
- License: mit
- Created: 2018-11-18T16:44:10.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T03:29:11.000Z (over 3 years ago)
- Last Synced: 2024-04-14T03:49:31.051Z (about 2 years ago)
- Topics: flask, flask-application, iot, iot-application, python, raspberry-pi, websockets
- Language: HTML
- Homepage:
- Size: 4.05 MB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:







