Personalize OverSpeed Report

Andrei5 years ago

Hello i have 2 questions:
A. I try to personalize the over speed report because i need to know the difference between the overspeed and the speed limit.
I try to modify the deviceOverspeed.vm and put the folowing sentece

#set ($Diferenta = $speedValue-$speedLimit)
#set($DiferentaStr = $numberTool.format("0.0 km/h", $Diferenta))
and in the body
A inregistrat viteza de: $speedString# depasind cu: $DiferentaStr# viteza de $speedLimit# {if}($geofence) in $geofence.name#{else}#{end}

but when i check the server log i receive

ERROR: Thread exception - Encountered "$speedLimit" at full\deviceOverspeed.vm[line 10, column 32]
Was expecting one of:
    "[" ...
    <RPAREN> ...
    <WHITESPACE> ...
    "-" ...
    "+" ...
    "*" ...
    "/" ...
    "%" ...
    <LOGICAL_AND> ...
    <LOGICAL_OR> ...
    <LOGICAL_LT> ...
    <LOGICAL_LE> ...
    <LOGICAL_GT> ...
    <LOGICAL_GE> ...
    <LOGICAL_EQUALS> ...
    <LOGICAL_NOT_EQUALS> ...

B. in Traccar overspeed excell report it give me the values of speed in KN, i want to change this to km/h like that
speed=28.989318811763763 speedLimit=26.997840172786177
Where can i personalize that
PLEASE HELP ME SOLVE THIS