Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
fix for Geofence checking, remove double check for accuracy to avoid removing ifriend when poor horizontalaccuracy and normal sized geofence
  • Loading branch information
ghawken committed Feb 4, 2020
1 parent ce58eb5 commit 26ac01f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion iFindFriendsMini.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>1.0.3</string>
<string>1.0.4</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>CFBundleDisplayName</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def checkGeofence(self):
# this may be the space to look at more complication accuracy versus seperation type calculation
# will run and gather more data first
# change here - not accurate do not remove rom Geofence
if iDevUniqueName in geoDevices.states['listFriends'] and DistanceAccurate <= igeoRangeDistance: #if already present ignore accuracy data
if iDevUniqueName in geoDevices.states['listFriends']: #//remoce this check and DistanceAccurate <= igeoRangeDistance: #if already present ignore accuracy data
self.logger.debug(u'---------------- Accuracy Poor: ' + unicode(iDevUniqueName) + ' & Is WITHIN Geofence:' + unicode(igeoName) + ', poor accuracy so do not remove. Distance:'+unicode(iSeparationABS)+ u' DistanceAccurate --Used-- Result equals:'+unicode(DistanceAccurate))
if self.debuggeofence:
self.newlogger.info(u"{0:=^160}".format(""))
Expand Down Expand Up @@ -1187,8 +1187,9 @@ def requestSaveUrl(self, url, file):
for chunk in r.iter_content():
f.write(chunk)
except:
self.logger.exception("Exception in saveURL Requests")

if self.debugmaps:
self.logger.exception("Exception in saveURL Requests")
self.logger.debug("Exception in save Map Requests")

def godoMapping(self, latitude, longitude, dev):

Expand Down

0 comments on commit 26ac01f

Please sign in to comment.