change speed format

good afternoon .
I am with a doubt I was using version 3.14 and on server had the option to change the speed to km / h now there is no longer this option, where it changes now this.
Well in the alerts emails this is going like kn

Anton Tananaev7 years ago

It's been moved to Attributes.

how do i put a picture here a print from my screen

Anton Tananaev7 years ago

You can upload to any third party service.

my is marked in server attributes km / h but the emails arrive so

DISPOSITIVO: CRX1
EXCEDEU A VELOCIDADE: 17.8 kn
HORARIO: 14-12-2017 17:40:41

Anton Tananaev7 years ago

What is selected in user attributes? Provide screenshots of server settings (with preferences), server attributes and user attributes.

or it may be something related to the email template I use, below,

#set($subject = "$device.name: EXCEDEU LIMITE DE VELOCIDADE")
#if($speedUnits == 'kmh')
#set($speedValue = $position.speed * 1.852)
#set($speedString = $numberTool.format("0.0 km/h", $speedValue))
#elseif($speedUnits == 'mph')
#set($speedValue = $position.speed * 1.15078)
#set($speedString = $numberTool.format("0.0 mph", $speedValue))
#else
#set($speedString = $numberTool.format("0.0 kn", $position.speed))
#end
<!DOCTYPE html>
<html>
<body>DISPOSITIVO: $device.name<br>EXCEDEU A VELOCIDADE: $speedString<br>
HORARIO: $dateTool.format("dd-MM-YYYY HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
Anton Tananaev7 years ago

Your screenshots are no accessible. You need to create a proper shared link in Dropbox.

As for template, I would recommend to try official version without any modifications.

Anton Tananaev7 years ago

I can see that speed units in the state panel are correct, so it means that everything is configured correctly.

visiondrive7 years ago

Paulo - I had similar issue to yours. In your template change speedUnits to be speedUnit - without the s on the end and let us know the results. Appears to me that speedUnits was fine in 3.1.4 but is not populated in 3.15 and thus the output is always knots

Jovel7 years ago

Can you have different attributes? I am looking to set up this server for one region where they use Miles and also another region where they will need KM

Anton Tananaev7 years ago

Each user can configure their own units.

Jovel7 years ago

Thank Anton, I been poking around and perhaps the groups could also be a way to separate them?