#2215 Custom Icons uploader Implemented

Moderator: leecollings

User avatar
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: #2215 Custom Icons uploader Implemented

Post by gizmocuz »

That's not the case with the above zip.
The problem is that the icons/definition in the zip where inside a folder.

But the next beta will allow that, and also multiple folders, each folder should contain a definition file
Quality outlives Quantity!
User avatar
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: #2215 Custom Icons uploader Implemented

Post by gizmocuz »

new beta (#2793, 0fcd396)

- Fixed: Icon Uploader, uploading went wrong with large files
- Implemented: Icon Uploader, now possible to upload zip files with multiple folders
- Implemented: Icon Uploader, now possible to edit name and description

Folder structure can be

Code: Select all

[zip file]
 icons.txt
 icon.png
 icon48_On.png
 icon48_Off.png
or

Code: Select all

[zip file]
 - [folder 1]
     icons.txt
     icon.png
     icon48_On.png
     icon48_Off.png
 - [folder 2]
     icons.txt
     icon.png
     icon48_On.png
     icon48_Off.png
 - [folder xx]
     icons.txt
     icon.png
     icon48_On.png
     icon48_Off.png
Quality outlives Quantity!
sylvainsjc
Posts: 8
Joined: Sunday 01 March 2015 10:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by sylvainsjc »

Great it works now :D
It remains a small problem with icon size in the visualization.
Although my reference icons are 16x16 size, they are too big in the visualization.
Here is a screenshot :
custom-icons.jpg
custom-icons.jpg (35.61 KiB) Viewed 9066 times
Raspberry + Raspian + Domoticz Beta + Rfxcom433e + heater control with Chacon 54755 + sensors TS34C + OWL160 + Z-Wave Everspring/Fibaro
Complete Backup script using "dd" to remote hard disk
User avatar
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: #2215 Custom Icons uploader Implemented

Post by gizmocuz »

I think your On/Off icons are not 48x48 ?

Will be solved in the next beta, but try using the recommended sizes (16 for small, 48x48 for big)
Quality outlives Quantity!
Ricky74
Posts: 4
Joined: Wednesday 29 July 2015 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Ricky74 »

Hello Gizmocuz,

I've created a new icon for on off switch.
But I have problem for modify them after their upload.
If I delete it and upload the modified zip, I never see the modifications. I have to rename files to see change...
I try to delete cache (chrome), restart domoticz, but nothing changes !
Do you have an idea?
Is it normal?
User avatar
krazny
Posts: 27
Joined: Saturday 01 November 2014 23:31
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by krazny »

Ricky74 wrote:Hello Gizmocuz,

I've created a new icon for on off switch.
But I have problem for modify them after their upload.
If I delete it and upload the modified zip, I never see the modifications. I have to rename files to see change...
I try to delete cache (chrome), restart domoticz, but nothing changes !
Do you have an idea?
Is it normal?
That indeed happens sometimes and gets fixed over time. Somehow the 'old' icon keeps appearing in Chrome.
If you try IE for example its probable OK?
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation
User avatar
Moppersmurf
Posts: 27
Joined: Tuesday 29 September 2015 17:39
Target OS: NAS (Synology & others)
Domoticz version: Lat.Beta
Location: Nederland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Moppersmurf »

Hi Gizmocuz,

Currently only supported for On/Off switches (as it is now), and probably later for other types as well

Any change you will update it to work for other types in the future?
Like it a lot and have some Icons I want to change.


I made Plex icons and will mail them to [email protected]
Attachments
Plex48_On.png
Plex48_On.png (3.34 KiB) Viewed 8719 times
plex.zip
(5.46 KiB) Downloaded 304 times
Last edited by Moppersmurf on Thursday 17 December 2015 21:47, edited 1 time in total.
jarwis
Posts: 10
Joined: Wednesday 11 November 2015 13:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Finland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by jarwis »

I've created custom icons for AIRAM Christmas Window decorative lighting.

[ENG] AIRAM Christmas Window
[FIN] AIRAM Jouluikkuna
[SWE] AIRAM Julfönster

The Airam_jouluikkuna.zip contains the following files:
  • icons.txt
  • Jouluikkuna.png (16x16)
  • Jouluikkuna48_On.png (48x48)
  • Jouluikkuna48_Off.png (48x48)
I've also sent the icons to [email protected].
Attachments
Airam_jouluikkuna.zip
AIRAM Jouluikkuna icons
(7.45 KiB) Downloaded 271 times
User avatar
Moppersmurf
Posts: 27
Joined: Tuesday 29 September 2015 17:39
Target OS: NAS (Synology & others)
Domoticz version: Lat.Beta
Location: Nederland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Moppersmurf »

I've go an uplighter and made a icon for it. I think it looks ok.

I'll also send it to the known e-email address.
Attachments
Uplighter48_Off.png
Uplighter48_Off.png (1.93 KiB) Viewed 8720 times
Uplighter48_On.png
Uplighter48_On.png (2.11 KiB) Viewed 8720 times
Uplighter.zip
(5.22 KiB) Downloaded 325 times
hansrune
Posts: 49
Joined: Monday 07 October 2013 10:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by hansrune »

What is the easiest way to replicate all icon collections from one Domoticz instance to another one? I'd like to keep them the same.


Sent from my iPad using Tapatalk
User avatar
Moppersmurf
Posts: 27
Joined: Tuesday 29 September 2015 17:39
Target OS: NAS (Synology & others)
Domoticz version: Lat.Beta
Location: Nederland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Moppersmurf »

http://domoticz.com/forum/viewtopic.php?f=8&t=7749

Check this out how to copy your icons.
User avatar
Moppersmurf
Posts: 27
Joined: Tuesday 29 September 2015 17:39
Target OS: NAS (Synology & others)
Domoticz version: Lat.Beta
Location: Nederland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Moppersmurf »

I've made a blacklight icon for a blacklight tube. Will send it to the known e-mailbox.
Attachments
Blacklight48_On.png
Blacklight48_On.png (4.58 KiB) Viewed 8453 times
Blacklight48_Off.png
Blacklight48_Off.png (756 Bytes) Viewed 8453 times
Blacklight.zip
(6.26 KiB) Downloaded 169 times
User avatar
Moppersmurf
Posts: 27
Joined: Tuesday 29 September 2015 17:39
Target OS: NAS (Synology & others)
Domoticz version: Lat.Beta
Location: Nederland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Moppersmurf »

I've also made icons for a Ikea Pax light URSHULT.

Will mail them as well.
Attachments
Paxkast.zip
(5.02 KiB) Downloaded 312 times
Paxkast48_On.png
Paxkast48_On.png (2.11 KiB) Viewed 8438 times
Paxkast48_Off.png
Paxkast48_Off.png (1.85 KiB) Viewed 8438 times
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by nayr »

I get error saying: Error uploading Iconset: Error writing zip to disk

Where do I have to give write permission to stash the upload?

*edit*
set the following in main/SQLHelper.cpp

Code: Select all

std::string outputfile = "/tmp/custom_icons.zip";
and it worked, perhaps have a check to see if wherever its trying to write is writable, and if not try /tmp? IMHO a temporary file should not be arbitrary saved relative to how the program was launched.

I am starting domoticz with systemD, no idea what directory it runs from.. probably root given the errors.

Code: Select all

[Unit]
Description=domoticz service
After=network.target

[Service]
Type=simple
User=domoticz
Group=domoticz
ExecStart=/home/domoticz/domoticz/domoticz -log /home/domoticz/domoticz.log
StandardOutput=null
Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by nayr »

Icons for the AndroidTV (Nexus Player/Amazon Fire/Nvidia Shield/etc)
Attachments
android-tv48_On.png
android-tv48_On.png (2.54 KiB) Viewed 8319 times
android-tv.zip
android tv icons
(5.13 KiB) Downloaded 252 times
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
g0llem
Posts: 1
Joined: Saturday 16 January 2016 20:08
Target OS: Windows
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by g0llem »

Icons for a "rolluik"
In my case On is "open" and Off is "closed". Adjust the name of the icons when you need to reverse the on/off situation.
Rolluik.zip
Rolluik open - closed
(1.85 KiB) Downloaded 456 times
Rolluik.zip
Rolluik open - closed
(1.85 KiB) Downloaded 456 times
Attachments
Rolluik48_On.png
Rolluik48_On.png (540 Bytes) Viewed 8276 times
Rolluik48_Off.png
Rolluik48_Off.png (496 Bytes) Viewed 8276 times
User avatar
Moppersmurf
Posts: 27
Joined: Tuesday 29 September 2015 17:39
Target OS: NAS (Synology & others)
Domoticz version: Lat.Beta
Location: Nederland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Moppersmurf »

Since my son never listens when he needs to go to sleep, I made a icon set for the Wifi router.
Tomorrow i'll let it switch off and see how he likes that :twisted:
Attachments
Wifi router.zip
(3.36 KiB) Downloaded 410 times
Wifi router48_Off.png
Wifi router48_Off.png (758 Bytes) Viewed 7459 times
Wifi router48_On.png
Wifi router48_On.png (1.01 KiB) Viewed 7459 times
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Derik »

almost update the icons Drive..
There are some new:)


When i have tie there are some more in my mail..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Fainted
Posts: 21
Joined: Thursday 08 September 2016 13:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Fainted »

Made a washing machine icon :)
Attachments
tvattmaskin648_On.png
tvattmaskin648_On.png (4.59 KiB) Viewed 7408 times
tvatt.zip
(14.09 KiB) Downloaded 308 times
Fainted
Posts: 21
Joined: Thursday 08 September 2016 13:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Fainted »

New Camera icon :)
Attachments
camera448_On.png
camera448_On.png (3.47 KiB) Viewed 7375 times
camera3.zip
(6.71 KiB) Downloaded 399 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest