#2215 Custom Icons uploader Implemented

User avatar
gizmocuz
Posts: 8491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by gizmocuz » Sunday 23 August 2015 9:51

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: 8491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by gizmocuz » Sunday 23 August 2015 10:54

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: 53
Joined: Sunday 01 March 2015 11:25
Target OS: Raspberry Pi
Domoticz version: Beta
Location: France
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by sylvainsjc » Sunday 23 August 2015 12:12

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 3203 times
Raspberry PI2 + Raspian + Domoticz Beta + Rfxcom433e + heater control with Chacon 54755 + sensors TS34C + OWL160
Complete Backup script using "dd" to remote hard disk

User avatar
gizmocuz
Posts: 8491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by gizmocuz » Sunday 23 August 2015 14:46

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: 14
Joined: Wednesday 29 July 2015 14:48
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Ricky74 » Thursday 08 October 2015 21:23

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: 51
Joined: Sunday 02 November 2014 0:31
Target OS: Raspberry Pi
Domoticz version: beta
Location: Netherlands
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by krazny » Thursday 05 November 2015 11:44

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: 32
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 » Saturday 12 December 2015 14:38

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 2856 times
plex.zip
(5.46 KiB) Downloaded 103 times
Last edited by Moppersmurf on Thursday 17 December 2015 22:47, edited 1 time in total.

jarwis
Posts: 13
Joined: Wednesday 11 November 2015 14:11
Target OS: Raspberry Pi
Domoticz version: 2.3530
Location: Finland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by jarwis » Monday 14 December 2015 14:10

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 90 times

User avatar
Moppersmurf
Posts: 32
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 » Thursday 17 December 2015 22:43

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 2857 times
Uplighter48_On.png
Uplighter48_On.png (2.11 KiB) Viewed 2857 times
Uplighter.zip
(5.22 KiB) Downloaded 113 times

hansrune
Posts: 71
Joined: Monday 07 October 2013 10:51
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by hansrune » Thursday 24 December 2015 16:36

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: 32
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 » Saturday 26 December 2015 0:59

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

Check this out how to copy your icons.

User avatar
Moppersmurf
Posts: 32
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 » Friday 01 January 2016 17:15

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 2590 times
Blacklight48_Off.png
Blacklight48_Off.png (756 Bytes) Viewed 2590 times
Blacklight.zip
(6.26 KiB) Downloaded 48 times

User avatar
Moppersmurf
Posts: 32
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 » Friday 01 January 2016 21:05

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

Will mail them as well.
Attachments
Paxkast.zip
(5.02 KiB) Downloaded 108 times
Paxkast48_On.png
Paxkast48_On.png (2.11 KiB) Viewed 2575 times
Paxkast48_Off.png
Paxkast48_Off.png (1.85 KiB) Viewed 2575 times

User avatar
nayr
Posts: 430
Joined: Tuesday 11 November 2014 19:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by nayr » Wednesday 06 January 2016 7:53

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: 430
Joined: Tuesday 11 November 2014 19:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by nayr » Wednesday 13 January 2016 5:51

Icons for the AndroidTV (Nexus Player/Amazon Fire/Nvidia Shield/etc)
Attachments
android-tv48_On.png
android-tv48_On.png (2.54 KiB) Viewed 2456 times
android-tv.zip
android tv icons
(5.13 KiB) Downloaded 68 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 21:08
Target OS: Windows
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by g0llem » Saturday 16 January 2016 21:15

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 173 times
Rolluik.zip
Rolluik open - closed
(1.85 KiB) Downloaded 173 times
Attachments
Rolluik48_On.png
Rolluik48_On.png (540 Bytes) Viewed 2413 times
Rolluik48_Off.png
Rolluik48_Off.png (496 Bytes) Viewed 2413 times

User avatar
Moppersmurf
Posts: 32
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 » Monday 24 October 2016 22:26

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 84 times
Wifi router48_Off.png
Wifi router48_Off.png (758 Bytes) Viewed 1596 times
Wifi router48_On.png
Wifi router48_On.png (1.01 KiB) Viewed 1596 times

User avatar
Derik
Posts: 1833
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Derik » Tuesday 25 October 2016 20:28

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: 20
Joined: Thursday 08 September 2016 13:47
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Fainted » Thursday 27 October 2016 15:23

Made a washing machine icon :)
Attachments
tvattmaskin648_On.png
tvattmaskin648_On.png (4.59 KiB) Viewed 1545 times
tvatt.zip
(14.09 KiB) Downloaded 66 times

Fainted
Posts: 20
Joined: Thursday 08 September 2016 13:47
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: #2215 Custom Icons uploader Implemented

Post by Fainted » Saturday 29 October 2016 12:01

New Camera icon :)
Attachments
camera448_On.png
camera448_On.png (3.47 KiB) Viewed 1512 times
camera3.zip
(6.71 KiB) Downloaded 91 times

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests