openremote / fleet-management

The Fleet Management/Telematics implementation on top of the OpenRemote open-source IoT device management platform.
https://openremote.io/fleet-telematics/
Other
12 stars 3 forks source link

Parse Custom Teltonika Parameters (Not in AVL list) #8

Closed pankalog closed 9 months ago

pankalog commented 10 months ago

The plan is to ask Teltonika directly about the meaning of all those parameters after updating them on the project's progress.

pankalog commented 9 months ago

Using https://github.com/TimeLord2010/TeltonikaParser, we could assume the following:

https://wiki.teltonika-gps.com/view/Codec Maybe reading here would be more useful, especially for priority. Here's what Teltonika has to say about it:

Altitude – meters above sea level.
Angle – degrees from north pole.
Satellites – number of visible satellites.
Speed – speed calculated from satellites.
Note: If record are without valid coordinates – (there were no GPS fix in the moment of data acquisition) – Longitude, Latitude and Altitude values are last valid fix, and Angle, Satellites and Speed are 0.

So, in the Handler, I should probably check if ang is zero, and then go on from there.

Would these parameters be okay enough to set as default for the attribute?

richturner commented 9 months ago

@pankalog Please migrate to fleet management repo

pankalog commented 8 months ago

Had to hardcode them, but they remain the same for all devices.