Page 1 of 1

update textdevice lua

Posted: Wednesday 19 July 2023 18:08
by tiga
i want to update a text device
i have this bit working

Code: Select all

commandArray['UpdateDevice']='7734|0| Watt '..-slevering
the result is: Watt -537
but i want it to say: -537 Watt

so i want to switch the text and the number.
i can not get it in this order.is this possible?

Re: update textdevice lua

Posted: Wednesday 19 July 2023 18:11
by jvdz
Something like this ;)

Code: Select all

='7734|0|'..-slevering.. 'Watt'

Re: update textdevice lua

Posted: Wednesday 19 July 2023 18:20
by tiga
thanks! sometimes you get lost LOL

this fixed my problem :D