TheTransitClock / transitime

TheTransitClock real-time transit information system
GNU General Public License v3.0
78 stars 30 forks source link

Traccar - replace "deviceId" from api/positions with "name" from api/devices #218

Closed wkulesza closed 3 years ago

wkulesza commented 3 years ago

Is your enhancement request to replace an existing functionality within TheTransitClock? Currently, traccar module takes the deviceId from traccar to be used in TC, instead of name

Is your enhancement request related to a problem? Please describe. deviceId is the value automatically assigned in traccar.

Describe the solution you'd like User has the control over "name" parameter in traccar and this value should be used to display within TC. Vehicle: BusABC

Additional context Two requests should be made to Traccar, in order to store "name" rather than "deviceId". Alternatively, both values can be taken and displayed in the following way: Vehicle name: BusABC Vehicle id: 12

scrudden commented 3 years ago

Duplicate of #204

wkulesza commented 3 years ago

Recent commits by scrudden changed this and now TC returns correct values. Only requirement is for the user that is used to access Traccar api, to be administrator. This is to be set in the Traccar web app.