changeset 1415:a02b1b08f24f

clean up very old reasoning configs Ignore-this: 29c9a3145a640c8a71d4add8ee219fae darcs-hash:64a8a52854f34fc3ae932b796552795df31be1bb
author drewp <drewp@bigasterisk.com>
date Wed, 24 Jul 2019 01:12:29 -0700
parents 1a277dba4cdc
children 201090b9c725
files service/reasoning/input/devices.n3 service/reasoning/input/startup.n3
diffstat 2 files changed, 3 insertions(+), 104 deletions(-) [+]
line wrap: on
line diff
--- a/service/reasoning/input/devices.n3	Wed Jul 24 01:03:21 2019 -0700
+++ b/service/reasoning/input/devices.n3	Wed Jul 24 01:12:29 2019 -0700
@@ -1,69 +1,10 @@
 @prefix : <http://projects.bigasterisk.com/room/>.
-@prefix lights: <http://projects.bigasterisk.com/room/lights/>.
 @prefix device: <http://projects.bigasterisk.com/device/>.
-@prefix control: <http://projects.bigasterisk.com/control/>.
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix slashport: <http://slash.bigasterisk.com/parport/3bc#> .
-@prefix port: <http://bang.bigasterisk.com/parport/parport0#> .
 @prefix onewire: <http://bigasterisk.com/onewire/> .
-@prefix cmd: <http://bigasterisk.com/magma/cmd/> .
-@prefix bang1: <http://bigasterisk.com/bang/arduino/pin/> .
-@prefix cl: <http://bigasterisk.com/ns/command/v1#> .
 @prefix bang: <http://bigasterisk.com/host/bang/> .
-
-:putUrl rdfs:comment "this pin can be set by calling PUT on the given url with a body of '0' or '1'" .
-# no longer parport; needs upgrade to whatever the arduino pin is:
-#device:frontLights a :ParportPin; :putUrl "http://slash:9014/otherBit?bit=1" .
-
-device:heater :putUrl "http://bang:9056/pin/d4" .
-
-# these are the bedroom red light, untested
-bang1:d7 :putUrl "http://bang:9056/pin/d7" .
-bang1:d8 :putUrl "http://bang:9056/pin/d8" .
-
-:pulse rdfs:comment "number of seconds this pin should stay high when it is set to 1. Then the pin automatically goes back to 0." .
-
-port:pin3 rdfs:label "heater power" .
- 
-# .1 second pulse was too short for redlight, once
-
-device:deckLightOff :putUrl "http://bang:9056/pin/d5"; rdfs:label "outdoor off (x1)"; :pulse ".4" . 
-device:deckLightOn :putUrl "http://bang:9056/pin/d6"; rdfs:label "outdoor on (x2)"; :pulse ".4" . 
+@prefix reasoning: <http://projects.bigasterisk.com/ns/reasoning/>.
 
-cmd:deckLightOff :oneShot device:deckLightOff .
-cmd:deckLightOn :oneShot device:deckLightOn .
-
-#port:pin_d7 rdfs:label "bedroomred off? (y1)"; :pulse ".8" . 
-cmd:bedroomRedLightOff :oneShot device:bedroomRedLightOff .
-#port:pin_d8 rdfs:label "bedroomred on? (y2)"; :pulse ".8" . 
-cmd:bedroomRedLightOn :oneShot device:bedroomRedLightOn .
-
-port:unfinished1 :putUrl "http://bang:9056/pin/d12"; rdfs:label "heater sense" .
-
-device:frontLights rdfs:label "front light" . 
-cmd:frontLightOff :clearPin device:frontLights .
-cmd:frontLightOn :setPin device:frontLights .
-
-#drew's phone = friendly phone
-#kelsi phone = friendly phone
-#bluetooth senses friendly phone   ->   all doors are unlocked
-#all locks = device:lock1
-:drewsPhone :bluetoothAddr "...." .
-
-# maybe each tool should have its own little graph, and it announces
-# changes to that graph. the listener tools make a combined-graph of
-# the sources, and draw their conclusions on that
-
-onewire:addr104F718D00080038 :graphiteName "sens1"; rdfs:label "downstairsCeiling" .
-onewire:addr1014958D0008002B :graphiteName "sens2"; rdfs:label "downstairsFloor" .
-onewire:addr10CB6CBE0008005E :graphiteName "sens3"; rdfs:label "bedroom" .
-onewire:addr109AA2BE000800C7 :graphiteName "sens4"; rdfs:label "livingRoom" .
-
-device:theaterDoorOutsideMotion rdfs:label "theater door outside motion" .
-device:theaterDoorOpen rdfs:label "theater door open" .
-
-device:theaterDoorLock rdfs:label "theater door lock";
-		       :putUrl "http://bang:9056/pin/d3"; :zeroValue "0".
 
 :unlocked :putValue "1" .
 :on :putValue "on" .
