show temperature

geo10 days ago

Hello colleagues. Does anyone know how to activate the temperature in the wan-ways? I don't see it in the position info or do you know what attribute to use to display it, thanks

Anton Tananaev10 days ago

Have you checked "show details" to see everything your device is reporting?

geo10 days ago

Greetings Anton, thank you for your time, yes, I checked in details since for example in other models like teltonika temp it arrives as 1080 or similar, but not here, even to be sure that the equipment sends it I put it in generic systems like wialon and others and there it does give me the temperature of the sensor, but nothing here, I add the details it shows

Attribute Name Value
id Identifier xxxxxxxxx
deviceId 448
protocol Protocol gt06
serverTime Server Time 14/11/2024, 03:04:15 a. m.
deviceTime Device Time 14/11/2024, 03:04:13 a. m.
fixTime Fix Time 14/11/2024, 03:04:13 a. m.
outdated No
valid Valid Yes
latitude Latitude 27.511890°
longitude Longitude -109.956265°
altitude Altitude 0.00 m
speed Speed 0.00 km/h
course Course ↖
address Address Show Address
accuracy Accuracy 0
network Info
geofenceIds Geofences
type Type 18
sat Satellites 15
ignition Ignition Yes
odometer Odometer 3.39 km
distance Distance 0.00 km
totalDistance Total Distance 990.69 km ⚙
motion Motion No
hours Hours 83 h 8 m ⚙

Anton Tananaev10 days ago

It's possible that it's not supported yet. Or it could be that you're looking at the message that doesn't include this data.

geo10 days ago

I thought about that, but to be sure I left it for several hours and even compared it with another live one, and no traccar message appears, I guess then this information is not decoded, I remember that I read that I can use a Computed Attribute directly from the date that arrives? but I don't know how, I have the documentation of the protocol but I don't go far enough to understand it

wanway.png

geo10 days ago

wanway2.png

Anton Tananaev10 days ago

The message type doesn't match the example you provided earlier.

geo10 days ago

I know I'm not an expert at all, nor any AI, that's why I'm asking here,

I put that protocol document in chatgpt and it gave me this that matches the temperature at that moment, I took that package out of the traccar log

Data: 78782312180b0e062410cd02f3a2e60bcc09f200dce5014e320919f81f1700000d500bbb55d60d0a
Breakdown of Package 13
Start Bit: 78 78
2. Packet Length: 0A (10 in decimal)
Protocol Number: 13
Content information: 24 (this may indicate the type of information)
5. Sensor number: 10
6. Sensor ID: cd
7. Temperature: 02 f3 a2 e6 (the bytes that follow)
Temperature Calculation
The bytes that represent the temperature are 02 f3. To convert this to a decimal value:
Value in hexadecimal: 02 f3
Value in decimal: 0x02f3 = 755
Conversion to Degrees Celsius
To convert the value to degrees Celsius:
Temperature = Value in decimal / 100
Temperature = 755 / 100 = 7.55℃
Result
The temperature reported on the Package would be 7.55℃.

I'm just asking for a test that I did, I'm not highlighting it or anything, I'm asking for help, please tell me if you see the inconsistency or impossibility that you're saying to see if I can solve something, thank you very much.

geo10 days ago
Anton Tananaev10 days ago

What ChatGPT provided doesn't make any sense. You can even see that the breakdown doesn't match your HEX sample at all. Furthermore, your sample has protocol number (aka message type) as 0x12, which means it doesn't have temperature data, as you can see from the doc.