Modify on the fly icons

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
mrelfire
Posts: 40
Joined: Wednesday 03 August 2016 15:12
Target OS: Windows
Domoticz version:
Contact:

Modify on the fly icons

Post 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
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Modify on the fly icons

Post 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.
mrelfire
Posts: 40
Joined: Wednesday 03 August 2016 15:12
Target OS: Windows
Domoticz version:
Contact:

Re: Modify on the fly icons

Post by mrelfire »

thanks,

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

Who is online

Users browsing this forum: Google [Bot] and 1 guest