annotate service/arduinoNode/static/index.html @ 975:f3023410d875

polymer board debug page with working output widgets Ignore-this: 3157d0c47a91afe47b30a5f182629d93 darcs-hash:20150414063012-312f9-69ac15a9c7bab2b3b5ca00142fe4435ded7d6d0f
author drewp <drewp@bigasterisk.com>
date Mon, 13 Apr 2015 23:30:12 -0700
parents
children 4d2df276baae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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="/lib/polymer/0.5.2/paper-button/paper-button.html">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
9 <link rel="import" href="/lib/polymer/0.5.2/core-resizable/core-resizable.html">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
10 <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
11 <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
12 <link rel="import" href="static/output-widgets.html">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
13
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
14 <style>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
15 body {
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
16 font-family: monospace;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
17 }
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
18 </style>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
19 </head>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
20 <body layout vertical fullbleed>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
21 <script>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
22 window.NS = {
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
23 dev: 'http://projects.bigasterisk.com/device/',
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
24 room: 'http://projects.bigasterisk.com/room/',
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
25 rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
26 };
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
27 </script>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
28
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
29 <polymer-element name="linked-uri" noscript attributes="href">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
30 <template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
31 <a href="{{href}}">{{href}}</a>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
32 </template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
33 </polymer-element>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
34
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
35 <polymer-element name="arduinonode-boards" noscript>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
36 <template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
37 <style>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
38 h1 {
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
39 margin: 0;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
40 font-size: 130%;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
41 }
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
42 ul {
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
43 padding-left: 5px;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
44 }
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
45 .board, .device {
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
46 border: 1px solid gray;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
47 border-radius: 10px;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
48 margin: 13px;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
49 padding: 7px;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
50 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
51 }
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
52 .board {
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
53 background: rgb(244, 244, 244);
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
54 }
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
55 .device {
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
56 background: #fff;
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
57 }
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
58 </style>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
59 <core-ajax
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
60 url="boards"
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
61 auto="true"
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
62 handleAs="json"
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
63 response="{{ret}}"></core-ajax>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
64 <template repeat="{{board in ret.boards}}">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
65 <div class="board">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
66 <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
67 <h2>Devices</h2>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
68 <ul>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
69 <template repeat="{{dev in board.devices}}">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
70 <div class="device">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
71 <h1>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
72 Device <linked-uri href="{{dev.uri}}"></linked-uri>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
73 (class {{dev.className}})
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
74 </h1>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
75 <div>watching:</div>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
76 <ul>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
77 <template repeat="{{prefix in dev.watchPrefixes}}">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
78 <div>{{prefix[0]}}, {{prefix[1]}}, ?obj</div>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
79 </template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
80 </ul>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
81
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
82 <div>send output:</div>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
83 <ul>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
84 <template repeat="{{out in dev.outputWidgets}}">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
85 <div>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
86 <output-widget-any desc="{{out}}"></output-widget-any>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
87 </div>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
88 </template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
89 </ul>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
90 </div>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
91 </template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
92 </ul>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
93
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
94 </div>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
95 </template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
96 </template>
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 </polymer-element>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
99 <arduinonode-boards></arduinonode-boards>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
100
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
101
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
102 <polymer-element name="data-dump" noscript>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
103 <template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
104 <rdf-observe
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
105 graph="http://bang:9059/graph"
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
106 subject="sensor:motion0"
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
107 predicate="room:sees"
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
108 out="{{out}}">
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
109 </rdf-observe>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
110 <div>sees: {{out['room:sees']}}</div>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
111 </template>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
112 </polymer-element>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
113 <!-- <data-dump></data-dump> -->
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
114 </body>
f3023410d875 polymer board debug page with working output widgets
drewp <drewp@bigasterisk.com>
parents:
diff changeset
115 </html>