comparison service/arduinoNode/config/bang.n3 @ 1149:163042261ef1

rename board0 to boardBang. add other temp sensor. Ignore-this: 10df00e617c1f4d5b4427efb5e9a544d darcs-hash:cb8ca1761579e8eb0932271f62513ae4b7e93fc4
author drewp <drewp@bigasterisk.com>
date Sat, 14 Apr 2018 23:47:34 -0700
parents 6ee834a6f970
children 6b80a6c58907
comparison
equal deleted inserted replaced
1148:8b4eda2cf0bd 1149:163042261ef1
2 @prefix : <http://projects.bigasterisk.com/room/> . 2 @prefix : <http://projects.bigasterisk.com/room/> .
3 @prefix ha: <http://bigasterisk.com/homeauto/> . 3 @prefix ha: <http://bigasterisk.com/homeauto/> .
4 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . 4 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> .
5 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> . 5 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> .
6 6
7 @prefix board0: <http://bigasterisk.com/homeauto/board0/> . 7 @prefix board: <http://bigasterisk.com/homeauto/boardBang/> .
8 @prefix board0pin: <http://bigasterisk.com/homeauto/board0/pin/> . 8 @prefix pin: <http://bigasterisk.com/homeauto/boardBang/pin/> .
9 @prefix board0ow: <http://bigasterisk.com/homeauto/board0/oneWire/> . 9 @prefix ow: <http://bigasterisk.com/homeauto/boardBang/oneWire/> .
10 10
11 ha:board0 a :ArduinoBoard; 11 ha:boardBang a :ArduinoBoard;
12 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0"; 12 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0";
13 :boardTag "atmega328"; 13 :boardTag "atmega328";
14 :hasPin 14 :hasPin
15 board0pin:d3, 15 pin:d3,
16 board0pin:d4, 16 pin:d4,
17 board0pin:d5, 17 pin:d5,
18 board0pin:d6, 18 pin:d6,
19 board0pin:d7, 19 pin:d7,
20 board0pin:d8 20 pin:d8
21 . 21 .
22 22
23 board0pin:d3 :pinNumber 3 . 23 pin:d3 :pinNumber 3 .
24 board0pin:d4 :pinNumber 4 . 24 pin:d4 :pinNumber 4 .
25 board0pin:d5 :pinNumber 5 . 25 pin:d5 :pinNumber 5 .
26 board0pin:d6 :pinNumber 6 . 26 pin:d6 :pinNumber 6 .
27 board0pin:d7 :pinNumber 7 . 27 pin:d7 :pinNumber 7 .
28 board0pin:d8 :pinNumber 8 . 28 pin:d8 :pinNumber 8 .
29 29
30 30
31 board0pin:d3 :connectedTo sensor:motionStorage . 31 pin:d3 :connectedTo sensor:motionStorage .
32 sensor:motionStorage a :MotionSensor; 32 sensor:motionStorage a :MotionSensor;
33 :influxMeasurement [ 33 :influxMeasurement [
34 :measurement "presence"; 34 :measurement "presence";
35 :predicate :sees; 35 :predicate :sees;
36 :tag [:key "host"; :value "bang"], 36 :tag [:key "host"; :value "bang"],
37 [:key "sensor"; :value "motion"], 37 [:key "sensor"; :value "motion"],
38 [:key "location"; :value "storage"]]; 38 [:key "location"; :value "storage"]];
39 :sees houseLoc:storage . 39 :sees houseLoc:storage .
40 40
41 board0pin:d4 :connectedTo :heater . 41 pin:d4 :connectedTo :heater .
42 :heater a :DigitalOutput . 42 :heater a :DigitalOutput .
43 43
44 board0pin:d5 :connectedTo :storageCeilingLedCross . 44 pin:d5 :connectedTo :storageCeilingLedCross .
45 :storageCeilingLedCross a :LedOutput . 45 :storageCeilingLedCross a :LedOutput .
46 46
47 board0pin:d6 :connectedTo :storageCeilingLedLong . 47 pin:d6 :connectedTo :storageCeilingLedLong .
48 :storageCeilingLedLong a :LedOutput . 48 :storageCeilingLedLong a :LedOutput .
49 49
50 board0pin:d7 :connectedTo board0ow: . 50 pin:d7 :connectedTo ow: .
51 board0ow: a :OneWire; 51 ow: a :OneWire;
52 :connectedTo board0ow:dev-1052790f02080086 . 52 :connectedTo ow:dev-1052790f02080086, ow:dev-2809b8a503000035 .
53 board0ow:dev-1052790f02080086 a :TemperatureSensor; 53 ow:dev-1052790f02080086 a :TemperatureSensor;
54 :position :storage; 54 :position :storage;
55 :influxMeasurement [ 55 :influxMeasurement [
56 :measurement "temperatureF"; 56 :measurement "temperatureF";
57 :predicate :temperatureF; 57 :predicate :temperatureF;
58 :tag [:key "host"; :value "bang"], [:key "location"; :value "storage"]] . 58 :tag [:key "host"; :value "bang"], [:key "location"; :value "storage"]] .
59 ow:dev-2809b8a503000035 a :TemperatureSensor;
60 :position :storage2 .
61
62 pin:d8 :connectedTo board:rgb2 .
63 board:rgb2 a :RgbPixels;
64 :pixelGroup :speakersStrips .
65
66 :speakersStrips
67 :startIndex 0;
68 :endIndex 11;
69 :src "rainbow.png";
70 :x 0;
71 :y 0;
72 :height 12;
73 :interpolate :slide;
74 :rate 30 . # px/sec
75
76 board:rgb_left_top_0 rdfs:label "rgb_left_top_0" .
77 board:rgb_left_top_1 rdfs:label "rgb_left_top_1" .
78 board:rgb_left_top_2 rdfs:label "rgb_left_top_2" .
79 board:rgb_left_bottom_0 rdfs:label "rgb_left_bottom_0" .
80 board:rgb_left_bottom_1 rdfs:label "rgb_left_bottom_1" .
81 board:rgb_left_bottom_2 rdfs:label "rgb_left_bottom_2" .
82 board:rgb_right_top_0 rdfs:label "rgb_right_top_0" .
83 board:rgb_right_top_1 rdfs:label "rgb_right_top_1" .
84 board:rgb_right_top_2 rdfs:label "rgb_right_top_2" .
85 board:rgb_right_bottom_0 rdfs:label "rgb_right_bottom_0" .
86 board:rgb_right_bottom_1 rdfs:label "rgb_right_bottom_1" .
87 board:rgb_right_bottom_2 rdfs:label "rgb_right_bottom_2" .
88
59 89
60 90
61 ha:boardTest a :ArduinoBoard; 91 ha:boardTest a :ArduinoBoard;
62 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9YLHR7R-if00-port0"; 92 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9YLHR7R-if00-port0";
63 :boardTag "nano328"; 93 :boardTag "nano328";
64 :hasPin :bt8 . 94 :hasPin :bt8 .
65 95
66 :bt8 :pinNumber 8 . 96 :bt8 :pinNumber 8 .
67
68 board0pin:d8 :connectedTo board0:rgb .
69 board0:rgb a :RgbPixels;
70 :pixels (
71 board0:rgb_left_top_0
72 board0:rgb_left_top_1
73 board0:rgb_left_top_2
74 board0:rgb_left_bottom_0
75 board0:rgb_left_bottom_1
76 board0:rgb_left_bottom_2
77 board0:rgb_right_top_0
78 board0:rgb_right_top_1
79 board0:rgb_right_top_2
80 board0:rgb_right_bottom_0
81 board0:rgb_right_bottom_1
82 board0:rgb_right_bottom_2
83 ).
84
85 board0:rgb_left_top_0 rdfs:label "rgb_left_top_0" .
86 board0:rgb_left_top_1 rdfs:label "rgb_left_top_1" .
87 board0:rgb_left_top_2 rdfs:label "rgb_left_top_2" .
88 board0:rgb_left_bottom_0 rdfs:label "rgb_left_bottom_0" .
89 board0:rgb_left_bottom_1 rdfs:label "rgb_left_bottom_1" .
90 board0:rgb_left_bottom_2 rdfs:label "rgb_left_bottom_2" .
91 board0:rgb_right_top_0 rdfs:label "rgb_right_top_0" .
92 board0:rgb_right_top_1 rdfs:label "rgb_right_top_1" .
93 board0:rgb_right_top_2 rdfs:label "rgb_right_top_2" .
94 board0:rgb_right_bottom_0 rdfs:label "rgb_right_bottom_0" .
95 board0:rgb_right_bottom_1 rdfs:label "rgb_right_bottom_1" .
96 board0:rgb_right_bottom_2 rdfs:label "rgb_right_bottom_2" .