FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
680 views 1 comments
by

Hi,

Does anyone know what logic is used to trigger a geofence exit event and notification?

I have it setup, but it will only ever trigger once and does not trigger when the vehicle re-enters and exits the geofence unless I edit the event notification.

I am updating the geofence periodically using a script:

#!/bin/ash

FREQUENCY=60

#Periodically update the 'Parked' geofence

while [ 1 ]; do        # Infinite while loop

if [ $(gpsctl -s) -eq 1 ]; then   # Checks for GPS fix

    uci set gps.Parked.latitude=$(gpsctl -i)

    uci set gps.Parked.longitude=$(gpsctl -x)

fi

sleep $FREQUENCY

done


Thanks,

Nathan

1 Answer

0 votes
by anonymous
Hi,

Could you clarify what are you trying to do? Could you send me a private message and add troubleshoot package from router when issue is appeared?
by
Hi,

I want to be able to enable/disable the geofence via SMS when I park my vehicle up so that I am notified if it leaves.

I don't want to have to also update the geofence location each time and so I want this script to do that periodically. The script works, but I'm currently trying to figure out what the geofence triggering / notification logic is as I'm not consistently being notified.

Cheers,

Nathan