Page 1 of 1

Adding custom how to

Posted: Monday 13 May 2024 21:31
by HvdW
I can use some advice about custom icons.
I learned from the wiki https://www.domoticz.com/wiki/Custom_ic ... binterface
At 11. it says I need to upload the new icons (which I downloaded from elsewhere) from _default.rar.
Unpacked and repacked the file to icons.zip
Here's the list of most of the icons present in the zip file.

Code: Select all

Alert.png
Alert48_0.png
Alert48_1.png
Alert48_2.png
Alert48_3.png
Alert48_4.png
Azimuth.png
Azimuth48_Off.png
Azimuth48_On.png
baro48.png
blinds.png
blinds48.png
blinds48sel.png
blindsopen48.png
blindsopen48sel.png
ice.png
lux.png
lux48.png
moisture.png
moisture48.png
override.png
override_mini.png
radiation.png
radiation48.png
rain.png
rain48.png
temp-0-5.png
temp-10-15.png
temp-15-20.png
temp-20-25.png
temp-25-30.png
temp-5-10.png
temp-gt-30.png
temp48.png
uv.png
uv48.png
visibility.png
visibility48.png
Wind0.png
WindE.png
WindENE.png
WindESE.png
WindN.png
When uploading Setup -> More Options -> Custom Items there is the following message.
erro.jpg
erro.jpg (11.09 KiB) Viewed 4897 times
Meanwhile one way or the other the uploaded icons can be located in ~/domoticz/www/images
So I added the uploaded icons to the file switch_icons.txt like

Code: Select all

Alert;Alert;Alert
Azimuth;Azimuth;Azimuth
Blinds;Blinds;Blinds
Ice;Ice;Ice
Lux;Lux;Lux
Moisture;Moisture;Moisture
Override;Override;Override
Radiatio;Radiation;Radiation
Rain;Rain;Rain
Temp;Temp;Temp
Uv;Uv;Uv
Visibility;Visibility;Visibility
Wind;Wind;Wind
After a restart of Domoticz the icons seem more or less present.
Icons.jpg
Icons.jpg (14.32 KiB) Viewed 4897 times
Where did I go wrong and what to do to correct it.

Re: Adding custom icons

Posted: Tuesday 14 May 2024 0:33
by waltervl
The custom icon zip file must contain images and a text file that maps the images to a configuration.

But it seems you have downloaded a set of icons that should overwrite the existing icons in your installation folder domoticz/www/icons

So do not use the icons zip uploader tool but copy-paste and overwrite the new images directly in the folder domoticz/www/icons

Re: Adding custom icons

Posted: Tuesday 14 May 2024 6:48
by habahabahaba
https://www.domoticz.com/wiki/Custom_ic ... binterface


Oh.. didnt see you read it, sorry

Try the icon generator that described in Wiki. Works fine.

Re: Adding custom icons

Posted: Tuesday 14 May 2024 9:01
by waltervl
HvdW wrote: Monday 13 May 2024 21:31 I can use some advice about custom icons.
I learned from the wiki https://www.domoticz.com/wiki/Custom_ic ... binterface
At 11. it says I need to upload the new icons (which I downloaded from elsewhere) from _default.rar.
Unpacked and repacked the file to icons.zip
You should not have unpacked and repacked those in one Zip. You should have imported the seperate zips one by one.

Re: Adding custom icons

Posted: Wednesday 15 May 2024 0:25
by HvdW
Thanks very much for helping.
I had a problem reading that the zip file should contain the text file as well as the pics.
Everything fine now and changing icons within dzVents is working perfectly.