replaces fixed string with variable

This commit is contained in:
Michael Clemens 2022-06-01 16:21:08 +02:00
parent c08642b998
commit 28429a1192
1 changed files with 2 additions and 2 deletions

View File

@ -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():