From ffb8b161872e7418fba7cb83598796125a243bcf Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Wed, 30 Dec 2020 16:40:39 -0800 Subject: [PATCH] add host to dashboard --- scripts/dashboard/dashboard.py | 2 +- scripts/dashboard/dashboard_settings-SAMPLE.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index 8436232..14a1676 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -116,4 +116,4 @@ def dash_loc(): #return render_template('index.html', data = str(get_data())) if __name__ == '__main__': - app.run(debug = True, port=dash_port) + app.run(debug = True, port=dash_port, host=dash_host) diff --git a/scripts/dashboard/dashboard_settings-SAMPLE.py b/scripts/dashboard/dashboard_settings-SAMPLE.py index 7f11811..6581e13 100644 --- a/scripts/dashboard/dashboard_settings-SAMPLE.py +++ b/scripts/dashboard/dashboard_settings-SAMPLE.py @@ -27,3 +27,5 @@ dashboard_title = 'HBLink3 D-APRS Dashboard' logo = 'https://raw.githubusercontent.com/kf7eel/hblink3/gps/HBlink.png' # Port to run server dash_port = 8092 +# IP to run server on +dash_host = '127.0.0.1'