Custom fields in OSMAnd

Donald P6 years ago

Hi

I just wondered that we can easily to add some custom fields in osmand

http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}×tamp={2}&hdop={3}&altitude={4}&speed={5}&battlevel={6}&fuellevel={7}

battlevel and fuellevel are my additional fields

My questions are:

They would show on Device dashboard as below

battlevel 75%
fuellevel 65%

How to make them nice looking like below

Battery Level 75%
Fuel Level 65%

I ask this question because I added driverUniqueId as additional field and it shows nicely as “Driver Unique Id” so I believe there should be config for doing this.

Another thing is:
Is it possible to make notification for those additional fields?, for example:

If battlevel < 50 or fuellevel < 50 then send an email to specified email

I need advise

Thanks
Don

Anton Tananaev6 years ago
Donald P6 years ago

Hi Anton

Thanks a lot!

Hi Anton,

The link you provided is dead.
Could you provide an updated URL?

My case is the following:

  • we ask people to press a start button and stop button to start/stop tracking.
  • We also ask them when they press start which transport mode they will be using (bike, car, ...)
    That information should be pushed to traccar together with the trip.

I assumed, because of thise feed, this is possible.

Thanks in advance!

Regards.

Anton Tananaev5 years ago

Check Position class on GitHub.