How to change Icon Category on Device

astinaprojecta year ago

Hi everyone,

Is there a way to change the category icon on the device ?
I have used the default category and it appears as shown in this image.
As in the image, it can be seen in the red mark when the device is entered into a category, the device icon will appear. Is there a way to change the icon to another icon or add a new device category with a new icon?

Thank You.

Anton Tananaeva year ago

It is possible to add or change those in the source code.

astinaprojecta year ago

Sorry to ask again, how do I add or change in the source code. Then how do I build the source code ?

Anton Tananaeva year ago

We have the documentation available on how to build the source code.

Henrick Langnera year ago

Hi Anton,
with version 5.8 you started to make individualisation much easier. What about to add a function to personalise the device images as easy as the server icon…? It would be very useful for people who aren’t this into coding. Thanks!

astinaprojecta year ago

I've build source code with "npm run build" and test run with "npm start" and it work. However, when I moved the files in the "build" folder from the source code to the Traccar Server folder, then restarted the service, the icon that appeared on the device still didn't change and displayed the old default icon.
Why did it happen ?

Nikolay a year ago

Google Chrome on Mac:
Command + Shift + R
Google Chrome on Windows & Linux: CTRL + F5
Firefox on Mac:
Command + Shift + R
Firefox on Windows & Linux:
CTRL + F5
Safari:
Command + Option + R
Opera on Mac:
Command + Alt + R
Opera on Windows:
Shift + F5

Anton Tananaeva year ago

Basically you have to clear the browser cache.

eichenwind6 months ago

Is the size of an icon limited to 24x24?

Anton Tananaev6 months ago

Icons are vector, so dimensions are irrelevant.