Add Replay Period Last Hour

gLeW 7 months 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

Cristian 7 months ago
Anton Tananaev 7 months ago

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

gLeW 7 months 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 Tananaev 7 months ago

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

gLeW 7 months ago

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

Anton Tananaev 7 months ago

Of course there is - in the code.

gLeW 7 months 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

Anton Tananaev 7 months ago

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