comparison service/arduinoNode/static/index.html @ 171:4d2df276baae

clean up rdf-observe demo ui Ignore-this: 8795333fe63ccd47e8c3e9584efaa43d
author drewp@bigasterisk.com
date Tue, 14 Apr 2015 02:01:51 -0700
parents 376599552a4c
children 0daa8cbbd8f6
comparison
equal deleted inserted replaced
170:376599552a4c 171:4d2df276baae
3 <head> 3 <head>
4 <title>arduinoNode</title> 4 <title>arduinoNode</title>
5 <meta charset="utf-8" /> 5 <meta charset="utf-8" />
6 <link rel="import" href="/lib/polymer/0.5.2/polymer/polymer.html"> 6 <link rel="import" href="/lib/polymer/0.5.2/polymer/polymer.html">
7 <link rel="import" href="/lib/polymer/0.5.2/core-ajax/core-ajax.html"> 7 <link rel="import" href="/lib/polymer/0.5.2/core-ajax/core-ajax.html">
8 <link rel="import" href="/lib/polymer/0.5.2/paper-button/paper-button.html">
9 <link rel="import" href="/lib/polymer/0.5.2/core-resizable/core-resizable.html">
10 <link rel="import" href="/room/ari/static/rdf-observe.html"> 8 <link rel="import" href="/room/ari/static/rdf-observe.html">
11 <link rel="import" href="/room/ari/static/rdf-oneshot.html"> 9 <link rel="import" href="/room/ari/static/rdf-oneshot.html">
12 <link rel="import" href="static/output-widgets.html"> 10 <link rel="import" href="static/output-widgets.html">
13 11
14 <style> 12 <style>
67 <h2>Devices</h2> 65 <h2>Devices</h2>
68 <ul> 66 <ul>
69 <template repeat="{{dev in board.devices}}"> 67 <template repeat="{{dev in board.devices}}">
70 <div class="device"> 68 <div class="device">
71 <h1> 69 <h1>
72 Device <linked-uri href="{{dev.uri}}"></linked-uri> 70 {{dev.className}}
73 (class {{dev.className}}) 71 <linked-uri href="{{dev.uri}}"></linked-uri>
74 </h1> 72 </h1>
75 <div>watching:</div>
76 <ul>
77 <template repeat="{{prefix in dev.watchPrefixes}}">
78 <div>{{prefix[0]}}, {{prefix[1]}}, ?obj</div>
79 </template>
80 </ul>
81 73
82 <div>send output:</div> 74 <template if="{{dev.watchPrefixes.length}}">
83 <ul> 75 <div>watching:</div>
84 <template repeat="{{out in dev.outputWidgets}}"> 76 <ul>
85 <div> 77 <template repeat="{{prefix in dev.watchPrefixes}}">
86 <output-widget-any desc="{{out}}"></output-widget-any> 78
87 </div> 79 <!--
88 </template> 80 <rdf-observe
89 </ul> 81 graph="http://dash:9059/graph" xtodo="get host here"
82 subject="{{prefix[0]}}"
83 predicate="{{prefix[1]}}"
84 out="{{out}}">
85 </rdf-observe>
86
87 <div>{{prefix[0]}}, {{prefix[1]}}, {{out['room:temperatureF']['@value']}}</div>
88 -->
89 </template>
90 </ul>
91 </template>
92
93 <template if="{{dev.outputWidgets.length}}">
94 <div>send output:</div>
95 <ul>
96 <template repeat="{{out in dev.outputWidgets}}">
97 <div>
98 <output-widget-any desc="{{out}}"></output-widget-any>
99 </div>
100 </template>
101 </ul>
102 </template>
90 </div> 103 </div>
91 </template> 104 </template>
92 </ul> 105 </ul>
93
94 </div> 106 </div>
95 </template> 107 </template>
96 </template> 108 </template>
97
98 </polymer-element> 109 </polymer-element>
99 <arduinonode-boards></arduinonode-boards> 110 <arduinonode-boards></arduinonode-boards>
100
101 111
102 <polymer-element name="data-dump" noscript> 112 <polymer-element name="data-dump" noscript>
103 <template> 113 <template>
104 <rdf-observe 114 <rdf-observe
105 graph="http://bang:9059/graph" 115 graph="http://dash:9059/graph"
106 subject="sensor:motion0" 116 subject="http://bigasterisk.com/homeauto/board1/oneWire/"
107 predicate="room:sees" 117 predicate="room:temperatureF"
108 out="{{out}}"> 118 out="{{out}}">
109 </rdf-observe> 119 </rdf-observe>
110 <div>sees: {{out['room:sees']}}</div> 120 <div>sees: {{out['room:temperatureF']['@value']}}</div>
121
122
123 <rdf-observe
124 graph="http://dash:9059/graph"
125 subject="http://bigasterisk.com/homeauto/board1/oneWire/"
126 predicate="http://projects.bigasterisk.com/room/temperatureRetries"
127 out="{{out2}}">
128 </rdf-observe>
129 <div>sees2: {{out2['room:temperatureRetries']['@value']}}</div>
130
111 </template> 131 </template>
112 </polymer-element> 132 </polymer-element>
113 <!-- <data-dump></data-dump> --> 133 <!-- <data-dump></data-dump> -->
114 </body> 134 </body>
115 </html> 135 </html>