Browse Source

Update sms.py

keepalive
Mike 2 years ago
committed by GitHub
parent
commit
e08f558e40
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      sms.py

+ 2
- 2
sms.py View File

@ -85,13 +85,13 @@ def send_sms(twilio_phone_number, to_phone_number, from_callsign, body_message):
def format_aprs_packet(callsign, message):
sender_length = len(callsign)
spaces_after_sender = ' ' * max(1, 9 - sender_length)
spaces_after_sender = ' ' * max(0, 9 - sender_length)
aprs_packet_format = '{}>APRS::{}{}:{}\r\n'.format(APRS_CALLSIGN, callsign, spaces_after_sender, message)
return aprs_packet_format
# Dictionary to store the mapping of aliases (callsigns) to phone numbers
alias_map = {
'laura': '5032985265', # Replace 'alias1' with the desired alias and '1234567890' with the corresponding phone number.
'alias1': '123456789', # Replace 'alias1' with the desired alias and '1234567890' with the corresponding phone number.
'alias2': '9876543210', # Add more entries as needed for other aliases and phone numbers.
# Add more entries as needed.
}


Loading…
Cancel
Save