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
110 views 2 comments
by anonymous
Hello,

can someone provide a script to send automatically the GPS coordinates, as soon the Router (RUT955) gets switched on?

Thanks in advance.

1 Answer

0 votes
by anonymous
Hello,

GPS on our devices is handled by the modem, and it takes some time to lock onto the GPS satellites. Thus the service that you have configured should send the GPS coordinates as soon as it receives a signal from the satellite.

Best regards,
DaumantasG
by anonymous
Hello,

I didn't configured it yet!

My question was can you provide the code for a script to send the GPS at SMS?
 

Best Regards
by anonymous

Hello,

  

Unfortunately, I don't really have such a script. However, it could be implemented by using the coordinates provided by the command:

ubus call gpsd position

And sending the SMS using the command:

gsmctl -S -s "<phone_number> <text>"

This script could be placed in the startup scripts in System → User Scripts. I would also recommend adding a sleep(20) before the script to make sure the device has a lock on GPS satellites.

  

Best regards,
DaumantasG