Mercurial > code > home > repos > homeauto
changeset 986:b279ca8d2894
new reasoning config for storage motion.
Ignore-this: a7c024dd4e9226ac7a27c3c3ce98f165
darcs-hash:20150514083315-312f9-f8a020fb757f129bd4207b6e20cdafde472c9839
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 14 May 2015 01:33:15 -0700 |
parents | 7e99f05c21cd |
children | cc79d092e136 |
files | service/reasoning/input/startup.n3 service/reasoning/rules.n3 |
diffstat | 2 files changed, 37 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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 : <http://projects.bigasterisk.com/room/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -<http://bang:9069/graph> is :source of :reasoning; rdfs:label "arduino watchpins" . +#<http://bang:9069/graph> is :source of :reasoning; rdfs:label "arduino watchpins" . <http://bang:9070/graph> is :source of :reasoning; rdfs:label "wifi usage" . <http://bang:9075/graph> is :source of :reasoning; rdfs:label "env" . -<http://slash:9050/graph> is :source of :reasoning; rdfs:label "garageArduino for front motion" . -<http://dash:9095/graph> is :source of :reasoning; rdfs:label "dash monitor" . -<http://bang:9095/graph> is :source of :reasoning; rdfs:label "bang monitor" . -<http://star:9095/graph> is :source of :reasoning; rdfs:label "star monitor" . -<http://slash:9095/graph> is :source of :reasoning; rdfs:label "slash monitor" . +#<http://slash:9050/graph> is :source of :reasoning; rdfs:label "garageArduino for front motion" . +#<http://dash:9095/graph> is :source of :reasoning; rdfs:label "dash monitor" . +#<http://bang:9095/graph> is :source of :reasoning; rdfs:label "bang monitor" . +#<http://star:9095/graph> is :source of :reasoning; rdfs:label "star monitor" . +#<http://slash:9095/graph> is :source of :reasoning; rdfs:label "slash monitor" . <http://bang:9099/graph> is :source of :reasoning; rdfs:label "trails" . <http://dash:9107/graph> is :source of :reasoning; rdfs:label "dash x idle" . -<http://star:9107/graph> is :source of :reasoning; rdfs:label "star x idle" . -<http://slash:9107/graph> is :source of :reasoning; rdfs:label "slash x idle" . -<http://slash:9080/graph> is :source of :reasoning; rdfs:label "frontDoorArduino" . -<http://bang:9055/graph> is :source of :reasoning; rdfs:label "portupdate" . +#<http://star:9107/graph> is :source of :reasoning; rdfs:label "star x idle" . +#<http://slash:9107/graph> is :source of :reasoning; rdfs:label "slash x idle" . +#<http://slash:9080/graph> is :source of :reasoning; rdfs:label "frontDoorArduino" . +#<http://bang:9055/graph> is :source of :reasoning; rdfs:label "portupdate" . +<http://bang:9059/graph> is :source of :reasoning; rdfs:label "storage arduino" . # also, http://bang:9072/bang/processStatus @@ -22,5 +23,6 @@ [ a :OneShotPost; :subject <http://bigasterisk.com/host/star/slideshow>; :predicate :postAction ] . [ a :OneShotPost; :subject <http://bigasterisk.com/host/star/sound>; :predicate :postAction ] . [ a :OneShotPost; :subject <http://bigasterisk.com/host/slash/sound>; :predicate :postAction ] . +[ a :OneShotPost; :subject <http://bigasterisk.com/host/plus/sound>; :predicate :postAction ] . [ a :OneShotPost; :subject <http://bigasterisk.com/host/slash/mpd>; :predicate :postAction ] .
--- 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 @@ <http://bigasterisk.com/host/star/slideshow> :postAction <http://star:9049/effects/beep1> . } . +{ <http://projects.bigasterisk.com/room/barcodeScan> <http://projects.bigasterisk.com/room/read> <http://projects.bigasterisk.com/room/barcode/UPC-A/4984343881945> } => +{ + <http://bigasterisk.com/host/star/slideshow> :postAction <http://star:9049/effects/troyandabed> . +} . + +@prefix bed: <http://projects.bigasterisk.com/room/ariBed/> . +{ bed:button1 :change :down . } => { + <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9055/starTrekLight/toggle> . + <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/highlight> . +} . +{ bed:button2 :change :down . } => { <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/troyandabed> . } . +{ bed:button3 :change :down . } => { <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/beep1> . } . +{ bed:button4 :change :down . } => { <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/beep1> . } . +{ bed:button5 :change :down . } => { <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/jazztrumpet> . } . + # sound wasn't responding; waiting for other button fixes # { <http://projects.bigasterisk.com/room/star/button/yel> :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 } . + +{ <http://bigasterisk.com/homeauto/sensor/motion0> :seesRecently <http://projects.bigasterisk.com/room/noMotion> . } => { + :storageCeilingLedCross :brightness "0" . + :storageCeilingLedLong :brightness "0" . +} . + +{ <http://bigasterisk.com/homeauto/sensor/motion0> :seesRecently <http://projects.bigasterisk.com/room/motion> . } => { + :storageCeilingLedCross :brightness "1" . + :storageCeilingLedLong :brightness "1" . +} .