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
370 views 4 comments
by anonymous
Hi,

I am new to Teltonika RMS, We currently have 13 devices and they all work fine.

When I connect to the RMS on web I can see aprox. location of the devices, but when I try to use the API
/devices/{id} -> longitude & latitude are null
/devices/{id}/locations/history -> returns success, but empty array.

Is there something we are supposed to set up on the devices in order for them to work?

1 Answer

0 votes
by anonymous
Hello,

Have you enabled GPS monitoring for that device?

You can do it by selecting the device, then clicking on management, and then the Setup monitoring update period. There, enable GPS monitoring and try once again.
Best answer
by anonymous

Hi,

I have turned it on now and now when I call location it returns this:

{
  "success": true,
  "data": [
    {
      "latitude": null,
      "longitude": null,
      "altitude": null,
      "created_at": "2022-07-19 17:10:38.804636"
    },
    {
      "latitude": null,
      "longitude": null,
      "altitude": null,
      "created_at": "2022-07-19 17:08:59.324681"
    }
  ]
}

Seems like it creates a log, but long and lat are still null.

Anything else I should turn on? longitude

by anonymous
Did you check if the device actually had a a fix for the GPS? You can check this on the WebUI in Services -> GPS -> Map. Also, make sure the GPS is enabled on the device itself and the antenna is attached.
by anonymous
Thank you,

gps wasn't turned on, on the device.

I assumed it was as it was showing the location of the device on the RMS page and I wasn't the one setting them up for the field, I logged in remotely and turned it on.. thanks again!
by anonymous
The location on RMS can be seen by checking the tower data and then the approximate location will be set for the device