mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Include fix state in JSON output (#18254)
Mirror the webpage display, and make fix status available for triggers and rules.
This commit is contained in:
parent
56b3fbe917
commit
b456b97dda
@ -827,7 +827,7 @@ void UBXShow(bool json)
|
||||
uint32_t i = UBX.state.log_interval / 10;
|
||||
ResponseAppend_P(PSTR("\"fil\":%u,\"int\":%u}"), UBX.mode.filter_noise, i);
|
||||
} else {
|
||||
ResponseAppend_P(PSTR("\"lat\":%s,\"lon\":%s,\"alt\":%s,\"hAcc\":%s,\"vAcc\":%s}"), lat, lon, alt, hAcc, vAcc);
|
||||
ResponseAppend_P(PSTR("\"lat\":%s,\"lon\":%s,\"alt\":%s,\"hAcc\":%s,\"vAcc\":%s,\"fix\":\"%s\"}"), lat, lon, alt, hAcc, vAcc, kGPSFix[UBX.state.gpsFix]);
|
||||
}
|
||||
#ifdef USE_FLOG
|
||||
ResponseAppend_P(PSTR(",\"FLOG\":{\"rec\":%u,\"mode\":%u,\"sec\":%u}"), Flog->recording, Flog->mode, Flog->sectors_left);
|
||||
@ -927,4 +927,4 @@ bool Xsns60(uint32_t function)
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif // USE_GPS
|
||||
#endif // USE_GPS
|
||||
|
Loading…
x
Reference in New Issue
Block a user