Adding devices directly in DB

Fareed Qureshi 4 years ago

Hi,
I have created a API server on PHP as I require some additional information to be stored in DB, I am adding devices in table tc_devices and also adding in tc_user_devices but after adding devices in respective tables they do not appear on web, I have to stop/start traccar service in order to show them on web. Please confirm what can I do instead of stopping and starting services as It logout user as well. Thanks

Anton Tananaev 4 years ago

You can use the API instead of inserting into the database directly.

Fareed Qureshi 4 years ago

Adding devices through my own php API server as I require few more fields for devices, I have expertise in php not java therefore I am developing api in php according to my requirements.

Anton Tananaev 4 years ago

I'm talking about calling Traccar API. You don't need to know Java for that.

BerndFfm 4 years ago

Hi Fareed,

with the Traccar API you can add your attributes as you want.

#Bernd