HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: gcoupe on February 17, 2015, 03:06:44 PM

Title: How To Add Device Icons To HG?
Post by: gcoupe on February 17, 2015, 03:06:44 PM
I see that it is possible to choose different device icons for a module. There are currently 47 generic icons to choose from at:
C:\Program Files\HomeGenie\html\pages\control\widgets\homegenie\generic\images\icons

I have a couple of switches controlling water pumps, and I'd like to add a new icon to the list. I've made a new icon (96x96, PNG format) and placed it in that directory. However, even after restarting HG, it doesn't appear in the list. What else do I need to do? Is it in fact possible to extend the list of icons?

Thanks.
Title: Re: How To Add Device Icons To HG?
Post by: bkenobi on February 17, 2015, 04:04:49 PM
Gene said that his intent was to let users create their own icons for modules, so I assume it is possible.  I haven't heard of anyone implementing their own icon, so perhaps the feature has not been tested.
Title: Re: How To Add Device Icons To HG?
Post by: CptJack on February 18, 2015, 11:14:59 PM
I'm curious - what list? I've never seen a list of icons to choose from. There's the list of device types, but that's the only list I know of. Not that there aren't lots of things I haven't found yet.
Title: Re: How To Add Device Icons To HG?
Post by: bkenobi on February 19, 2015, 04:23:51 AM
If you go to configure->groups and modules->any group->any module

Select the icon next to the name and it will display a list of a couple dozen icons to choose from.
Title: Re: How To Add Device Icons To HG?
Post by: CptJack on February 19, 2015, 05:51:45 AM
How about that! It looks like it's hardcoded in HomeGenie/html/index.html. I don't know if it's as simple as just adding it to that list or not, though.
Title: Re: How To Add Device Icons To HG?
Post by: bkenobi on February 19, 2015, 04:22:19 PM
Is it possible you could modify the modules.xml file to change the icon?  I haven't looked for the icon name in that location, so it may or may not be there.  If it's not there, I don't know where else it would be stored.