improve dash
This commit is contained in:
parent
3dde015e5d
commit
674f9102d1
@ -114,9 +114,17 @@ def dash_bb():
|
|||||||
def dash_loc():
|
def dash_loc():
|
||||||
return get_loc_data()
|
return get_loc_data()
|
||||||
#return render_template('index.html', data = str(get_data()))
|
#return render_template('index.html', data = str(get_data()))
|
||||||
@app.route('/<string:page_name>/')
|
##@app.route('/<string:page_name>/')
|
||||||
def render_static(page_name):
|
##def render_static(page_name):
|
||||||
return render_template('%s.html' % page_name, title = dashboard_title, logo = logo, description = description)
|
## return render_template('%s.html' % page_name, title = dashboard_title, logo = logo, description = description)
|
||||||
|
@app.route('/help/')
|
||||||
|
def help():
|
||||||
|
#return get_data()
|
||||||
|
return render_template('help.html', title = dashboard_title, logo = logo, description = description, data_call_type = data_call_type, data_call_id = data_call_id)
|
||||||
|
@app.route('/about/')
|
||||||
|
def about():
|
||||||
|
#return get_data()
|
||||||
|
return render_template('about.html', title = dashboard_title, logo = logo, contact_name = contact_name, contact_call = contact_call, contact_email = contact_email, contact_website = contact_website)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug = True, port=dash_port, host=dash_host)
|
app.run(debug = True, port=dash_port, host=dash_host)
|
||||||
|
@ -33,3 +33,15 @@ dash_host = '127.0.0.1'
|
|||||||
description = '''
|
description = '''
|
||||||
Welcome to the ''' + dashboard_title + '''.
|
Welcome to the ''' + dashboard_title + '''.
|
||||||
'''
|
'''
|
||||||
|
# The following will generate a help page for your users.
|
||||||
|
|
||||||
|
# Data call type
|
||||||
|
data_call_type = 'Private Call'
|
||||||
|
# DMR ID of GPS/Data application
|
||||||
|
data_call_id = '9099'
|
||||||
|
|
||||||
|
# Gateway contact info displayed on about page.
|
||||||
|
contact_name = 'your name'
|
||||||
|
contact_call = 'N0CALL'
|
||||||
|
contact_email = 'email@example.org'
|
||||||
|
contact_website = 'https://hbl.ink'
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>{{title}}</title>
|
|
||||||
<style>
|
|
||||||
body {background-color: D3D3D3;}
|
|
||||||
h1 {color: green;}
|
|
||||||
p {
|
|
||||||
padding: 10px;
|
|
||||||
margin: 20px;
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{% include 'header.html' %}
|
|
||||||
{{description}}
|
|
||||||
{% include 'footer.html' %}
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
<hr />
|
|
||||||
<div style="text-align: center;">Dashboard created by KF7EEL - <a href="https://github.com/kf7eel/hblink3">https://github.com/kf7eel/hblink3</a><br />HBLink created by N0MJS.<br /><a href="https://github.com/HBLink-org">HBLink GitHub page</a></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||||||
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="{{logo}}" alt="Logo" width="300" height="144" /></p>
|
|
||||||
<h1 style="text-align: center;">{{title}}</h1>
|
|
||||||
<hr />
|
|
||||||
<table style="margin-left: auto; margin-right: auto;" border="black" cellspacing="3" cellpadding="3">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<button onclick="window.location.href='/';">
|
|
||||||
Dashboard
|
|
||||||
</button>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<button onclick="window.location.href='help';">
|
|
||||||
Help
|
|
||||||
</button>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<button onclick="window.location.href='about';">
|
|
||||||
About Dashboard
|
|
||||||
</button>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<hr />
|
|
@ -1,19 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>{{title}}</title>
|
|
||||||
<style>
|
|
||||||
body {background-color: D3D3D3;}
|
|
||||||
h1 {color: green;}
|
|
||||||
p {
|
|
||||||
padding: 10px;
|
|
||||||
margin: 20px;
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{% include 'header.html' %}
|
|
||||||
Help info here.
|
|
||||||
{% include 'footer.html' %}
|
|
@ -1,31 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="refresh" content="120" >
|
|
||||||
<title>{{title}}</title>
|
|
||||||
<style>
|
|
||||||
body {background-color: D3D3D3;}
|
|
||||||
h1 {color: green;}
|
|
||||||
p {
|
|
||||||
padding: 10px;
|
|
||||||
margin: 20px;
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{% include 'header.html' %}
|
|
||||||
<p style="text-align: center;"><em>Page automatically reloads every 2 minutes.</em></p>
|
|
||||||
<table>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td><div><p align="center"><iframe style="border: none;" title="Bulletin Board" src="bulletin_board" width="480" height="950"></iframe></p></div></td>
|
|
||||||
<td><div>
|
|
||||||
<p align="center"><iframe style="border: none;" title="Positions Received" src="positions" width="620" height="950"></iframe></p>
|
|
||||||
</div></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
{% include 'header.html' %}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user