diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index e5f5018..cf7e105 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -114,6 +114,9 @@ def dash_bb(): def dash_loc(): return get_loc_data() #return render_template('index.html', data = str(get_data())) +@app.route('//') +def render_static(page_name): + return render_template('%s.html' % page_name) if __name__ == '__main__': app.run(debug = True, port=dash_port, host=dash_host) diff --git a/scripts/dashboard/templates/about.html b/scripts/dashboard/templates/about.html new file mode 100644 index 0000000..b3d1cae --- /dev/null +++ b/scripts/dashboard/templates/about.html @@ -0,0 +1,36 @@ + + + + + + {{title}} + + + +

Logo

+

{{title}}

+
+ + + + + + + +
+

Dashboard

+
+

About Dashboard

+
+
+This is a dashboard for the HBLink3 GPS/Data project, found at https://github.com/kf7eel/hblink3. + + diff --git a/scripts/dashboard/templates/index.html b/scripts/dashboard/templates/index.html index e9bea40..b8fdcf5 100644 --- a/scripts/dashboard/templates/index.html +++ b/scripts/dashboard/templates/index.html @@ -18,6 +18,19 @@ p {

Logo

{{title}}


+ + + + + + + +
+

Dashboard

+
+

About Dashboard

+
+

Page automatically reloads every 2 minutes.

{{description}}

@@ -32,4 +45,5 @@ p {

Dashboard created by KF7EEL - https://github.com/kf7eel/hblink3
HBLink created by N0MJS.
HBLink GitHub page
+