-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.SAMPLE
136 lines (104 loc) · 4.97 KB
/
config.SAMPLE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#!/usr/bin/python3.7
###############################################################################
# Copyright (C) 2019 Eric Craw, KF7EEL <kf7eel@qsl.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
###############################################################################
# Version "1.2.1", by Eric, KF7EEL
# Contains all variables and functions for program
# https://github.com/kf7eel/shark-py-sms
# Feel free to modify and improve.
###############################################################################
#CONFIGURATION VARIABLES
###############################################################################
# Openspot IP and password
ip = 'IP ADDRESS'
password = 'openspot'
hotspot_id = '1234'
# Enables or disables replies to network, 1 is enabled, 0 is disabled
# Must login to openspot and tick box in DMR SMS page, "Intercept network messages", then click save
# Or send sms to modem. Network reply is only send to openspot when script needs to send an SMS message.
# Disabled by default
network_reply_mode = 0
# Enables or disables sending replies to talkgroup 9. If off, replies will go to sender via private SMS
# If on, replies will to to talkgroup 9
talkgroup_reply_mode = 0
# Determines if openspot will process SMS from network, sent to hotspot_id
incoming_network_messages = network_reply_mode
# Talk group SMS. Set this to send a message to a talk group. Used in tg_sms function. TG sms all types will send 3 different sms messages
# to each of the three SMS types that openspot supports, 1 = enabled, 0 = disabled
tg_sms = '9'
tg_sms_all_formats = 1
#############################----APRS----######################################
# Callsign and SSID
hotspot_callsign = 'Insert your Callsign with SSID (EXAMPLE: N0CALL-10'
# APRS host, default rotate.aprs.net
aprs_is_host = 'rotate.aprs.net'
aprs_is_port = 14580
# Use YAAC to send APRS messages, 0 = off, 1 = on
use_yaac = 0
yaac_host = 'localhost'
yaac_port = 8010
# APRS-IS passcode
aprs_passcode = 'APRS Passcode'
# Geographical info
latitude = '4726.18N' # Latitude, use this format
longitude = '12019.64W' # Longitude, use this format
altitude = '000679' # Altitude in feet
aprs_comment = 'APRS <-> DMR SMS gateway test'
aprs_beacon_1_comment = 'https://github.com/kf7eel/shark-py-sms'
aprs_beacon_2_comment = 'APRS to DMR SMS demo'
aprs_symbol_table = '/' #Primary table
aprs_symbol = '-' # "House" symbol
# Location packet
#location_packet = hotspot_callsign + '>APRS,TCPIP*:' + '=' + latitude + '/' + longitude + aprs_symbol + aprs_symbol_table + 'A=' + altitude + ' ' + aprs_comment
# Filter to be sent to server, required for incoming packets. 100km radius of Ellensberg, WA
# Must change this to your QTH and change radius.
aprs_filter = 'r/47/-120/100'
# Sends APRS messages to TG 9, network or RF. 0 to enable, 1 to disable
aprs_tg_network_reply = '0'
# ! - fixed short format, = - message capable,
# Enable logging
#logging.basicConfig(level=logging.DEBUG) # level=10, DEBUG for most info
###########################----DMR SMS----######################################
#--------------------------------------------------------
# User, Password, and smtp server of your email account.
email_user = 'E-Mail address'
email_password = 'E-Mail password'
email_server = 'E-Mail server'
smtp_port = 465
pop_port = 995
#--------------------------------------------------------
# Override variables, used in reply function to override the default of replying to what was received.
# Use these to specify all replies to a talkgroup for axample. Some radios will not send ACK
# packet in correct time, resulting in a million messages from the modem.
o_sms_type = "1" # Group
o_sms_format = "2" # UDP/Chinese
o_sms_source = "9" # Talkgroup 9
o_sms_message = None
o_sms_modem = "1"
# Line break variable, used to sort for exact strings. Used variable to mkae code look pretty.
line_break = '\n'
sms_file = '/tmp/.shark.sms'
# Global Variables
sms_type = None #"1"
sms_format = None #"2"
sms_source = None #"9"
sms_message = None
sms_modem = None
data = None
# Map file for routing DMR ID andAPRS SMS
map_csv = 'aprs_to_dmr_map.csv'
################################################################################