diff service/piNode/config/frontbed.n3 @ 1151:4f89d130a3fe

split up pi configs Ignore-this: 8770e4e488662d5335c896fe71ad5c82 darcs-hash:0fecf7192f94464883b5775906ee353e43a9d48a
author drewp <drewp@bigasterisk.com>
date Sun, 15 Apr 2018 04:16:56 -0700
parents
children c28d985d1e42
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/service/piNode/config/frontbed.n3	Sun Apr 15 04:16:56 2018 -0700
@@ -0,0 +1,90 @@
+@prefix rdfs:     <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix :         <http://projects.bigasterisk.com/room/> .
+@prefix order:    <http://projects.bigasterisk.com/room/ledColorOrder/> .
+@prefix ha:       <http://bigasterisk.com/homeauto/> .
+@prefix sensor:   <http://bigasterisk.com/homeauto/sensor/> .
+@prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> .
+
+@prefix pin: <http://bigasterisk.com/homeauto/piFrontbed/pin/> .
+@prefix ow: <http://bigasterisk.com/homeauto/piFrontbed/oneWire/> .
+
+ha:piFrontbed a :PiBoard;
+  :hostname "frontbed";
+  :onboardDevice ha:frontbedPiTemp;
+  :hasPin
+    pin:GPIO17,
+    pin:GPIO18,
+    pin:GPIO19,
+    pin:GPIO23,
+    pin:GPIO26
+    .
+
+ha:frontbedPiTemp a :OnboardTemperature;
+  :influxMeasurement "temperatureF";
+  :influxTag [:key "location"; :value "downBathPi"] .
+
+# pin number ignored; see /boot/config.txt
+pin:GPIO17 :gpioNumber 17; :connectedTo ow: .
+ow: a :OneWire; :connectedTo ow:dev-000003a5be13 .
+ow:dev-000003a5be13 a :TemperatureSensor;
+  :position houseLoc:frontbed;
+  :influxMeasurement [
+    :measurement "temperatureF";
+    :predicate :temperatureF;
+    :tag [:key "host"; :value "frontbed"], [:key "location"; :value "frontbedUnderDesk"]] .
+
+
+pin:GPIO4 :gpioNumber 4; :connectedTo :frontbedOpenSwitch ;
+:influxMeasurement [
+    :measurement "state";
+    :predicate :buttonState;
+    :tag [:key "host"; :value "frontbed"],
+      [:key "sensor"; :value "open"],
+      [:key "location"; :value "frontbed"]].
+
+pin:GPIO23 :gpioNumber 23; :connectedTo :starTrekLight .
+:starTrekLight a :LedOutput .
+
+pin:GPIO26 :gpioNumber 26; :connectedTo sensor:motionLoftDesk .
+sensor:motionLoftDesk a :MotionSensor;
+  :xxinfluxMeasurement [
+    :measurement "presence";
+    :predicate :sees;
+    :tag [:key "host"; :value "frontbed"],
+      [:key "sensor"; :value "motion"],
+      [:key "location"; :value "loftbed"]];
+  :sees :loftDesk .
+
+pin:GPIO19 :gpioNumber 19; :connectedTo sensor:motionLoftbed .
+sensor:motionLoftbed a :MotionSensor;
+  :influxMeasurement [
+    :measurement "presence";
+    :predicate :sees;
+    :tag [:key "host"; :value "frontbed"],
+      [:key "sensor"; :value "motion"],
+      [:key "location"; :value "loftbed"]];
+  :sees :loftbed .
+
+pin:GPIO18 :gpioNumber 18; :connectedTo :frontbedRgb .
+:frontbedRgb a :RgbPixels;
+  :colorOrder order:GRB;
+  :pixelGroup :loftDeskStatus, :loftDeskStrip .
+
+:loftDeskStatus
+  :startIndex 0;
+  :endIndex 0;
+  :src "rainbow.png";
+  :x 199;
+  :y 0;
+  :height 1;
+  :interpolate :slide;
+  :rate 30 . # px/sec
+:loftDeskStrip
+  :startIndex 1;
+  :endIndex 50;
+  :src "rainbow.png";
+  :x 0;
+  :y 0;
+  :height 50;
+  :interpolate :slide .
+