Custom fields in OSMAnd

Donald P 8 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}&timestamp={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 Tananaev 8 years ago
Donald P 8 years ago

Hi Anton

Thanks a lot!

Philippe De Croock 7 years ago

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 Tananaev 7 years ago

Check Position class on GitHub.

ELSE 10 days ago

Hello.
Explain me please,
if I want to use any parameter in Position class ( for example "battery" (voltage) or "rpm" or "humidity" etc.) I should send it "as is" named by url's parameter how it described here: https://www.traccar.org/osmand/
Is it correct?

Anton Tananaev 10 days ago

For parameters that are explicitly defined in the doc, you have to use the key from the doc. For anything else the keys will be decoded as is.

ELSE 9 days ago

Ok. Thank you