Page 1 of 1

Modify on the fly icons

Posted: Monday 13 August 2018 15:31
by mrelfire
I have created a script to retrieve polution data for PML10, PM2.5 , ... and I update some virtual data.

I would like to change the icons (Green ,orange , red, black, ...) throught a script regarding the value of the data.

any ideas where to look for please ?

thanks in advance for your help

Re: Modify on the fly icons

Posted: Monday 13 August 2018 18:30
by felix63
The icons used for showing temperature are dynamic as well so I would look there. Specifically in function GetTemp48Item(temp) that can be found in domoticz/www/js/domoticz.js which seems to be the place where a dynamically determined icon is selected based on a value.

Re: Modify on the fly icons

Posted: Tuesday 14 August 2018 7:28
by mrelfire
thanks,

but I am looking more with an http "json" request ? (of course if is possible)