Mercurial > code > home > repos > homeauto
annotate service/arduinoNode/config/config.n3 @ 1657:274bb6c04627
update currently-working tests
author | drewp@bigasterisk.com |
---|---|
date | Sun, 19 Sep 2021 13:23:50 -0700 |
parents | 6614416dd2c3 |
children |
rev | line source |
---|---|
214 | 1 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
2 @prefix : <http://projects.bigasterisk.com/room/> . | |
3 @prefix ha: <http://bigasterisk.com/homeauto/> . | |
4 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . | |
5 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> . | |
6 | |
7 | |
8 @prefix board1pin: <http://bigasterisk.com/homeauto/board1/pin/> . | |
9 @prefix board1lcd: <http://bigasterisk.com/homeauto/board1/lcd/> . | |
10 @prefix board1ow: <http://bigasterisk.com/homeauto/board1/oneWire/> . | |
11 | |
12 ha:board1 a :ArduinoBoard; | |
13 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6004bUG-if00-port0"; | |
14 :boardTag "atmega328"; | |
15 rdfs:comment "chip has been replaced with a 328"; | |
16 :hasPin | |
17 board1pin:d3, | |
18 board1pin:d5, | |
19 board1pin:d6, | |
20 board1pin:d7, | |
21 board1pin:d8, | |
22 board1pin:d9, | |
23 board1pin:d10, | |
24 board1pin:d11, | |
25 board1pin:d12 . | |
26 | |
27 board1pin:d3 :pinNumber 3 . | |
28 board1pin:d10 :pinNumber 10 . | |
29 board1pin:d11 :pinNumber 11 . | |
30 board1pin:d12 :pinNumber 12 . | |
31 | |
32 board1pin:d10 :connectedTo board1lcd:backlight . | |
33 board1lcd:backlight a :LedOutput, :ActiveLowOutput . | |
34 | |
35 board1pin:d3 :connectedTo board1ow: . | |
36 board1ow: a :OneWire; | |
37 :connectedTo board1ow:temperatureSensor . | |
38 board1ow:temperatureSensor a :TemperatureSensor; | |
39 :position :office . | |
40 | |
41 board1pin:d9 :pinNumber 9; :connectedTo board1lcd:SID . | |
42 board1pin:d8 :pinNumber 8; :connectedTo board1lcd:SCLK . | |
43 board1pin:d7 :pinNumber 7; :connectedTo board1lcd:A0 . | |
44 board1pin:d6 :pinNumber 6; :connectedTo board1lcd:RST . | |
45 board1pin:d5 :pinNumber 5; :connectedTo board1lcd:CS . | |
46 | |
47 board1lcd: a :ST7565Lcd; | |
48 :lcdSID board1lcd:SID; | |
49 :lcdSCLK board1lcd:SCLK; | |
50 :lcdA0 board1lcd:A0; | |
51 :lcdRST board1lcd:RST; | |
52 :lcdCS board1lcd:CS . | |
53 | |
54 | |
55 @prefix board2pin: <http://bigasterisk.com/homeauto/board2/pin/> . | |
56 @prefix board2ow: <http://bigasterisk.com/homeauto/board2/oneWire/> . | |
57 | |
58 ha:board2 a :ArduinoBoard; | |
59 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A4001nIu-if00-port0"; | |
60 :boardTag "diecimila"; | |
61 :hasPin | |
62 board2pin:d3, | |
63 board2pin:d4, | |
64 board2pin:d5, | |
65 board2pin:d6, | |
66 board2pin:d7 | |
67 . | |
68 | |
69 board2pin:d3 :pinNumber 3; :connectedTo sensor:motionAriDesk . | |
70 sensor:motionAriDesk a :MotionSensor; | |
305
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
71 :influxMeasurement [ |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
72 :measurement "presence"; |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
73 :predicate :sees; |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
74 :tag [:key "host"; :value "brace"], |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
75 [:key "sensor"; :value "motion"], |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
76 [:key "location"; :value "ariDesk"]]; |
214 | 77 :sees houseLoc:ariDesk . |
78 | |
79 board2pin:d4 :pinNumber 4; :connectedTo sensor:buttonAriBed . | |
80 sensor:buttonAriBed a :Pushbutton . | |
81 | |
82 board2pin:d5 :pinNumber 5; :connectedTo board2ow: . | |
83 | |
84 board2ow: a :OneWire; | |
85 :connectedTo board2ow:dev-2813bea50300003d . | |
86 board2ow:dev-2813bea50300003d a :TemperatureSensor; | |
87 :position houseLoc:ariUnderBed; | |
305
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
88 :influxMeasurement [ |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
89 :measurement "temperatureF"; |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
90 :predicate :temperatureF; |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
91 :tag [:key "host"; :value "brace"], [:key "location"; :value "ariUnderBed"]] . |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
92 |
214 | 93 |
94 board2pin:d6 :pinNumber 6; :connectedTo :starTrekLight . | |
95 :starTrekLight a :LedOutput; | |
96 :position houseLoc:ariRoom . | |
97 | |
98 board2pin:d7 :pinNumber 7; :connectedTo sensor:motionAriBed . | |
99 sensor:motionAriBed a :MotionSensor; | |
305
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
100 :influxMeasurement [ |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
101 :measurement "presence"; |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
102 :predicate :sees; |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
103 :tag [:key "host"; :value "brace"], |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
104 [:key "sensor"; :value "motion"], |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
105 [:key "location"; :value "ariBed"]]; |
214 | 106 :sees houseLoc:ariBed . |