mirror of https://github.com/kf7eel/hbnet
update web service
This commit is contained in:
parent
42ec26dabb
commit
4605bf99cb
13
web/app.py
13
web/app.py
|
|
@ -56,7 +56,7 @@ from cryptography.fernet import Fernet
|
|||
from flaskext.markdown import Markdown
|
||||
|
||||
peer_locations = {}
|
||||
hbnet_version = 'V 09242022'
|
||||
hbnet_version = 'V 09262022'
|
||||
|
||||
# Query radioid.net for list of IDs
|
||||
def get_ids(callsign):
|
||||
|
|
@ -1269,7 +1269,7 @@ By using this service, you agree not to do anything malicious. You agree to use
|
|||
#print(script_links)
|
||||
content = content + '''\n
|
||||
<div class="card " style="text-align: center;">
|
||||
<div class="card-header"><h4><a href="/ss/''' + str(i[0]) + '''">''' + str(i[0]) + '''</a></h4></div>
|
||||
<div class="card-header"><h4><a href="https://radioid.net/database/view?id=''' + str(i[0]) + '''">''' + str(i[0]) + '''</a></h4></div>
|
||||
<div class="card-body" style="max-width:300px; word-wrap:break-word; text-align: center;">MMDVM Passphrase:
|
||||
<pre><strong>''' + str(gen_passphrase(int(i[0]))) + '''</strong></pre>
|
||||
<hr />
|
||||
|
|
@ -1285,7 +1285,7 @@ By using this service, you agree not to do anything malicious. You agree to use
|
|||
#print(script_links)
|
||||
content = content + '''\n
|
||||
<div class="card" style="text-align: center;">
|
||||
<div class="card-header"><h4><a href="/ss/''' + str(i[0]) + '''">''' + str(i[0]) + '''</a></h4></div>
|
||||
<div class="card-header"><h4><a href="https://radioid.net/database/view?id=''' + str(i[0]) + '''">''' + str(i[0]) + '''</a></h4></div>
|
||||
<div class="card-body" style="max-width:300px; word-wrap:break-word; text-align: center;">MMDVM Passphrase:
|
||||
<pre><strong>''' + str(gen_passphrase(int(i[0]))) + '''</strong></pre>
|
||||
<hr />
|
||||
|
|
@ -1297,7 +1297,7 @@ By using this service, you agree not to do anything malicious. You agree to use
|
|||
elif i[1] == '':
|
||||
content = content + '''
|
||||
<div class="card" style="text-align: center;">
|
||||
<div class="card-header"><h4><a href="/ss/''' + str(i[0]) + '''">''' + str(i[0]) + '''</a></h4></div>
|
||||
<div class="card-header"><h4><a href="https://radioid.net/database/view?id=''' + str(i[0]) + '''">''' + str(i[0]) + '''</a></h4></div>
|
||||
<div class="card-body" style="max-width:300px; word-wrap:break-word; text-align: center;">MMDVM Passphrase:
|
||||
<pre><strong>''' + legacy_passphrase + '''</strong></pre>
|
||||
<hr />
|
||||
|
|
@ -1309,7 +1309,7 @@ By using this service, you agree not to do anything malicious. You agree to use
|
|||
else:
|
||||
content = content + '''
|
||||
<div class="card" style="text-align: center;">
|
||||
<div class="card-header"><h4><a href="/ss/''' + str(i[0]) + '''">''' + str(i[0]) + '''</a></h4></div>
|
||||
<div class="card-header"><h4><a href="https://radioid.net/database/view?id=''' + str(i[0]) + '''">''' + str(i[0]) + '''</a></h4></div>
|
||||
<div class="card-body" style="max-width:300px; word-wrap:break-word; text-align: center;">MMDVM Passphrase:
|
||||
<pre><strong>''' + str(i[1]) + '''</strong></pre>
|
||||
<hr />
|
||||
|
|
@ -2752,6 +2752,9 @@ LOG_NAME: ''' + server + '''
|
|||
content = '''
|
||||
<h1 style="text-align: center;">APRS Settings</h1>
|
||||
|
||||
<h4 style="text-align: center;">Changes may take up to 10 minutes before they take effect.</h4>
|
||||
|
||||
|
||||
<p style="text-align: center;"><br /> Your API key: <strong>''' + str(user_aprs.api_keys)[1:-1] + '''</strong> </p>
|
||||
|
||||
<table class="table" >
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
<h1 style="text-align: center;">APRS Settings</h1>
|
||||
|
||||
<h4 style="text-align: center;">Changes may take up to 10 minutes before they take effect.</h4>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!--
|
||||
<p> </p>
|
||||
<h2 style="text-align: center;"><strong>Social Status</strong></h2>
|
||||
<p>Social Status is an attempt to create a social media like service that can be used via SMS. Users can post to Social Status. Posts can be viewed on the dashboard, or retrieved via SMS.</p>
|
||||
|
|
@ -164,6 +165,7 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
-->
|
||||
<p> </p>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue