Mercurial > code > home > repos > homeauto
annotate service/arduinoNode/config/slash.n3 @ 454:ccde9f432e4e
WIP speechmusic to load from http, but pulseaudio out is broken
Ignore-this: 28a41741b1f33114348f5ec6e7b4bef9
author | drewp@bigasterisk.com |
---|---|
date | Fri, 19 Apr 2019 13:51:54 -0700 |
parents | 6614416dd2c3 |
children | 12f9f1838fb5 |
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 shopPin: <http://bigasterisk.com/homeauto/boardShop/pin/> . | |
9 @prefix shopBarcode: <http://bigasterisk.com/homeauto/boardShop/barcode/> . | |
10 @prefix shopButtons: <http://bigasterisk.com/homeauto/boardShop/buttons/> . | |
11 @prefix shopOw: <http://bigasterisk.com/homeauto/boardShop/oneWire/> . | |
12 @prefix shopShift: <http://bigasterisk.com/homeauto/boardShop/shift/> . | |
13 @prefix shopPwm: <http://bigasterisk.com/homeauto/boardShop/pwm/> . | |
14 | |
15 ha:boardShop a :ArduinoBoard; | |
16 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A4001hrf-if00-port0"; | |
17 :boardTag "atmega168"; | |
18 rdfs:comment "board is like diecimila with atmega168"; | |
19 :hasPin | |
20 shopPin:d0, shopPin:d1, shopPin:d2, shopPin:d3, shopPin:d4, shopPin:d5, shopPin:d6, shopPin:d7, shopPin:d8, shopPin:d9, shopPin:d10, shopPin:d11, shopPin:d12, shopPin:d13, shopPin:a4, shopPin:a5 . | |
21 | |
22 shopPin:d0 :pinNumber 0 . | |
23 shopPin:d1 :pinNumber 1 . | |
24 shopPin:d2 :pinNumber 2; :connectedTo shopBarcode:Txblack . | |
25 shopPin:d3 :pinNumber 3; :connectedTo shopBarcode:RxGreen . | |
26 shopPin:d4 :pinNumber 4; :connectedTo shopOw: . | |
27 shopPin:d5 :pinNumber 5; :connectedTo shopButtons:x . | |
28 shopPin:d6 :pinNumber 6; :connectedTo shopButtons:x . | |
29 shopPin:d7 :pinNumber 7; :connectedTo shopButtons:x . | |
30 shopPin:d8 :pinNumber 8; :connectedTo shopButtons:rot . | |
31 shopPin:d9 :pinNumber 9; :connectedTo shopButtons:rot . | |
32 shopPin:d10 :pinNumber 10; :connectedTo shopShift:data . | |
33 shopPin:d11 :pinNumber 11; :connectedTo shopShift:briteLatch . | |
34 shopPin:d12 :pinNumber 12; :connectedTo shopShift:lightClock . | |
35 shopPin:d13 :pinNumber 13; :connectedTo shopShift:briteClock . | |
36 | |
37 shopPin:a4 :pinNumber "a4"; :connectedTo shopPwm:sda . | |
38 shopPin:a5 :pinNumber "a5"; :connectedTo shopPwm:scl . | |
39 | |
40 shopOw: a :OneWire; | |
41 :connectedTo shopOw:dev-28bf08d101000026 . | |
42 shopOw:dev-28bf08d101000026 a :TemperatureSensor; | |
43 :position :workshop; | |
305
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
44 :influxMeasurement [ |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
45 :measurement "temperatureF"; |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
46 :predicate :temperatureF; |
6614416dd2c3
influx output for arduino, update web lib path
drewp@bigasterisk.com
parents:
214
diff
changeset
|
47 :tag [:key "host"; :value "slash"], [:key "location"; :value "workshop"]]. |
214 | 48 |
49 shopPwm:roomLights a :PwmBoard; | |
50 :scl shopPwm:scl; | |
51 :sda shopPwm:sda; | |
52 :output | |
53 [:area shopPwm:sewingLight; :channel 0; :wattage 7], | |
54 [:area shopPwm:shopLight0; :channel 1; :wattage 10], | |
55 [:area shopPwm:shopLight1; :channel 2; :wattage 10], | |
56 [:area shopPwm:ariLight; :channel 3; :wattage 10], | |
57 [:area shopPwm:shopLight2; :channel 4; :wattage 10], | |
58 [:area shopPwm:shopLight3; :channel 6; :wattage 8] . | |
59 | |
60 # shiftbrite EI (arduino d12) still needs to be connected to +5 | |
61 | |
62 #barcode red: +5V | |
63 #barcode white: gnd | |
64 #SoftwareSerial barcode = SoftwareSerial(/* rx pin, green */ 3, | |
65 # /* tx pin, black */ 2, | |
66 # /* inverse */ true); |