Traccar Manager switching servers

nbl12682 months ago

Hi team, got a small set up, two prod traccar servers, and one test server, different hostnames/IPs, and occasionally access the demo server/s.
I can change the server address in the manager app, via that padlock on home page, bu retyping in the full server details.
Wondering if there is an options (that i havent found yet) to store each server setting in the app, can just switch between those servers?
OR if there is some better way to do this?

Anton Tananaev2 months ago

If you want to update the preset servers, you would have to change the source code.

nbl12682 months ago

Thanks Anton, okay, so more coded needed to add option in the app to save server settings and make them available to select between?

Anton Tananaev2 months ago

Yes.

simplementesea month ago

Hello good afternoon, I would like to ask a question about this, in The app in the lock, the initial server loaded when installing the app appears, then when pressing a list with server options such as demo.traccar.org demo2.traccar.org etc. is displayed. - The initial server can be set in the fragment_star.xml file correctly. - Now the rest of the list of servers from where it takes it, I am very good at this and I did not find the corresponding place in the code

Anton Tananaeva month ago

It's in the web app code.

simplementesea month ago

Forgive my ignorance, I couldn't find it, could you direct me where?

Anton Tananaeva month ago

It's pretty easy to find if you just search for "demo":

https://github.com/traccar/traccar-web/blob/master/src/login/ChangeServerPage.jsx#L14

simplementesea month ago

Hi Anton, sorry. I did search, but in the Android client. I thought the app handled that! Thank you very much.

Anton Tananaeva month ago

In my earlier comment I explicitly said that it's in the web app code.

simplementesea month ago

Sorry for my poor English. I didn't quite understand. Very kind!