Fontsize of textsensor

Moderator: leecollings

Post Reply
JuanUil
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

Post by JuanUil »

Hi All,

Is there a way to adjust the fontsize and color of a textsensor in LUA

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
JuanUil
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

Post by JuanUil »

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
zicht
Posts: 272
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Re: Fontsize of textsensor

Post by zicht »

Since the dashbord displays HTML with jquiry you should be able to use HTML code (i hope :P)
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)
JuanUil
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

Post by JuanUil »

Tnx for your reply,

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
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: Fontsize of textsensor

Post by G3rard »

Try this

Code: Select all

http://192.168.1.170:8080/json.htm?type=command&param=udevice&idx=62&nvalue=0&svalue=<font%20size=”6”>TEXT</font>
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.
Not using Domoticz anymore
zicht
Posts: 272
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Re: Fontsize of textsensor

Post by zicht »

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:

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
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)
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)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest