alignment of text in a dummy text device
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:
alignment of text in a dummy text device
Hi all,
is there a way to change the alignment in a dummy text device in LUA?
I would also like to change the color of the text is that possible?
Thank you for any help
Juan
is there a way to change the alignment in a dummy text device in LUA?
I would also like to change the color of the text is that possible?
Thank you for any help
Juan
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: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: alignment of text in a dummy text device
I believe the sensor does accept html format. try that.
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: alignment of text in a dummy text device
and how do you do that in LUA?
sorry a newbie in programming

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: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: alignment of text in a dummy text device
Try this in your " <font color="red">This is some text!</font>"
not sure thought... sorry..
not sure thought... sorry..
- jvdz
- Posts: 2335
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: alignment of text in a dummy text device
That indeed works fine. 

New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: alignment of text in a dummy text device
So for instance
meldtekst= <font color="red">Dit is een melding</font>
should work?
this gives me a fault unexpeted symbol near <
meldtekst= <font color="red">Dit is een melding</font>
should work?
this gives me a fault unexpeted symbol near <
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
- jvdz
- Posts: 2335
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: alignment of text in a dummy text device
That should be: meldtekst= '<font color="red">Dit is een melding</font>'
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: alignment of text in a dummy text device
No, not working.
Jos I use this in the afvalwijzer.
I now get the <fontcolor> in the text device
Jos I use this in the afvalwijzer.
I now get the <fontcolor> in the text device
Code: Select all
txt ='<font color="red">txt..web_afvaldate .. " = " .. web_afvaltype .. "\r\n"</font>'
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
- jvdz
- Posts: 2335
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: alignment of text in a dummy text device
Yes, that won't work. 
Try this version:
Jos

Try this version:
Code: Select all
txt = txt..'<font color="red">'..web_afvaldate .. " = " .. web_afvaltype .. "</font>'\r\n"
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: alignment of text in a dummy text device
nope, now I get
Code: Select all
<font color="red">vr 18 jan = Plastic, Metaal en Drankkartons</font>' <font color="red">vr 18 jan = GFT</font>'
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
- jvdz
- Posts: 2335
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: alignment of text in a dummy text device
I've just actually tried it with a text sensor and worked fine for me.
ps: I do see there is an single quote too many at the end, so the line should be:
Jos
How does it look for you?ps: I do see there is an single quote too many at the end, so the line should be:
Code: Select all
txt = txt..'<font color="red">'..web_afvaldate .. " = " .. web_afvaltype .. "</font>\r\n"
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: alignment of text in a dummy text device
Hoi Jos,
I now get in the TAB others the right format. but I also placed the textbox on my floorplan.
here I get So the alignment is crap and the color is not coming over.
I now get in the TAB others the right format. but I also placed the textbox on my floorplan.
here I get So the alignment is crap and the color is not coming over.
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: alignment of text in a dummy text device
no Idea why the textbox on the floorplan is different then in devices
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
- jvdz
- Posts: 2335
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: alignment of text in a dummy text device
I don't know either, I am not using àny floor plans, but guess the text isn't treated as regular HTML in the floorplan, unlike the Text sensor text display.
Maybe somebody knows.
JOs
Maybe somebody knows.
JOs
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 500
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: alignment of text in a dummy text device
Anybody who can help me further with this.
any help is very appreciated.
any help is very appreciated.
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: alignment of text in a dummy text device
Nobody?



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
Who is online
Users browsing this forum: No registered users and 1 guest