User Tools

Site Tools


giraffplus:context-recognition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
giraffplus:context-recognition [2013-11-20 14:49] – created jonasgiraffplus:context-recognition [2013-11-20 14:55] (current) jonas
Line 1: Line 1:
 +====== Context Recognition API ======
 +...
 +
 ====== XML Format ====== ====== XML Format ======
  
-''<?xml version='1.0' encoding='UTF-8' ?>'' +===== Sample rule for test site SE2 ===== 
-''<rules xsi:noNamespaceSchemaLocation='rule_schema.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>''+<code> 
 +<?xml version='1.0' encoding='UTF-8' ?> 
 +<rules xsi:noNamespaceSchemaLocation='rule_schema.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  
-''<preproc name='TunstallTrueFalse' in='Bed - Bedroom @ testsite_se_2' out='_in_bed' args=''/>'' +<preproc name='TunstallTrueFalse' in='Bed - Bedroom @ testsite_se_2' out='_in_bed' args=''/> 
-''<preproc name='TunstallPIRSimple' in='PIR - TV Room @ testsite_se_2' out='_motion_bed' args=''/>'' +<preproc name='TunstallPIRSimple' in='PIR - TV Room @ testsite_se_2' out='_motion_bed' args=''/> 
-''<preproc name='TunstallTrueFalse' in='TV - TV Room @ testsite_se_2' out='_tv_on' args=''/>'' +<preproc name='TunstallTrueFalse' in='TV - TV Room @ testsite_se_2' out='_tv_on' args=''/> 
-''<preproc name='TunstallPIRSimple' in='PIR - TV Room @ testsite_se_2' out='_in_tv_room' args=''/>''+<preproc name='TunstallPIRSimple' in='PIR - TV Room @ testsite_se_2' out='_in_tv_room' args=''/>
  
-''<rule out="_watching_tv">'' +<rule out="_watching_tv"> 
-'' <constraint from="_watching_tv" type="during" args="" to="_tv_on" />'' + <constraint from="_watching_tv" type="during" args="" to="_tv_on" /> 
-'' <constraint from="_watching_tv" type="during" args="" to="_in_tv_room" />'' + <constraint from="_watching_tv" type="during" args="" to="_in_tv_room" /> 
-''</rule>''+</rule>
  
 +<extractor name='max' in='_in_bed' out='in_bed' />
 +<extractor name='max' in='_motion_bed' out='motion_bed' />
 +<extractor name='max' in='_tv_on' out='tv_on' />
 +<extractor name='max' in='_watching_tv' out='watching_tv' />
  
 +</rules>
 +</code>
  
-''<extractor name='max' in='_in_bed' out='in_bed' />'' 
-''<extractor name='max' in='_motion_bed' out='motion_bed' />'' 
-''<extractor name='max' in='_tv_on' out='tv_on' />'' 
-''<extractor name='max' in='_watching_tv' out='watching_tv' />'' 
-''</rules>'' 
giraffplus/context-recognition.1384958970.txt.gz · Last modified: 2013-11-20 14:49 by jonas

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki