Traccar API

Randolph Power4 years ago

Hello,

Is there a way to obtain the temperature meassures from my device via API?

Anton Tananaev4 years ago

Yes, if your device reports temperature and server support it, you should get it as a part of positions attributes.

Randolph Power4 years ago

Hello, i have installed version 4.8 of traccar, and i am using this GPS "3G CelloTrack Nano 20", i am getting the positions in my server.

The gps measures this:

  • Light
  • Acc RMS
  • Altitude
  • Temperature
  • Battery
  • RSSI Cellular

I am only getting Altitude and position, how can i get the other measures? why isn't the temperature showing in the API?, do i have to configure anything?

This is the position i am getting from the api:

 {
        "id": 6355,
        "attributes": {
            "distance": 0.0,
            "totalDistance": 8248389.54,
            "motion": true
        },
        "deviceId": 34,
        "type": null,
        "protocol": "cellocator",
        "serverTime": "2020-04-27T23:14:42.492+0000",
        "deviceTime": "2020-04-27T23:14:40.000+0000",
        "fixTime": "2020-04-27T23:14:40.000+0000",
        "outdated": false,
        "valid": false,
        "latitude": -33.446870229955714,
        "longitude": -70.64594824106035,
        "altitude": 573.1,
        "speed": 0.0388768,
        "course": 115.16451682129546,
        "address": null,
        "accuracy": 0.0,
        "network": null
    }

Hope you can help me with this.

Anton Tananaev4 years ago

My guess would be that Traccar only support basic data for this protocol.