If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
First you need to figure out what exactly this number means. Different devices can use different counters - time in seconds from the start of operation, epoch time / unix time, or something else. Then, with the use of preprocessing and JS, you can do any value conversion.
In the pre-processing tab select add and then select Javascript from the drop down then you can write a function.
var result = "";
var date_val = value;
var factor = 2;
var str_len = date_val.length;
for( i = 0; i < str_len; i++ ) {
if( i > 0 && i % factor == 0 ) {
result+=":";
result+=date_val[i];
} else result+=date_val[i];
}
return result;
//if device always return 6 digits (with a leading zero) then you can do this way
return value.substring(0,2)+':'+ value.substring(2,4)+':'+ value.substring(4,6);
Comment