346
|
1 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
2 @prefix : <http://projects.bigasterisk.com/room/> .
|
|
3 @prefix order: <http://projects.bigasterisk.com/room/ledColorOrder/> .
|
|
4 @prefix ha: <http://bigasterisk.com/homeauto/> .
|
|
5 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> .
|
|
6 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> .
|
|
7
|
|
8 @prefix pin: <http://bigasterisk.com/homeauto/piGarage/pin/> .
|
|
9 @prefix ow: <http://bigasterisk.com/homeauto/piGarage/oneWire/> .
|
|
10
|
|
11 ha:piGarage a :PiBoard;
|
|
12 :hostname "garage";
|
|
13 :onboardDevice ha:garagePiTemp;
|
|
14 :hasPin
|
|
15 pin:GPIO4,
|
|
16 pin:GPIO17,
|
|
17 pin:GPIO7,
|
|
18 pin:GPIO8,
|
|
19 pin:GPIO15,
|
|
20 pin:GPIO18,
|
|
21 pin:GPIO24,
|
|
22 pin:GPIO25 .
|
|
23 ha:garagePiTemp a :OnboardTemperature;
|
|
24 :influxMeasurement [
|
|
25 :measurement "temperatureF";
|
|
26 :predicate :temperatureF;
|
|
27 :tag [:key "host"; :value "garage"], [:key "location"; :value "garagePi"]] .
|
|
28
|
|
29 pin:GPIO4 :gpioNumber 4; :connectedTo sensor:motionGarageDoorInside .
|
|
30 sensor:motionGarageDoorInside a :MotionSensor;
|
|
31 :influxMeasurement [
|
|
32 :measurement "presence";
|
|
33 :predicate :sees;
|
|
34 :tag [:key "host"; :value "garage"],
|
|
35 [:key "sensor"; :value "motion"],
|
|
36 [:key "location"; :value "garageDoorInside"]];
|
|
37 :sees :garage .
|
|
38
|
|
39 pin:GPIO17 :gpioNumber 17; :connectedTo ow: .
|
|
40 ow: a :OneWire; :connectedTo ow:dev-000003a5c0fb .
|
|
41 ow:dev-000003a5c0fb a :TemperatureSensor;
|
|
42 :position houseLoc:garage;
|
|
43 :influxMeasurement [
|
|
44 :measurement "temperatureF";
|
|
45 :predicate :temperatureF;
|
|
46 :tag [:key "host"; :value "garage"], [:key "location"; :value "garage"]] .
|
|
47
|
|
48 pin:GPIO15 :gpioNumber 15; :connectedTo :garageOverhead .
|
|
49 :garageOverhead a :LedOutput .
|
|
50
|
|
51 pin:GPIO18 :gpioNumber 18; :connectedTo :garageRgb .
|
|
52 :garageRgb a :RgbPixels;
|
|
53 :colorOrder order:GRB;
|
|
54 :pixelGroup :garageLedStack .
|
|
55
|
|
56 :garageLedStack
|
|
57 :startIndex 0;
|
|
58 :endIndex 3 .
|
|
59
|
|
60 # this should not be in config
|
|
61 :garageLedStack
|
|
62 :src "rainbow.png";
|
|
63 :x 0;
|
|
64 :y 0;
|
|
65 :height 4;
|
|
66 :interpolate :slide;
|
|
67 :rate 30 . # px/sec
|
|
68
|
|
69
|
|
70 pin:GPIO25 :gpioNumber 25 .
|
|
71 pin:GPIO24 :gpioNumber 24 .
|
|
72 pin:GPIO8 :gpioNumber 8 .
|
|
73 pin:GPIO7 :gpioNumber 7 .
|
|
74
|
|
75 :garageLcd a :Lcd8544;
|
|
76 :din pin:GPIO25;
|
|
77 :clk pin:GPIO24;
|
|
78 :dc pin:GPIO8;
|
|
79 :rst pin:GPIO7 .
|
|
80
|
|
81 |