From bcf5beb4e7662f562c7a37e057bc3dafd66e2dbe Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Sun, 7 Mar 2021 17:33:09 +0100 Subject: [PATCH] * (Apollon77) fix latitude/longitude --- geofency.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geofency.js b/geofency.js index a6f7392..194b0a5 100644 --- a/geofency.js +++ b/geofency.js @@ -203,8 +203,8 @@ function setStates(id, jbody) { adapter.setState(id + '.' + lastStateNames[(jbody.entry == "1") ? 1 : 0], {val: ts, ack: true}); adapter.setState(id + '.motion', {val: jbody.motion, ack: true}); adapter.setState(id + '.name', {val: jbody.name, ack: true}); - adapter.setState(id + '.currentLatitude', {val: jbody.currentLatitude, ack: true}); - adapter.setState(id + '.currentLongitude', {val: jbody.currentLongitude, ack: true}); + adapter.setState(id + '.currentLatitude', {val: jbody.latitude, ack: true}); + adapter.setState(id + '.currentLongitude', {val: jbody.longitude, ack: true}); }