annotate service/mqtt_graph_bridge/config.n3 @ 1400:31aed1a0af9c

adjust kitchen PWM freqs. add comments and proposed contents of n3 configs Ignore-this: 8fc4659c1d8830e1ed66b0702b1e69fd darcs-hash:026328acb60195c0d4410ce1cc583ac120d1c6a3
author drewp <drewp@bigasterisk.com>
date Sat, 13 Jul 2019 19:58:50 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1400
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
1 @prefix : <http://projects.bigasterisk.com/room/> .
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
2 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
3 @prefix fr: <http://bigasterisk.com/foaf/> .
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
4
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
5 :kitchenSkylight a :Device;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
6 :mqttTopicHead ("h801_skylight" "light");
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
7 :convertedAttr [
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
8 :deviceAttr :white;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
9 :mqttTopicTail ("kit_w1" "command");
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
10 :valueConversion :to8Bit;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
11 :message '{"state":"ON","brightness":%value%}'
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
12 ],
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
13 :convertedAttr [
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
14 :deviceAttr :color;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
15 :mqttTopicTail ("kit_r" "command");
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
16 :valueConversion :extractRed8Bit;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
17 :message '{"state":"ON","brightness":%value%}'
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
18 ],
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
19 :convertedAttr [
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
20 :deviceAttr :color;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
21 :mqttTopicTail ("kit_g" "command");
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
22 :valueConversion :extractGreen8Bit;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
23 :message '{"state":"ON","brightness":%value%}'
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
24 ],
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
25 :convertedAttr [
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
26 :deviceAttr :color;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
27 :mqttTopicTail ("kit_r" "command");
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
28 :valueConversion :extractBlue8Bit;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
29 :message '{"state":"ON","brightness":%value%}'
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
30 ],
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
31
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
32 :nightlightAriTemperature a :ExportedMeasurement;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
33 :mqttTopicHead ("nightlight_ari" "sensor" "temperature" "state");
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
34
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
35 :missingAfterSec 150;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
36 :ignoreInputValueBelow -999;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
37
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
38 :valueProcess [
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
39 :conversion :celsiusToFarenheit; #and round(x,2)
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
40 ];
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
41
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
42 :graphStatements [
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
43 :outputPredicate :temperatureF;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
44 :statementLifetime :untilReplaced;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
45
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
46 # is this just another valueProcess?
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
47 :outputRecentPredicate :recentLowTemperatureF; :recentPeriodSec 30;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
48 ],
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
49
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
50 :influxMeasurement [
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
51 :measurement "temperatureF";
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
52 :predicate :temperatureF;
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
53 :tag [:key "host"; :value "nightlight_ari"],
31aed1a0af9c adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
drewp <drewp@bigasterisk.com>
parents:
diff changeset
54 [:key "location"; :value "ariRoom"]] .