diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index c322b67..b9b75d5 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -448,7 +448,7 @@ def mailbox(): if not recipient: mail_content = """

The Mailbox is a place where users can leave messages via DMR SMS. A user can leave a message for someone else by sending a specially formatted SMS to """ + data_call_id + """. - The message recipient can then use the mailbox to check for messages. Enter your call sign below to check for messages. See the help page for more information.

+ The message recipient can then use the mailbox to check for messages. You can also check for APRS mesages addressed to your DMR radio. Enter your call sign below to check for messages. See the help page for more information.

@@ -478,10 +478,23 @@ def mailbox(): ''' for messages in mailbox_file: if messages['recipient'] == recipient.upper(): + sender = """ + + + + + """ if type(messages['time']) == str: loc_time = str(messages['time']) if type(messages['time']) == int or type(messages['time']) == float: loc_time = datetime.fromtimestamp(messages['time']).strftime(time_format) + if type(messages['dmr_id']) == str: + sender = """ + + + + + """ mail_content = mail_content + """
DMR ID:""" + str(messages['dmr_id']) + """
APRS Call:""" + str(messages['dmr_id']) + """
@@ -489,10 +502,7 @@ def mailbox(): - - - - + """ + sender + """
From: """ + messages['call'] + """
DMR ID:""" + str(messages['dmr_id']) + """
Time: """ + loc_time + """