# HG changeset patch # User drewp # Date 1454481744 28800 # Node ID cfc9c9f48824f816113b6c43e21c7db0406d77a4 # Parent ae0461a50d038fc74d5d06b9ad79cd59331bc59c device and service configs Ignore-this: 8477635c654c66b171e85335212d3cd darcs-hash:9b5e30cfef1fb6f0a6bb818c200caccab61e0099 diff -r ae0461a50d03 -r cfc9c9f48824 service/piNode/config/main.n3 --- a/service/piNode/config/main.n3 Tue Feb 02 22:41:42 2016 -0800 +++ b/service/piNode/config/main.n3 Tue Feb 02 22:42:24 2016 -0800 @@ -5,8 +5,8 @@ @prefix houseLoc: . @prefix board2pin: . -@prefix board2ow: . - +@prefix board2ow: . +@prefix bed: . ha:node2 a :PiBoard; :hostname "sticker"; :onboardDevice ha:bedroomPiTemp; @@ -15,7 +15,9 @@ board2pin:GPIO3, board2pin:GPIO4, board2pin:GPIO17, - board2pin:GPIO27 + board2pin:GPIO27, + board2pin:GPIO18, + board2pin:GPIO23 . ha:bedroomPiTemp a :OnboardTemperature . @@ -25,6 +27,13 @@ board2pin:GPIO4 :gpioNumber 4 . board2pin:GPIO17 :gpioNumber 17 . board2pin:GPIO27 :gpioNumber 27 . +board2pin:GPIO18 :gpioNumber 18 . +board2pin:GPIO23 :gpioNumber 23 . + +board2pin:GPIO18 :connectedTo bed:greenButton . +board2pin:GPIO23 :connectedTo bed:redButton . +bed:greenButton a :Pushbutton . +bed:redButton a :Pushbutton . board2pin:GPIO17 :connectedTo sensor:motion1 . sensor:motion1 a :MotionSensor; diff -r ae0461a50d03 -r cfc9c9f48824 service/reasoning/input/startup.n3 --- a/service/reasoning/input/startup.n3 Tue Feb 02 22:41:42 2016 -0800 +++ b/service/reasoning/input/startup.n3 Tue Feb 02 22:42:24 2016 -0800 @@ -1,23 +1,25 @@ @prefix : . @prefix rdfs: . -# 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 "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 "storage arduino" . + + is :source of :reasoning; rdfs:label "bang arduino" . + is :source of :reasoning; rdfs:label "kitchen pi" . + is :source of :reasoning; rdfs:label "living room pi" . + is :source of :reasoning; rdfs:label "slash arduino" . + is :source of :reasoning; rdfs:label "bed pi" . + is :source of :reasoning; rdfs:label "brace arduino" . -# also, http://bang:9072/bang/processStatus + is :source of :reasoning; rdfs:label "wifi usage" . + is :source of :reasoning; rdfs:label "env" . + is :source of :reasoning; rdfs:label "trails" . + + is :source of :reasoning; rdfs:label "dash monitor" . + is :source of :reasoning; rdfs:label "dash x idle" . + is :source of :reasoning; rdfs:label "brace monitor" . + is :source of :reasoning; rdfs:label "brace x idle" . + is :source of :reasoning; rdfs:label "slash monitor" . + is :source of :reasoning; rdfs:label "slash x idle" . +# is :source of :reasoning; rdfs:label "bang monitor" . [ a :OneShotPost; :subject ; :predicate :postAction ] .