Changing icons in webinterface

Hi,

Quick question, is it possible to change the icons in the webinterface for example I have a variable container that reads out a value from a thermostat. Now I want to give that container a temp icon instead of the box icon.

Thanks in advance

Yes this is possible, but only for a devicetype and not each device. This means if you change the icon of one of the devices from variable containers, all variable containers will look like this.

If you are on UI5:
The icon is defined in the static json. Do edit that goto “Apps => Develop Apps => Luup Files”. Then download the file D_VContainer.json. When you open this file with a text editor the second line looks like this:

"flashicon": "http://img842.imageshack.us/img842/5871/vcontainer.png",

If you want to use the standard temperature icon of UI5 change the line to:

"flashicon": "icons/Temperature_Sensor.png",

Once you changed the line re-upload your file in “Apps => Develop Apps => Luup Files” and restart the luup engine.

Then empty your browser-cache and reload the webinterface.

@chixxi: thanks that worked great. I’m going to play with the Luup code to see what else I can modify :wink: (After a backup off course)