From b82f94b9e8e939c4cc17a0062a483aeb8a528790 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 28 Apr 2010 13:19:54 +0000 Subject: Initial releases --- server/xml/macros/orbita-1.0.xml | 376 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 376 insertions(+) create mode 100644 server/xml/macros/orbita-1.0.xml (limited to 'server/xml/macros/orbita-1.0.xml') diff --git a/server/xml/macros/orbita-1.0.xml b/server/xml/macros/orbita-1.0.xml new file mode 100644 index 0000000..a052696 --- /dev/null +++ b/server/xml/macros/orbita-1.0.xml @@ -0,0 +1,376 @@ + + + + out = '' + + if ( getValue('orbita.odxt.mangler') == '' ) + then + out = out .. 'Orbita o.dxt:\n' + out = out .. 'Den retrobulbære resistance er ' .. getValue('orbita.odxt.resistance') .. '.\n' + out = out .. 'Hertelmål: ' .. getValue('orbita.odxt.hertelmaalx') .. '-' .. getValue('orbita.odxt.hertelmaaly') .. '/' .. getValue('orbita.odxt.hertelmaalz') .. '\n' + end + + if ( getValue('orbita.osin.mangler') == '' ) + then + if ( getValue('orbita.odxt.mangler') == '' ) + then + out = out .. '\n' + end + out = out .. 'Orbita o.sin:\n' + out = out .. 'Den retrobulbære resistance er ' .. getValue('orbita.osin.resistance') .. '.\n' + out = out .. 'Hertelmål: ' .. getValue('orbita.osin.hertelmaalx') .. '-' .. getValue('orbita.osin.hertelmaaly') .. '/' .. getValue('orbita.osin.hertelmaalz') .. '\n' + 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 + + + + + + + + + + + + + + + +