Dynamic Trip configurations

Hamza Javed5 years ago

Hi,
to calculate trips the trip configs are defined in "context.java" is this possible to use different trip configurations for different devices/groups.
i.e.
for device 1 report.trip.minimalTripDistance = 500 but for device 02 report.trip.minimalTripDistance = 300 similarly for other attributes like (report.trip.minimalTripDuration, report.trip.minimalParkingDuration, report.trip.minimalNoDataDuration etc)

Ernesto Vallejo5 years ago

I don't see why not. Maybe you would still need server config as default for fallback.

Hamza Javed5 years ago

Surely server config used as default,
Can you point me in right direction that where to save device/group related configs ?
In attributes column of there respective tables or some where else i.e. new table or new column ?

Ernesto Vallejo5 years ago

Try in attributes

Damjan3 years ago

@Hamza Javed did you figure out how to use different configurations for different devices/groups, or anyone else? When I hardcode the value like this

  <entry key='coordinates.minError'>50</entry>

in the configuration file it works, but how can I reference it or "pick" it up from user/device attributes or any other place?

Best regards

Anton Tananaev3 years ago

I believe it's global.

Damjan3 years ago

Ok, thanks for the fast reply. Appreciate it