# HG changeset patch # User drewp # Date 1431592395 25200 # Node ID b279ca8d28948ddc1e4666c07243906d2b813d1e # Parent 7e99f05c21cd5030cd2824ca0b851db5738f8eef new reasoning config for storage motion. Ignore-this: a7c024dd4e9226ac7a27c3c3ce98f165 darcs-hash:20150514083315-312f9-f8a020fb757f129bd4207b6e20cdafde472c9839 diff -r 7e99f05c21cd -r b279ca8d2894 service/reasoning/input/startup.n3 --- a/service/reasoning/input/startup.n3 Thu May 14 01:32:19 2015 -0700 +++ b/service/reasoning/input/startup.n3 Thu May 14 01:33:15 2015 -0700 @@ -1,20 +1,21 @@ @prefix : . @prefix rdfs: . - is :source of :reasoning; rdfs:label "arduino watchpins" . +# is :source of :reasoning; rdfs:label "arduino watchpins" . is :source of :reasoning; rdfs:label "wifi usage" . is :source of :reasoning; rdfs:label "env" . - is :source of :reasoning; rdfs:label "garageArduino for front motion" . - is :source of :reasoning; rdfs:label "dash monitor" . - is :source of :reasoning; rdfs:label "bang monitor" . - is :source of :reasoning; rdfs:label "star monitor" . - is :source of :reasoning; rdfs:label "slash monitor" . +# is :source of :reasoning; rdfs:label "garageArduino for front motion" . +# is :source of :reasoning; rdfs:label "dash monitor" . +# is :source of :reasoning; rdfs:label "bang monitor" . +# is :source of :reasoning; rdfs:label "star monitor" . +# is :source of :reasoning; rdfs:label "slash monitor" . is :source of :reasoning; rdfs:label "trails" . is :source of :reasoning; rdfs:label "dash x idle" . - is :source of :reasoning; rdfs:label "star x idle" . - is :source of :reasoning; rdfs:label "slash x idle" . - is :source of :reasoning; rdfs:label "frontDoorArduino" . - is :source of :reasoning; rdfs:label "portupdate" . +# is :source of :reasoning; rdfs:label "star x idle" . +# is :source of :reasoning; rdfs:label "slash x idle" . +# is :source of :reasoning; rdfs:label "frontDoorArduino" . +# is :source of :reasoning; rdfs:label "portupdate" . + is :source of :reasoning; rdfs:label "storage arduino" . # also, http://bang:9072/bang/processStatus @@ -22,5 +23,6 @@ [ a :OneShotPost; :subject ; :predicate :postAction ] . [ a :OneShotPost; :subject ; :predicate :postAction ] . [ a :OneShotPost; :subject ; :predicate :postAction ] . +[ a :OneShotPost; :subject ; :predicate :postAction ] . [ a :OneShotPost; :subject ; :predicate :postAction ] . diff -r 7e99f05c21cd -r b279ca8d2894 service/reasoning/rules.n3 --- a/service/reasoning/rules.n3 Thu May 14 01:32:19 2015 -0700 +++ b/service/reasoning/rules.n3 Thu May 14 01:33:15 2015 -0700 @@ -64,6 +64,21 @@ :postAction . } . +{ } => +{ + :postAction . +} . + +@prefix bed: . +{ bed:button1 :change :down . } => { + :postAction . + :postAction . +} . +{ bed:button2 :change :down . } => { :postAction . } . +{ bed:button3 :change :down . } => { :postAction . } . +{ bed:button4 :change :down . } => { :postAction . } . +{ bed:button5 :change :down . } => { :postAction . } . + # sound wasn't responding; waiting for other button fixes # { :change :down . } => @@ -102,3 +117,13 @@ { shuttle:button12 :state :press } => { mpd: :playState :pause } . { shuttle:dial :change :clockwise } => { mpd: :audioState :volumeStepUp } . { shuttle:dial :change :counterclockwise } => { mpd: :audioState :volumeStepDown } . + +{ :seesRecently . } => { + :storageCeilingLedCross :brightness "0" . + :storageCeilingLedLong :brightness "0" . +} . + +{ :seesRecently . } => { + :storageCeilingLedCross :brightness "1" . + :storageCeilingLedLong :brightness "1" . +} .