Add Replay Period Last Hour

gLeW2 days ago

Hi, I'd like to know if there's a way to add the last-hour option to the vehicle replay menu.
The shortest option is today, and sometimes I just need to see the latest movements.

It could be added to the menu by adding something in the settings, or could it be considered for a future update.
Thanks.

Screenshot_5.jpg

Cristian2 days ago
Anton Tananaev2 days ago

When you select "custom", it should give you last hour by default.

gLeW2 days ago

Hello, thank you both for your responses.

Anton, your answer is correct, but there's a mistake.

When you select Custom, it does show the current date and the last hour, but for example, if I select Custom at 9:30 and 45 minutes have passed, and it's already 10:15, and I select Custom again, it still shows the period from 8:30 to 9:30.
The only way is to press F5 and refresh the browser. I haven't tried it on my phone yet, but I should close and reopen the app.

Anton Tananaev2 days ago

Yeah, it only pre-sets it once. It's not a mistake.

gLeWa day ago

Ups, ok so is no way to add last hour to the Menu?

Of course there is - in the code.

gLeWa day ago

Last question, if i modify the code, each time i update traccar to newer version i lost the item in the menu??, are any way to add something to the config file, so everytime i update Traccar i dont lost the "Last Hour Replay"

Thanks in advance

You would have to reapply your change on top of new versions, of course.