out = 'Aktuelle:\n' if ( getValue('current.symptoms.right') == '' and getValue('current.symptoms.left') == '' ) then out = out .. 'ingen\n' end if ( getValue('current.symptoms.right') ~= '' ) then out = out .. 'På højre øje har der været\n' out = out .. getValue('current.symptoms.right') .. '\n' end if ( getValue('current.symptoms.left') ~= '' ) then out = out .. 'På venstre øje har der været\n' out = out .. getValue('current.symptoms.left') .. '\n' end if ( getValue('current.symptoms.right') ~= '' or getValue('current.symptoms.left') ~= '' ) then out = out .. 'Symptomerne er opstået ' .. getValue('current.when') .. ' og efterfølgende ' .. getValue('current.then') end return out -- Set date to now if no other data available within last 24 hours. return os.time(), os.time() - 24*60*60, 'system'