Maintenance event only once

Juan Torres 6 years ago

Is it possible to create a maintenance event that only alerts you once? In the Documentation Says:

Traccar generates event every time totalDistance attribute gets over maintenance.start + maintenance.interval * N value where N is a natural number.

Can I set N = 1 in some specific maintenances? so that the server only notifies once?

Thanks.

Anton Tananaev 6 years ago

You can set interval to some really high number, so in practice it will notify only once.

Juan Torres 6 years ago

Thanks for the quickly answer.

In some cases, we need configure short distances.

Example.
I set the total distance to 0 and I want it to alert me when I reach 500km. How can I make this happen only once, and do not repeat at 1000km, 1500km ... and so on.

Anton Tananaev 6 years ago

Something like this:

maintenance.start = -1000000km + 500km
maintenance.interval = 1000000km

Juan Torres 6 years ago

Thanks Anton, understood.