Skip to content

francoparodi/button_pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Button_pi

Simple sample of events from two buttons with Raspberry pi. Each connected client, will be notify about events (websocketIO)

Coonection schema

Connection Schema

Installing

From project root create virtual environment, activate and install requirements:

~/button_pi$ python3 -m venv venv
~/button_pi$ source venv/bin/activate
~/button_pi$ pip install -r requirements.txt

Running

as app

export FLASK_APP=flaskr
flask run

as wsgi server

gunicorn --worker-class eventlet -w 1 -b localhost:8080 wsgi

Deployment

As seen above (gunicorn...)

Authors

Franco Parodi

License

This project is licensed under the MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published