Skip to content

6. Webapp

Flora edited this page May 20, 2021 · 1 revision

How to modify the webapp

Adding a new table to the webapp from the SQL server

Assuming we have a new table created in the SQL database and we would like to query and visualise the values in an html. Lets assume that it is a new reading from a sensor:

  • 3 files to modify:
  1. sidebar.html. Modify this file as to add a new button to the sidebar menu which links to the new html page with the readings.

  2. got to webapp --> app-->readings-->templates and add new .html template with table.

  3. Modify the routes.py inside the readings folder in order to do the new query.

Clone this wiki locally