OsmAnd "Device Temperature"

spoortrack2 years ago

We use the OsmAnd protocol for our trackers which HTTP POST the data to our Traccar server. Testing is easy since we can generate fake data by typing something like this into a browser which generates a data point in the Traccar server:

http://tracking.server.com:5055/?id=123456×tamp=1659434953&lat=-12.3456&lon=123.45678&battery=4.19&device%20temperature=38.4

One of the attributes is the device temperature which shows up on the State area as "Device temperature" (lower case 't'). However, when looking at Reports, the "Device Temperature" (both D and T upper case) is blank. Is there a different attribute name other than "device temperature" that will map to "Device Temperature" available in the report?

https://drive.google.com/file/d/1OPznrQShS_HcRp0DBDKU-5f6NT-iODk4/view?usp=sharing

Thanks

Anton Tananaev2 years ago

You're using wrong attribute key. You can find correct keys here:

https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/model/Position.java

spoortrack2 years ago

Thanks, that worked.