aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/MainEventHandler.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/org/traccar/MainEventHandler.java b/src/org/traccar/MainEventHandler.java
index 8ca73dd77..3a8e36146 100644
--- a/src/org/traccar/MainEventHandler.java
+++ b/src/org/traccar/MainEventHandler.java
@@ -71,6 +71,16 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter {
if (position.getAccuracy() > 0) {
s.append(", accuracy: ").append(String.format("%.1f", position.getAccuracy()));
}
+ if (position.getOutdated()) {
+ s.append(", outdated");
+ }
+ if (!position.getValid()) {
+ s.append(", invalid");
+ }
+ Object batteryLevel = position.getInteger(Position.KEY_BATTERY_LEVEL);
+ if (batteryLevel != null) {
+ s.append(", battery: ").append(batteryLevel).append('%');
+ }
Object cmdResult = position.getAttributes().get(Position.KEY_RESULT);
if (cmdResult != null) {
s.append(", result: ").append(cmdResult);