Detecting EYE Beacons

Darío Tzvir3 years ago

Hi, thank you for taking the time to read this and the software you give.
I have just started using the platform so sorry if I'm missing on some aspects, the problem is the following: we are using the Teltonika eye beacons and the final objective is to get them trough the API, the data appears in the more details tab:
https://imgur.com/a/hDBa3rn
The question would be if there is way to get the data in that tab trough the API since when I try get it with the GET /devices what I get is:

{
  "id": 1,
  "attributes": {},
  "groupId": 1,
  "name": "FMC130",
  "uniqueId": xxxxx,
  "status": "online",
  "lastUpdate": xxxxx,
  "positionId": xxxxx,
  "geofenceIds": null,
  "phone": null,
  "model": "FMC130",
  "contact": null,
  "category": null,
  "disabled": false,
  "expirationTime": null
}

The other way that I read in the documentation that could be possible what we want to do is to use a computed attribute and just get the AVL parameter in this case the 385 but i can´t make it work, for what I saw I have to make something like this and decode it later:
https://imgur.com/a/kywuYzs
But it marks it as an undefined variable and just get stuck there

Darío Tzvir3 years ago

It no longer let me edit the post so I put the images again:
tab details
computed attribute

Anton Tananaev3 years ago

I think what you're looking for is the /api/positions endpoint.

Darío Tzvir3 years ago

Thank you, it gets the data correctly.
Just out of curiosity, how would I need to do to get the raw data to then decodify it?

Anton Tananaev3 years ago

If you want the raw data, there's a configuration option to include the original raw HEX in the attributes.