Custom Icons and themes in Docker
Moderator: leecollings
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Custom Icons and themes in Docker
I am experimenting with moving over to Docker following the guide here
https://www.domoticz.com/wiki/Docker
I have it up and running and have managed to upload my old database using the built in function and I have copied over my "Scripts" and "Plugins" folders which are now both available in Domoticz.
However I can't seem to work out how to transfer my custom icons over (and have them available if the container updates).
Is this possible ?
https://www.domoticz.com/wiki/Docker
I have it up and running and have managed to upload my old database using the built in function and I have copied over my "Scripts" and "Plugins" folders which are now both available in Domoticz.
However I can't seem to work out how to transfer my custom icons over (and have them available if the container updates).
Is this possible ?
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Custom Icons and themes in Docker
As mentioned in your other posting you should have a userdata folder.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
I have no userdata folder in the Docker folder (/opt/domoticz) or in my old install directory on RpiOS. Should I create one and where do I pull the themes and icon files from ?
There is a folder called "www" that appears to have themes folders and images in it but this does not exist in the Docker folder.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
A config folder was created and within that a "Plugins" folder and a "Scripts" folder and a "Config" folder were created, but no "userdata" folder.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
Code: Select all
root@domoticz2:/opt/domoticz/config# ls
domocookie.txt domoticz.db domoticz.db-shm domoticz.db-wal plugins scripts
root@domoticz2:/opt/domoticz/config#
Code: Select all
root@domoticz2:/opt/domoticz# ls
config docker-compose.yml
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 223
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Custom Icons and themes in Docker
Same with me no user data folder, in the docker compose there’s a rule with /opt/domoticz/userdata.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- Posts: 536
- Joined: Monday 20 March 2023 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Somewhere in NL
- Contact:
Re: Custom Icons and themes in Docker
The /opt/domoticz/userdata is internal in the container and should be external in the config folder.
Logic will get you from A to B. Imagination will take you everywhere.
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
So I should manually create within the external config folder a new folder called userdata ( /opt/domoticz/config/userdata/ ) and this will be mirrored within the container as /op/domoticz/userdata ?
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 536
- Joined: Monday 20 March 2023 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Somewhere in NL
- Contact:
Re: Custom Icons and themes in Docker
No!
In the container Domoticz is installed in /opt/domoticz
In that foler in the container is a folder userdata created (by Domoticz) that is exposed to the outside world in the ./config folder.
That ./config folder is below the folder in which the compose file is when you startup the Domoticz container with the compose command.
In the container Domoticz is installed in /opt/domoticz
In that foler in the container is a folder userdata created (by Domoticz) that is exposed to the outside world in the ./config folder.
That ./config folder is below the folder in which the compose file is when you startup the Domoticz container with the compose command.
Logic will get you from A to B. Imagination will take you everywhere.
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
Thanks for that. Domoticz did not create a "userdata" folder in my "Config" folder on the host system.
Do I create it myself in that case ?
Which files/folders should I copy over to enable my themes/custom icons in the new Docker install ?
Where should I copy them to ?
In the new Docker domoticz, although there is the setting to change theme, it does nothing, is this normal ?
Code: Select all
admin@domoticz2:/opt/domoticz/config $ ls
domocookie.txt domoticz.db-shm domoticz.log scripts
domoticz.db domoticz.db-wal plugins
Which files/folders should I copy over to enable my themes/custom icons in the new Docker install ?
Where should I copy them to ?
In the new Docker domoticz, although there is the setting to change theme, it does nothing, is this normal ?
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 536
- Joined: Monday 20 March 2023 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Somewhere in NL
- Contact:
Re: Custom Icons and themes in Docker
Your setup look good (best to use next time ls -al)
Those other files are in the Domoticz 'www' folder and that is default NOT exposed to the outside world.
Those other files are in the Domoticz 'www' folder and that is default NOT exposed to the outside world.
Logic will get you from A to B. Imagination will take you everywhere.
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Custom Icons and themes in Docker
Do you use the official domoticz docker image or another ( there are more images available)? https://hub.docker.com/r/domoticz/domoticzsolarboy wrote: ↑Friday 05 January 2024 13:09 Thanks for that. Domoticz did not create a "userdata" folder in my "Config" folder on the host system.
Do I create it myself in that case ?Code: Select all
admin@domoticz2:/opt/domoticz/config $ ls domocookie.txt domoticz.db-shm domoticz.log scripts domoticz.db domoticz.db-wal plugins
Which files/folders should I copy over to enable my themes/custom icons in the new Docker install ?
Where should I copy them to ?
In the new Docker domoticz, although there is the setting to change theme, it does nothing, is this normal ?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
I am following the instructions from this page.
My docker-compose.yml currently is
Code: Select all
https://www.domoticz.com/wiki/Docker
My docker-compose.yml currently is
Code: Select all
version: '3.3'
services:
domoticz:
image: domoticz/domoticz:2023.2
container_name: domoticz
restart: unless-stopped
# Pass devices to container
# devices:
# - "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0"
ports:
- "8080:8080"
volumes:
- ./config:/opt/domoticz/userdata
- /var/sbfspot:/var/sbfspot
- /etc/sbfspot:/etc/sbfspot
environment:
- TZ=Europe/Lisbon
- LOG_PATH=/opt/domoticz/userdata/domoticz.log
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Custom Icons and themes in Docker
Custom icons are INSIDE the database, so when you restore your database, these icons are also here.
No need to do anything special.
No need to do anything special.
Quality outlives Quantity!
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
Thanks for this, however on restoring my database (which should therefore have the old icons) the icons don't appear in the floorplan etc. If I try to change icons individually the custom icons don't appear on the dropdown list.Themes are also unavailable.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Custom Icons and themes in Docker
Theme's is something else than custom icons.
When you go to the custom icon loader in domoticz, you do not see your custom icons?
That is really odd... they should be there
What happens when you load a new custom icon?
Edit, check also with the default theme
When you go to the custom icon loader in domoticz, you do not see your custom icons?
That is really odd... they should be there
What happens when you load a new custom icon?
Edit, check also with the default theme
Quality outlives Quantity!
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
Correct, no Custom Icons there and only default theme available despite the other themes being there.
This was a brand new official docker image that I then "restored" a "backed-up" database into, both being 2023.2 and using the in-built function.
This was a brand new official docker image that I then "restored" a "backed-up" database into, both being 2023.2 and using the in-built function.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Custom Icons and themes in Docker
Oh it's solved thank you.
I uploaded a new Icon with the Custom Icon Uploader, the moment I hit "upload" all the other icons appeared in the window and were available for the floor-plans etc etc.
Thanks again ! Now to get the themes going. I tried changing to other themes but it's always the default theme.
I uploaded a new Icon with the Custom Icon Uploader, the moment I hit "upload" all the other icons appeared in the window and were available for the floor-plans etc etc.
Thanks again ! Now to get the themes going. I tried changing to other themes but it's always the default theme.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 148
- Joined: Tuesday 01 October 2013 8:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Sweden
- Contact:
Re: Custom Icons and themes in Docker
Based on the default volument mounting, ./config:/opt/domoticz/userdata and I've pulled themse down from Git to themes to ./config/www/styles but neither of the templates (aurora and machinon) that I've tried shows up under Settings/Theme option.
Also, beside the above volume, I also have - ./config/www/templates:/opt/domoticz/www/templates due to custom tab issues (ref. to this thread) but it might be general fixed so that this volume isn't needed in later releases?
Also, beside the above volume, I also have - ./config/www/templates:/opt/domoticz/www/templates due to custom tab issues (ref. to this thread) but it might be general fixed so that this volume isn't needed in later releases?
-
- Posts: 22
- Joined: Wednesday 04 October 2017 13:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Custom Icons and themes in Docker
hello,
same behaviour for me, to get custom icons back after a database restore, i need to do as if i wanted to upload new icons, because they don't appear without this.
same behaviour for me, to get custom icons back after a database restore, i need to do as if i wanted to upload new icons, because they don't appear without this.
Who is online
Users browsing this forum: No registered users and 1 guest