update dashboard

This commit is contained in:
KF7EEL 2021-04-22 16:14:54 -07:00
parent 9946b7ee53
commit 3b945ab886
3 changed files with 15 additions and 15 deletions

View File

@ -179,7 +179,7 @@ def aprs_to_latlon(x):
minutes = x - 100*degrees
return degrees + minutes/60
def user_setting_write(dmr_id, input_ssid, input_icon, input_comment):
def user_setting_write(dmr_id, input_ssid, input_icon, input_comment, input_aprs):
dmr_id = int(dmr_id)
user_settings = ast.literal_eval(os.popen('cat ' + user_settings_file).read())
new_dict = user_settings
@ -406,11 +406,11 @@ def user_settings():
ssid = user_settings[int(request.form.get('dmr_id'))][1]['ssid']
icon = user_settings[int(request.form.get('dmr_id'))][2]['icon']
comment = user_settings[int(request.form.get('dmr_id'))][3]['comment']
pin = user_settings[int(request.form.get('dmr_id'))][4]['pin']
aprs_msg_status = str(user_settings[int(request.form.get('dmr_id'))][5]['APRS'])
try:
pin = user_settings[int(request.form.get('dmr_id'))][4]['pin']
if pin != '':
if ssid == '':
ssid = aprs_ssid
if icon == '':
@ -464,7 +464,7 @@ def user_settings():
"""
except:
if pin == '':
user_result = """<h2 style="text-align: center;">No PIN set for """ + str(user_settings[int(user_id)][0]['call']) + """ - """ + request.form.get('dmr_id') + """</h2>
<p style="text-align: center;"><button onclick="history.back()">Back</button>
</p>"""

View File

@ -7,7 +7,7 @@
<tbody>
<tr>
<td><strong>Name</strong></td>
<td>{{contact_name}} </td>
<td>&nbsp;{{contact_name}} </td>
</tr>
<tr>
<td><strong>Callsign</strong></td>

View File

@ -66,39 +66,39 @@
<td><em><code>@BB This is a test bulletin.</code></em></td>
</tr>
<tr>
<td><strong>@[CALLSIGN W/ SSID] A-[MESSAGE]</strong></td>
<td><strong>@[CALLSIGN W/ SSID] [MESSAGE]</strong></td>
<td>Send a message to another station via APRS.</td>
<td><em><code>@N0CALL-15 A-This is a test.</code></em></td>
<td><em><code>@N0CALL-15 This is a test.</code></em></td>
</tr>
<tr>
<td><strong>[EMAIL ADDRESS] E-[MESSAGE]</strong></td>
<td><strong>[EMAIL ADDRESS] [MESSAGE]</strong></td>
<td>Send an email to an email address.</td>
<td><em><code>test@example.org E-This is a test.</code></em></td>
<td><em><code>test@example.org This is a test.</code></em></td>
</tr>
<tr>
<td><strong>@[RECIPIENT CALLSIGN] M-[MESSAGE]</strong></td>
<td>Post a message to the Mailbox.</td>
<td><em>@N0CALL M-This is a test.</em></td>
<td><em><code>@N0CALL M-This is a test.</code></em></td>
</tr>
<tr>
<td><strong>@REM MAIL</strong></td>
<td>Remove all mail addressed to you.</td>
<td><em>@REM MAIL</em></td>
<td><em><code>@REM MAIL</code></em></td>
</tr>
<tr>
<td><strong>@SOS</strong></td>
<td>EMERGENCY activation displays a banner on the main dashboard page.</td>
<td><em>THIS IS AN EMERGENCY. @SOS</em></td>
<td><em><code>THIS IS AN EMERGENCY. @SOS</code></em></td>
</tr>
<tr>
<td><strong>@NOTICE</strong></td>
<td>Used to prominantly display a notice, similar to EMERGENCY activation.</td>
<td><em>@NOTICE Server going down at 1800</em></td>
<td><em><code>@NOTICE Server going down at 1800</code></em></td>
</tr>
<tr>
<td><strong>@REM SOS</strong></td>
<td>Removes an EMERGENCY or notice.</td>
<td><em>@REM SOS</em></td>
<td><em><code>@REM SOS</code></em></td>
</tr>
</tbody>
</table>