more G-Labs products

Author Topic: How To Add Device Icons To HG?  (Read 1391 times)

February 17, 2015, 03:06:44 PM
Read 1391 times

gcoupe

  • **
  • Information
  • Jr. Member
  • Posts: 30
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.

February 17, 2015, 04:04:49 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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.

February 18, 2015, 11:14:59 PM
Reply #2

CptJack

  • **
  • Information
  • Jr. Member
  • Posts: 30
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.

February 19, 2015, 04:23:51 AM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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.

February 19, 2015, 05:51:45 AM
Reply #4

CptJack

  • **
  • Information
  • Jr. Member
  • Posts: 30
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.

February 19, 2015, 04:22:19 PM
Reply #5

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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.