@@ -74,14 +15,6 @@
 <http://bigasterisk.com/host/dash/monitor>      :putUrl "http://dash:9095/monitor" .
 <http://bigasterisk.com/host/frontdoor/monitor> :putUrl "http://frontdoor:9095/monitor" .
 
-device:heater cl:valueMapping
-  [cl:value cl:on; cl:putUrl <http://bang:9056/pin/d4>; cl:putBody "1"  ],
-  [cl:value cl:off; cl:putUrl <http://bang:9056/pin/d4>; cl:putBody "0" ] . 
-
-device:frontLight cl:valueMapping
-  [cl:value cl:on; cl:putUrl <http://slash:9080/yardLight>; cl:putBody "true"  ],
-  [cl:value cl:off; cl:putUrl <http://slash:9080/yardLight>; cl:putBody "false" ] .
-
 :storageCeilingLedCross
   :putUrl <http://bang:9059/output?s=http://projects.bigasterisk.com/room/storageCeilingLedCross&p=http://projects.bigasterisk.com/room/brightness>;
   :zeroValue 0.0 .
@@ -119,8 +52,8 @@
   :putUrl <http://living:9059/output?s=http://projects.bigasterisk.com/room/livingRoomLamp2&p=http://projects.bigasterisk.com/room/brightness> .
 
 :loftDeskStrip
-  :putUrl <http://frontbed:9059/output?s=http://projects.bigasterisk.com/room/loftDeskStrip&p=http://projects.bigasterisk.com/room/x> .
-
+  :putUrl <http://frontbed:9059/output>; :putPredicate :x .
+#reasoning:defaultOutput reasoning:default [ :subject :loftDeskStrip; :predicate :x; :defaultObject 0.0 ] .
 
 :frontDoorOled :putUrl <http://frontdoor:10013/output>; :putPredicate :state .
 :frontWindow :putPredicate :line1; :putUrl <http://bang:10008/output> .
--- a/service/reasoning/input/startup.n3	Wed Jul 24 01:03:21 2019 -0700
+++ b/service/reasoning/input/startup.n3	Wed Jul 24 01:12:29 2019 -0700
@@ -2,40 +2,6 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix fr: <http://bigasterisk.com/foaf/> .
 
-# Note that turning off a source in here doesn't stop incoming oneshot
-# requests (but it could, if we got continuous graphs such that
-# oneshot was just a sequence of updates and not a reverse-direction
-# request).
-
-# UNUSED- see sse_collector
-<http://bang:9059/graph>       is :source of :reasoning; rdfs:label "bang arduino" .
-<http://garage:9059/graph>     is :source of :reasoning; rdfs:label "garage pi" .
-<http://kitchen:9059/graph>    is :source of :reasoning; rdfs:label "kitchen pi" .
-<http://living:9059/graph>     is :source of :reasoning; rdfs:label "living room pi" .
-<http://slash:9059/graph>      is :source of :reasoning; rdfs:label "slash arduino" .
-<http://bed:9059/graph>        is :source of :reasoning; rdfs:label "bed pi" .
-<http://brace6:9059/graph>     is :source of :reasoning; rdfs:label "brace arduino" .
-<http://changing:9059/graph>   is :source of :reasoning; rdfs:label "changing pi" .
-<http://frontdoor6:9059/graph> is :source of :reasoning; rdfs:label "frontdoor pi" .
-<http://bang:9075/graph>       is :source of :reasoning; rdfs:label "env" .
-
-<http://bang:9070/graph>       is :source of :reasoning; rdfs:label "wifi usage" .
-<http://bang:9099/graph>       is :source of :reasoning; rdfs:label "trails" .
-
-<http://dash:9095/graph>       is :source of :reasoning; rdfs:label "dash monitor" .
-<http://dash:9107/graph>       is :source of :reasoning; rdfs:label "dash x idle" .
-<http://brace6:9095/graph>     is :source of :reasoning; rdfs:label "brace monitor" .
-<http://brace6:9107/graph>     is :source of :reasoning; rdfs:label "brace x idle" .
-<http://slash:9095/graph>      is :source of :reasoning; rdfs:label "slash monitor" .
-<http://slash:9107/graph>      is :source of :reasoning; rdfs:label "slash x idle" .#
-<http://frontdoor6:9095/graph> is :source of :reasoning; rdfs:label "frontdoor monitor" .
-<http://frontdoor6:9107/graph> is :source of :reasoning; rdfs:label "frontdoor x idle" .
-
-
-# not built yet
-#<http://bang:9095/graph>    is :source of :reasoning; rdfs:label "bang monitor" .
-#<http://changing:8208/graph> is :source of :reasoning; rdfs:label "changing camera" .
-
 
 [ a :OneShotPost; :subject <http://bigasterisk.com/host/star/slideshow>; :predicate :postAction ] .
 [ a :OneShotPost; :subject <http://bigasterisk.com/host/star/sound>; :predicate :postAction ] .