Skip to content

A Python Flask web server to master some Raspberry PI components.

License

Notifications You must be signed in to change notification settings

eos-super-elevator/elevator_flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Elevator Server

A Python Flask web server to master some Raspberry PI components. This server expose some routes:

  • GET /lcd/display/<content> to display a message on the LCD screen
  • GET /led/blink to make LED blink
  • GET /sonar/run/<int:time> to get distance on sonar during some time (response on "sonar" socket)

Also this use Socket.io & Flask-Socket.io to produce realtime stuffs. You can make theses SOCKET queries

  • sonar to get distance (response on sonar socket)

Components used on Raspberry PI

We use this kit to build the complete system. We use only:

  • I2C LCD 1602 for display

Run

FLASK_APP=app.py flask run --host=0.0.0.0

This will start a production server on http://localhost:5000

About

A Python Flask web server to master some Raspberry PI components.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published