Direct MySQL Update of Device attributes

Neil Romig 9 years ago

I wish to create an attribute for a device and also to update the "model" and "phone" fields, taken from values in another database. When I create the attribute or set the model using a SQL statement it works OK but when I log in to the Traccar web interface it is not picked up. I have tried setting the lastupdate timestamp at the same time but still not picked up.
How should I go about updating the devices table using MySQL?

Anton Tananaev 9 years ago

There is internal cache in the server. It won't read the database, unless something changes.

Neil Romig 9 years ago

But I have changed something! Can I let the server know a value has changed or can I only use the web interface to set attributes?

Anton Tananaev 9 years ago

You have to use API to make modifications.