out = ''
if ( getValue('brillemaaler.mangler.odxt') == '' )
then
out = out .. 'Egen brille, o.dxt: ' .. getValue('brillemaaler.sf.odxt') .. ' sf'
if ( getValue('brillemaaler.cyl.odxt') ~= '' )
then
out = out .. ', ' .. getValue('brillemaaler.cyl.odxt') .. ' cyl'
end
if ( getValue('brillemaaler.grader.odxt') ~= '' )
then
out = out .. ', ' .. getValue('brillemaaler.grader.odxt') .. ' grader\n'
else
out = out .. '\n'
end
end
if ( getValue('brillemaaler.mangler.osin') == '' )
then
out = out .. 'Egen brille, o.sin: ' .. getValue('brillemaaler.sf.osin') .. ' sf'
if ( getValue('brillemaaler.cyl.osin') ~= '' )
then
out = out .. ', ' .. getValue('brillemaaler.cyl.osin') .. ' cyl'
end
if ( getValue('brillemaaler.grader.osin') ~= '' )
then
out = out .. ', ' .. getValue('brillemaaler.grader.osin') .. ' grader\n'
else
out = out .. '\n'
end
end
return out
value = 0
timestamp = 0
source = ''
if( missing_eye_odxt )
then
if( missing_eye_odxt.value and missing_eye_odxt.value == '' )
then
value = ''
timestamp = missing_eye_odxt.timestamp
source = missing_eye_odxt.source
else
value = 'mangler'
timestamp = missing_eye_odxt.timestamp
source = missing_eye_odxt.source
end
end
return value, timestamp, source
value = 0
timestamp = 0
source = ''
if( missing_eye_osin )
then
if( missing_eye_osin.value and missing_eye_osin.value == '' )
then
value = ''
timestamp = missing_eye_osin.timestamp
source = missing_eye_osin.source
else
value = 'mangler'
timestamp = missing_eye_osin.timestamp
source = missing_eye_osin.source
end
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(lensmeter and lensmeter.osin and lensmeter.osin.sph and lensmeter.osin.sph.value and lensmeter.osin.sph.timestamp)
then
value = lensmeter.osin.sph.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = lensmeter.osin.sph.timestamp
source = lensmeter.osin.sph.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(lensmeter and lensmeter.osin and lensmeter.osin.cyl and lensmeter.osin.cyl.value and lensmeter.osin.cyl.timestamp)
then
value = lensmeter.osin.cyl.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = lensmeter.osin.cyl.timestamp
source = lensmeter.osin.cyl.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(lensmeter and lensmeter.osin and lensmeter.osin.axis and lensmeter.osin.axis.value and lensmeter.osin.axis.timestamp)
then
value = lensmeter.osin.axis.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = lensmeter.osin.axis.timestamp
source = lensmeter.osin.axis.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(lensmeter and lensmeter.odxt and lensmeter.odxt.sph and lensmeter.odxt.sph.value and lensmeter.odxt.sph.timestamp)
then
value = lensmeter.odxt.sph.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = lensmeter.odxt.sph.timestamp
source = lensmeter.odxt.sph.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(lensmeter and lensmeter.odxt and lensmeter.odxt.cyl and lensmeter.odxt.cyl.value and lensmeter.odxt.cyl.timestamp)
then
value = lensmeter.odxt.cyl.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = lensmeter.odxt.cyl.timestamp
source = lensmeter.odxt.cyl.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(lensmeter and lensmeter.odxt and lensmeter.odxt.axis and lensmeter.odxt.axis.value and lensmeter.odxt.axis.timestamp)
then
value = lensmeter.odxt.axis.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = lensmeter.odxt.axis.timestamp
source = lensmeter.odxt.axis.source
end
return value, timestamp, source