Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.9 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.9 KB

3D-print-club-website

A python flask website for managing resources and printer usage of 3D printing student club, stored in SQL database.

How it looks

Main page showing usage of printers

Image

Start a new printing page

Image

End/abort printing page

Image

Home page for managing resources

Image

Instructions

If you run it for the first time, you need to initialize the database.
Run the sql.py file.
Now you have the database ready, so run the USETHIS.py file.
Type in your browser the specified IP
(that should be displayed in your python console).

If you want to keep current data, don't run sql.py.
You can terminate the USETHIS.py process and the data will be saved,
and you can run USETHIS.py again to resume.

If you want a clear start, just delete database and run sql.py again.

Notes

The codes comes with commented out lines of code for
MAX7219 display and DHT11 sensor,
because the code was hosted on RaspberryPI with additional functionalites
(progress on MAX7219, sensor data displayed on website)

If you have the necessary electronics, feel free to uncomment the code.
The code with commented lines works on normal PC.

Small part of SQL data base logic is not yet implemented.

Necessary libraries

flask
sqlite3
datetime
random (for debugging )