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
509 views 1 comments
by anonymous
How do i set up email notification when the gps position changes and this should be continuous in a variable interval e.g. every five minutes when position changes continuously. Maybe set a home zone and report when leaving every five minutes the actual gps data....

2 Answers

0 votes
by anonymous

Hello Aimac,

Unfortunately, such a feature that you required is still not included in our devices. However, you can enable the GPS geofencing and event reporting features to notify you by email and SMS text when your device leaves or enters your "Home" Zone. You could also enable an action called GPS location on SMS Utilities, and every time you send a specific command via SMS text to your device's SIM card phone number, it will send its current GPS location to your phone. Another alternative would be programming a script to do this task and setting up its periodic execution on the crontab tool.

Here is a basic script to send your device's GPS location to your email:

 

#! /bin/sh

# This script is to get the device's GPS location and send it to a specific email account.

# Replace the fields in capital letters

#Refer to this link to configure an “ACCOUNT NAME”: https://wiki.teltonika-networks.com/view/RUTX11_Administration#Email_Accounts

ubus call vuci.services.eventsreporting send_mail '{ "message" : "Fix time: $(date) \rLatitude: $(gpsctl -i) \rLongitude: $(gpsctl -x)  \n\rGoogle maps URL: \rhttps://maps.google.com/?q=$(gpsctl -i),$(gpsctl -x)&om=1speed:$(printf '%.0f' $(gpsctl -v))","subject":"ANY SUBJECT", "group" : "ACCOUNT NAME", "recMail":"RECEIVER'S EMAIL" }'

The email you would receive looks like this:

https://community.teltonika-networks.com/?qa=blob&qa_blobid=14503859635483902486

If you have some programming knowledge, you can improve this script by adding more information to your email message, or even try to make it work only when the device is outside of your "Home Zone."

For configuring email accounts and Events Reporting on your device, please refer to the links below:

https://wiki.teltonika-networks.com/view/RUTX11_Administration#Email_Accounts

https://wiki.teltonika-networks.com/view/RUTX11_Events_Reporting

For setting automatics reports triggered by geofencing events, check the following link:

https://wiki.teltonika-networks.com/view/RUTX11_GPS#GPS_Geofencing

To get the device location via SMS, refer to this link:

https://wiki.teltonika-networks.com/view/RUTX11_Mobile_Utilities#SMS_Utilities

For periodic script execution, check this crontab tool-related information:

https://wiki.teltonika-networks.com/view/Crontabs

Comments:

The links above refer to RUTX11 information. Nevertheless, you may use them as guidance or look for your specific device on our wiki page main website:

https://wiki.teltonika-networks.com/

I hope this information helps with your query.

by anonymous

Thnks for the script but I get following Email message as result:

Fix time: $(date)
Latitude: $(gpsctl -i)
Longitude: $(gpsctl -x) 

Google maps URL:
https://maps.google.com/?q=$(gpsctl -i),$(gpsctl -x)&om=1speed:$(printf f $(gpsctl -v))

How can I get values of these variables as result?

Thanx!

0 votes
by anonymous
Ok, thank you! I will try that or set a new home zone every time i need site monitoring....