Hi All,
Is there a way to adjust the fontsize and color of a textsensor in LUA
Jan
Fontsize of textsensor
Moderator: leecollings
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Fontsize of textsensor
Your mind is like a parachute,
It only works when it is opened!
RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
It only works when it is opened!
RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: Fontsize of textsensor
anybody any idea?
Your mind is like a parachute,
It only works when it is opened!
RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
It only works when it is opened!
RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
-
- Posts: 272
- Joined: Sunday 11 May 2014 11:09
- Target OS: Windows
- Domoticz version: 2023.1+
- Location: NL
- Contact:
Re: Fontsize of textsensor
Since the dashbord displays HTML with jquiry you should be able to use HTML code (i hope
)
If that works you could be able to use colors also..
Never tried it ...

If that works you could be able to use colors also..
Never tried it ...
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: Fontsize of textsensor
Tnx for your reply,
but.....
any idea how to do that, because I have no clue...
Jan
but.....
any idea how to do that, because I have no clue...
Jan
Your mind is like a parachute,
It only works when it is opened!
RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
It only works when it is opened!
RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
Re: Fontsize of textsensor
Try this
I have even tried showing the album art of what's playing on the Sonos, but that didn't always work, sometimes the switch disappeared.
But after svalue= you can place any kind of HTML code.
Code: Select all
http://192.168.1.170:8080/json.htm?type=command¶m=udevice&idx=62&nvalue=0&svalue=<font%20size=”6”>TEXT</font>
But after svalue= you can place any kind of HTML code.
Not using Domoticz anymore
-
- Posts: 272
- Joined: Sunday 11 May 2014 11:09
- Target OS: Windows
- Domoticz version: 2023.1+
- Location: NL
- Contact:
Re: Fontsize of textsensor
You can even add a second text line with adding a <DIV>
and also hyperlinks to external (for this be aware of crossdomain errors)
example from used in a rainscript:
Where tmp2 is my returned function variable , displayed on top in color depending on the value (amount of rain)
and tmp3 is my second returned function variable displayed below in black. (display the times -can be multiple- the rain is expected)
and also hyperlinks to external (for this be aware of crossdomain errors)
example from used in a rainscript:
Code: Select all
test="<A href='http://weerslag.nl/bliksem#' target='_blanc'><font size='2' color='"..color.."'>"..tmp2.."</font></a><div><font size='2' color='black'>"..tmp3.."</font></div>"
if otherdevices['Regen Verwachting'] ~= test then commandArray['UpdateDevice'] = '636'..'|0|'..test
and tmp3 is my second returned function variable displayed below in black. (display the times -can be multiple- the rain is expected)
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
Who is online
Users browsing this forum: No registered users and 1 guest