New column in positions table Traccar

35TlEcDv2 years ago

Hello everyone,

I wish for my application to add a new column to the position table allowing to indicate a weight, for that I added a value 'weight' in the file 'Position.java' (with getter and setter) as well as in the file 'Position.js', I also added 'weight' in the file 'usePositionAttribut.js' in order to visualize it in the report of road and to finish I added in my Mysql database the column 'weight' with a value for each lines.

However, when I select 'weight' in my route report the column is empty.

Can anyone tell me what I forgot to add or what I missed?

Thanks in advance

Anton Tananaev2 years ago

Have you checked if you're getting the value through the API?

35TlEcDv2 years ago

I managed to display my data, I have trouble building my .jar file I think, thanks anyway.

I have another question, I have a database containing this weight data, currently I'm testing with hard data but I want to create an api allowing me to transfer the masses stored in this database into my traccar database.
Do I have to use the traccar api to make a modification on the traccar database, if yes how can I proceed?

Thank you.