Harap ditambahkan format koordinat di keterangan program:
#define STATION_LAT "0123.45S" // Lattitude position of Station in DDMM.SS
#define STATION_LONG "11145.12E" // Longitude position of Station in DDDMM.SS
void SerialTransmit(WiFiClient myclient, float h, float f, float p) {
Serial.print(STATION_ID);
Serial.print(">APRS,TCPIP*:@");
if (day() < 10) {
Serial.print("0");
}
Serial.print(day());
if (hour() < 10) {
Serial.print("0");
}
Serial.print(hour());
if (minute() < 10) {
Serial.print("0");
}
Serial.print(minute());
Serial.print("z");
Serial.print(STATION_LAT);
Serial.print("/");
Serial.print(STATION_LONG);
Serial.print("_");
Serial.print("..."); // Wind Direction from True North
Serial.print("/");
Serial.print("..."); // Wind speed in mph
Serial.print("g");
Serial.print("..."); // Wind Gust
Serial.print("t");
if (f<10) {
Serial.print("00");
} else if (f<100) {
Serial.print("0");
}
Serial.print(round(f)); // Temperature in Farenheit
Serial.print("r");
Serial.print("..."); // Rain in hundred of inch in last 1 hour
Serial.print("p");
Serial.print("..."); // Rain in hundred of inch in last 24 hour
Serial.print("P");
Serial.print("..."); // Rain in hundred of inch since midnight
Serial.print("b");
if (p<100000) {
Serial.print("0");
}
Serial.print(round(p/10)); // Pressure in tenths of milibar
Serial.print("h");
Serial.print(round(h)); // Humidity in Percentage
Serial.print("\n");
}