From 160d11e651236967629e7c19d2fc9dd5bdbeedf8 Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Wed, 30 Dec 2020 09:36:48 -0800 Subject: [PATCH] add port settings --- scripts/dashboard/dashboard.py | 3 +++ scripts/dashboard/dashboard_settings-SAMPLE.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index 2eb173a..8436232 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -114,3 +114,6 @@ def dash_bb(): def dash_loc(): return get_loc_data() #return render_template('index.html', data = str(get_data())) + +if __name__ == '__main__': + app.run(debug = True, port=dash_port) diff --git a/scripts/dashboard/dashboard_settings-SAMPLE.py b/scripts/dashboard/dashboard_settings-SAMPLE.py index c90b23d..7f11811 100644 --- a/scripts/dashboard/dashboard_settings-SAMPLE.py +++ b/scripts/dashboard/dashboard_settings-SAMPLE.py @@ -25,3 +25,5 @@ Settings for web dashboard. dashboard_title = 'HBLink3 D-APRS Dashboard' # Logo used on dashboard page logo = 'https://raw.githubusercontent.com/kf7eel/hblink3/gps/HBlink.png' +# Port to run server +dash_port = 8092