add description to dashboard

This commit is contained in:
KF7EEL 2021-01-01 14:09:14 -08:00
parent 944e3bf1af
commit 215af2ea6c
3 changed files with 8 additions and 3 deletions

View File

@ -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()

View File

@ -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 + '''.
'''

View File

@ -15,6 +15,7 @@ p {
</style>
</head>
<body>
<p style="text-align: left;"><em>{{description}}</em></p>
<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 />
@ -22,9 +23,9 @@ p {
<table>
<tbody>
<tr>
<td><div><p align="center"><iframe style="border: none;" title="Bulletin Board" src="bulletin_board" width="480" height="900"></iframe></p></div></td>
<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="900"></iframe></p>
<p align="center"><iframe style="border: none;" title="Positions Received" src="positions" width="620" height="950"></iframe></p>
</div></td>
</tr>
</tbody>