Adding custom how to Topic is solved

Moderator: leecollings

Post Reply
HvdW
Posts: 529
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Adding custom how to

Post 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 2735 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 2735 times
Where did I go wrong and what to do to correct it.
Last edited by HvdW on Wednesday 15 May 2024 23:25, edited 4 times in total.
Bugs bug me.
User avatar
waltervl
Posts: 5378
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Adding custom icons

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
habahabahaba
Posts: 212
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Adding custom icons

Post 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.
Last edited by habahabahaba on Tuesday 14 May 2024 10:25, edited 3 times in total.
User avatar
waltervl
Posts: 5378
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Adding custom icons

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
HvdW
Posts: 529
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Adding custom icons

Post 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.
Bugs bug me.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest