Virtuino Forum

Full Version: custom format for value display
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Friends,
I converted the HMI of my coffee roaster from Virtuino V6 to Virtuino IoT. There is a display showing a time code. The minutes and the seconds are transfered in separated variables. I´m searching for a way to add a leading "0" to the seconds when the value is one digit only (e.g. 07 instead of 7). In V6 it was possible to use a custom format in the value display. In VIoT I can´t find an option for that purpose. Did I miss something?

Hi Thomas,

it is complicated. I think I have to add a new option to the value display for this case 

Check this video:
Hello Ilias,
If I understand correctly I can change my software to send the time in seconds instead of seconds and minutes. Then I use the date converter to convert the format from ss to mmConfuseds. The value display can show this format. I do not have to take care about leading zeros. I think this is a very good solution for my problem. I will implement it latest next weekend.
Hello Ilias,
I found a solution even without changing my Arduino code. I'm using your math script to calculate the seconds using 60*minutes + seconds. In a second step I use the date converter to convert ss to mmConfuseds. This can be displayer by the value displayer perfectly.