Mercurial > code > home > repos > homeauto
annotate service/arduinoNode/static/index.html @ 992:ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
Ignore-this: f3d3e6739851232d2177eacdd833c16
darcs-hash:20150708082237-312f9-e3ed5292c58b3463bd48f8da6f98e7414f45f84b
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 08 Jul 2015 01:22:37 -0700 |
parents | e9ed6159b5fa |
children | 960b3b4cdd29 |
rev | line source |
---|---|
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 <!doctype html> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 <html> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 <head> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 <title>arduinoNode</title> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 <meta charset="utf-8" /> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 <link rel="import" href="/lib/polymer/0.5.2/polymer/polymer.html"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 <link rel="import" href="/lib/polymer/0.5.2/core-ajax/core-ajax.html"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 <link rel="import" href="/room/ari/static/rdf-observe.html"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 <link rel="import" href="/room/ari/static/rdf-oneshot.html"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 <link rel="import" href="static/output-widgets.html"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 <style> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 body { |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 font-family: monospace; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 } |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 </style> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 </head> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 <body layout vertical fullbleed> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
19 <script> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 window.NS = { |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 dev: 'http://projects.bigasterisk.com/device/', |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 room: 'http://projects.bigasterisk.com/room/', |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 rdfs: 'http://www.w3.org/2000/01/rdf-schema#', |
992
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
24 sensor: 'http://bigasterisk.com/homeauto/sensor/' |
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
25 }; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
26 </script> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
27 |
978
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
28 <script> |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
29 PolymerExpressions.prototype.tojson = function(input) { |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
30 return JSON.stringify(input); |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
31 }; |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
32 |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
33 // not well defined for uri prefixes that are string prefixes of each other |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
34 PolymerExpressions.prototype.compactUri = function(uri) { |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
35 if (uri === undefined) { |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
36 return uri; |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
37 } |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
38 for (var short of Object.keys(window.NS)) { |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
39 var prefix = window.NS[short]; |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
40 if (uri.indexOf(prefix) == 0) { |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
41 return short + ':' + uri.substr(prefix.length); |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
42 } |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
43 } |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
44 return uri; |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
45 }; |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
46 </script> |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
47 |
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
48 <polymer-element name="linked-uri" noscript attributes="href"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
49 <template> |
992
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
50 <a href="{{href}}">{{href | compactUri}}</a> |
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
51 </template> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
52 </polymer-element> |
978
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
53 |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
54 <!-- subj/pred are compact uris --> |
992
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
55 <polymer-element name="watched-subgraph" attributes="graph subj pred"> |
978
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
56 <template> |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
57 <style> |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
58 .read { font-weight: bold; } |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
59 </style> |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
60 |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
61 <rdf-observe |
992
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
62 graph="{{graph}}" |
978
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
63 subject="{{subj}}" |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
64 predicate="{{pred}}" |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
65 out="{{out}}"> |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
66 </rdf-observe> |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
67 |
992
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
68 <div>{{subj | compactUri}}, {{pred | compactUri}}, |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
69 <span class="read">{{formattedOut}}</span> |
978
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
70 </div> |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
71 |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
72 </template> |
992
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
73 <script> |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
74 Polymer({ |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
75 outChanged: function() { |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
76 var obj = this.out[this.pred]; |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
77 if (typeof(obj) == 'string') { |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
78 this.formattedOut = PolymerExpressions.prototype.compactUri(obj); |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
79 } else { |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
80 this.formattedOut = obj['@value']; |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
81 } |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
82 } |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
83 }); |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
84 </script> |
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
85 |
978
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
86 </polymer-element> |
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
87 |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
88 <polymer-element name="arduinonode-boards" noscript> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
89 <template> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
90 <style> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
91 h1 { |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
92 margin: 0; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
93 font-size: 130%; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
94 } |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
95 ul { |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
96 padding-left: 5px; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
97 } |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
98 .board, .device { |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
99 border: 1px solid gray; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
100 border-radius: 10px; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
101 margin: 13px; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
102 padding: 7px; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
103 box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.14); |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
104 } |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
105 .board { |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
106 background: rgb(244, 244, 244); |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
107 } |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
108 .device { |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
109 background: #fff; |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
110 } |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
111 </style> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
112 <core-ajax |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
113 url="boards" |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
114 auto="true" |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
115 handleAs="json" |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
116 response="{{ret}}"></core-ajax> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
117 <template repeat="{{board in ret.boards}}"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
118 <div class="board"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
119 <h1>Board <linked-uri href="{{board.uri}}"></linked-uri></h1> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
120 <h2>Devices</h2> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
121 <ul> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
122 <template repeat="{{dev in board.devices}}"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
123 <div class="device"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
124 <h1> |
976 | 125 {{dev.className}} |
126 <linked-uri href="{{dev.uri}}"></linked-uri> | |
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
127 </h1> |
976 | 128 |
129 <template if="{{dev.watchPrefixes.length}}"> | |
130 <div>watching:</div> | |
131 <ul> | |
132 <template repeat="{{prefix in dev.watchPrefixes}}"> | |
978
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
133 <watched-subgraph |
992
ed1f54d81fc9
board control ui: output-rgb, fix ajax protocol, display output uris
drewp <drewp@bigasterisk.com>
parents:
978
diff
changeset
|
134 graph="{{board.graph}}" |
978
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
135 subj="{{prefix[0] | compactUri}}" |
e9ed6159b5fa
handle compact/full uris better, but still not always right
drewp <drewp@bigasterisk.com>
parents:
976
diff
changeset
|
136 pred="{{prefix[1] | compactUri}}"></watched-subgraph> |
976 | 137 </template> |
138 </ul> | |
139 </template> | |
140 | |
141 <template if="{{dev.outputWidgets.length}}"> | |
142 <div>send output:</div> | |
143 <ul> | |
144 <template repeat="{{out in dev.outputWidgets}}"> | |
145 <div> | |
146 <output-widget-any desc="{{out}}"></output-widget-any> | |
147 </div> | |
148 </template> | |
149 </ul> | |
150 </template> | |
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
151 </div> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
152 </template> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
153 </ul> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
154 </div> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
155 </template> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
156 </template> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
157 </polymer-element> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
158 <arduinonode-boards></arduinonode-boards> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
159 |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
160 <polymer-element name="data-dump" noscript> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
161 <template> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
162 <rdf-observe |
976 | 163 graph="http://dash:9059/graph" |
164 subject="http://bigasterisk.com/homeauto/board1/oneWire/" | |
165 predicate="room:temperatureF" | |
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
166 out="{{out}}"> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
167 </rdf-observe> |
976 | 168 <div>sees: {{out['room:temperatureF']['@value']}}</div> |
169 | |
170 | |
171 <rdf-observe | |
172 graph="http://dash:9059/graph" | |
173 subject="http://bigasterisk.com/homeauto/board1/oneWire/" | |
174 predicate="http://projects.bigasterisk.com/room/temperatureRetries" | |
175 out="{{out2}}"> | |
176 </rdf-observe> | |
177 <div>sees2: {{out2['room:temperatureRetries']['@value']}}</div> | |
178 | |
975
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
179 </template> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
180 </polymer-element> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
181 <!-- <data-dump></data-dump> --> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
182 </body> |
f3023410d875
polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
183 </html> |