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
Modify on the fly icons
Moderators: leecollings, remb0
- 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
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
thanks,
but I am looking more with an http "json" request ? (of course if is possible)
but I am looking more with an http "json" request ? (of course if is possible)
Who is online
Users browsing this forum: No registered users and 1 guest