From 215af2ea6c20def8ac65c0da5435d14ae93aaebb Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Fri, 1 Jan 2021 14:09:14 -0800 Subject: [PATCH] add description to dashboard --- scripts/dashboard/dashboard.py | 2 +- scripts/dashboard/dashboard_settings-SAMPLE.py | 4 ++++ scripts/dashboard/templates/index.html | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index 14a1676..e5f5018 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -105,7 +105,7 @@ def get_bb_data(): @app.route('/') def index(): #return get_data() - return render_template('index.html', title = dashboard_title, logo = logo) + return render_template('index.html', title = dashboard_title, logo = logo, description = description) @app.route('/bulletin_board') def dash_bb(): return get_bb_data() diff --git a/scripts/dashboard/dashboard_settings-SAMPLE.py b/scripts/dashboard/dashboard_settings-SAMPLE.py index 6581e13..856c9c9 100644 --- a/scripts/dashboard/dashboard_settings-SAMPLE.py +++ b/scripts/dashboard/dashboard_settings-SAMPLE.py @@ -29,3 +29,7 @@ logo = 'https://raw.githubusercontent.com/kf7eel/hblink3/gps/HBlink.png' dash_port = 8092 # IP to run server on dash_host = '127.0.0.1' +#Description of dashboard to show on main page +description = ''' +Welcome to the ''' + dashboard_title + '''. +''' diff --git a/scripts/dashboard/templates/index.html b/scripts/dashboard/templates/index.html index 4e2b07e..b569a49 100644 --- a/scripts/dashboard/templates/index.html +++ b/scripts/dashboard/templates/index.html @@ -15,6 +15,7 @@ p { +

{{description}}

Logo

{{title}}


@@ -22,9 +23,9 @@ p { - +

-

+