A python flask website for managing resources and printer usage of 3D printing student club, stored in SQL database.
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.
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.
flask
sqlite3
datetime
random (for debugging )