mirror of
https://codeberg.org/mclemens/tasmaprs.git
synced 2024-09-07 19:34:24 -04:00
replaces fixed string with variable
This commit is contained in:
parent
c08642b998
commit
28429a1192
@ -46,8 +46,8 @@ def send_aprs(weather_data, energy_data):
|
||||
energy_data["Power"], energy_data["Today"], energy_data["Yesterday"], \
|
||||
energy_data["Total"], weather_data)
|
||||
print(msg)
|
||||
ais.sendall("DK1MI-15>APRS,TCPIP*:={}{} {}".format(GPS_COORDINATES, APRS_SYMBOL, msg))
|
||||
ais.sendall("DK1MI-15>APRS,TCPIP*:>")
|
||||
ais.sendall("{}>APRS,TCPIP*:={}{} {}".format(CALL, GPS_COORDINATES, APRS_SYMBOL, msg))
|
||||
ais.sendall("{}>APRS,TCPIP*:>")
|
||||
|
||||
|
||||
def get_weather_data():
|
||||
|
Loading…
Reference in New Issue
Block a user