Mercurial > code > home > repos > homeauto
annotate service/rdf_to_mqtt/index.html @ 1744:09df2b4b886f
deployment
author | drewp@bigasterisk.com |
---|---|
date | Thu, 09 Nov 2023 17:21:33 -0800 |
parents | 6b80a6c58907 |
children |
rev | line source |
---|---|
778
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
1 <!DOCTYPE html> |
586 | 2 <html> |
3 <head> | |
789 | 4 <title>rdf_to_mqtt</title> |
5 <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
6 <meta name="mobile-web-app-capable" content="yes" /> | |
7 <meta name="apple-mobile-web-app-capable" content="yes" /> | |
8 | |
778
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
9 <meta charset="utf-8" /> |
695
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
10 <script src="/lib/polymer/1.0.9/webcomponentsjs/webcomponents.min.js"></script> |
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
11 <script src="/lib/require/require-2.3.3.js"></script> |
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
12 <script src="/rdf/common_paths_and_ns.js"></script> |
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
13 |
778
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
14 <link rel="stylesheet" href="/rdf/browse/style.css" /> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
15 <style> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
16 button { |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
17 min-height: 50px; |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
18 } |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
19 section { |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
20 margin: 5px; |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
21 display: inline-block; |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
22 vertical-align: top; |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
23 } |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
24 </style> |
586 | 25 </head> |
695
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
26 <body class="rdfBrowsePage"> |
739 | 27 rdf_to_mqtt |
695
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
28 |
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
29 <p>Send demo statements to bridge:</p> |
778
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
30 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
31 <div><button data-post="output?s=:kitchenLight&p=:brightness" data-body="0.0">Send (:kitchenLight :brightness 0.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
32 <div><button data-post="output?s=:kitchenLight&p=:brightness" data-body="1.0">Send (:kitchenLight :brightness 1.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
33 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
34 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
35 <div><button data-post="output?s=:kitchenCounterLight&p=:brightness" data-body="0.0">Send (:kitchenCounterLight :brightness 0.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
36 <div><button data-post="output?s=:kitchenCounterLight&p=:brightness" data-body="1.0">Send (:kitchenCounterLight :brightness 1.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
37 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
38 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
39 <div><button data-post="output?s=:livingLampShelf&p=:brightness" data-body="0.0">Send (:livingLampShelf :brightness 0.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
40 <div><button data-post="output?s=:livingLampShelf&p=:brightness" data-body="1.0">Send (:livingLampShelf :brightness 1.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
41 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
42 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
43 <div><button data-post="output?s=:livingLampMantleEntry&p=:brightness" data-body="0.0">Send (:livingLamp1 :brightness 0.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
44 <div><button data-post="output?s=:livingLampMantleEntry&p=:brightness" data-body="1.0">Send (:livingLamp1 :brightness 1.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
45 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
46 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
47 <div><button data-post="output?s=:livingLampMantleChair&p=:brightness" data-body="0.0">Send (:livingLamp2 :brightness 0.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
48 <div><button data-post="output?s=:livingLampMantleChair&p=:brightness" data-body="1.0">Send (:livingLamp2 :brightness 1.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
49 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
50 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
51 <div><button data-post="output?s=:livingLampToyShelf&p=:brightness" data-body="0.0">Send (:livingLamp3 :brightness 0.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
52 <div><button data-post="output?s=:livingLampToyShelf&p=:brightness" data-body="1.0">Send (:livingLamp3 :brightness 1.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
53 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
54 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
55 <div><button data-post="output?s=:livingLampPiano&p=:brightness" data-body="0.0">Send (:livingLamp4 :brightness 0.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
56 <div><button data-post="output?s=:livingLampPiano&p=:brightness" data-body="1.0">Send (:livingLamp4 :brightness 1.0)</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
57 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
58 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
59 <div><button data-post="output?s=:theater&p=:inputSelector" data-body="bd">Theater to chromecast</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
60 <div><button data-post="output?s=:theater&p=:inputSelector" data-body="game">Theater to PS4</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
61 <div><button data-post="output?s=:theater&p=:inputSelector" data-body="pc">Theater to VR</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
62 <div><button data-post="output?s=:theater&p=:inputSelector" data-body="cbl">Theater to PS3</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
63 <div><button data-post="output?s=:theater&p=:volumeChange" data-body="3">Theater volume up</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
64 <div><button data-post="output?s=:theater&p=:volumeChange" data-body="-3">Theater volume down</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
65 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
66 <section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
67 <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#ffffff">headboard white</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
68 <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#000000">headboard black</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
69 <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#ff0000">headboard red</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
70 <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#00ff00">headboard green</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
71 <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#0000ff">headboard blue</button></div> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
72 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
73 <section> |
1685 | 74 <div><button data-post="output?s=:asherBedBar&p=:color" data-body="#ffffff">asher bed bar white</button></div> |
75 <div><button data-post="output?s=:asherBedBar&p=:color" data-body="#000000">asher bed bar black</button></div> | |
76 <div><button data-post="output?s=:asherBedBar&p=:color" data-body="#ff0000">asher bed bar red 1</button></div> | |
77 <div><button data-post="output?s=:asherBedBar&p=:color" data-body="#880000">asher bed bar red .5</button></div> | |
78 <div><button data-post="output?s=:asherBedBar&p=:color" data-body="#440000">asher bed bar red .25</button></div> | |
79 <div><button data-post="output?s=:asherBedBar&p=:color" data-body="#00ff00">asher bed bar green</button></div> | |
80 <div><button data-post="output?s=:asherBedBar&p=:color" data-body="#0000ff">asher bed bar blue</button></div> | |
81 </section> | |
82 <section> | |
789 | 83 <div><button data-post="output?s=:frontRoom1&p=:color" data-body="0*3200K">Send (:frontRoom1 :color black)</button></div> |
84 <div><button data-post="output?s=:frontRoom1&p=:color" data-body="1*3200K">Send (:frontRoom1 :color white)</button></div> | |
85 </section> | |
86 <section> | |
87 <div><button data-post="output?s=:frontRoom2&p=:color" data-body="0*3200K">Send (:frontRoom2 :color black)</button></div> | |
88 <div><button data-post="output?s=:frontRoom2&p=:color" data-body="1*3200K">Send (:frontRoom2 :color white)</button></div> | |
778
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
89 </section> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
90 <section> |
1685 | 91 <div><button data-post="output?s=:asherCeiling&p=:color" data-body="0*3200K">Send (:asherCeiling :color black)</button></div> |
92 <div><button data-post="output?s=:asherCeiling&p=:color" data-body=".2*3200K">asherCeiling dim </button></div> | |
93 <div><button data-post="output?s=:asherCeiling&p=:color" data-body="1*3200K">Send (:asherCeiling :color white)</button></div> | |
94 </section> | |
95 <section> | |
96 <div><button data-post="output?s=:noname1&p=:color" data-body="0*3200K">Send (:noname1 :color black)</button></div> | |
97 <div><button data-post="output?s=:noname1&p=:color" data-body="1*3200K">Send (:noname1 :color white)</button></div> | |
98 </section> | |
99 <section> | |
100 <div><button data-post="output?s=:noname2&p=:color" data-body="0*3200K">Send (:noname2 :color black)</button></div> | |
101 <div><button data-post="output?s=:noname2&p=:color" data-body="1*3200K">Send (:noname2 :color white)</button></div> | |
102 </section> | |
103 <section> | |
104 <div><button data-post="output?s=:noname3&p=:color" data-body="0*3200K">Send (:noname3 :color black)</button></div> | |
105 <div><button data-post="output?s=:noname3&p=:color" data-body="1*3200K">Send (:noname3 :color white)</button></div> | |
106 </section> | |
107 <section> | |
108 <div><button data-post="output?s=:noname4&p=:color" data-body="0*3200K">Send (:noname4 :color black)</button></div> | |
109 <div><button data-post="output?s=:noname4&p=:color" data-body="1*3200K">Send (:noname4 :color white)</button></div> | |
110 </section> | |
111 | |
112 <section> | |
789 | 113 <div><button data-post="output?s=:stairTop&p=:color" data-body="0*2200K">Send (:stairTop :color black)</button></div> |
114 <div><button data-post="output?s=:stairTop&p=:color" data-body="1*200K">Send (:stairTop :color white 200K)</button></div> | |
115 <div><button data-post="output?s=:stairTop&p=:color" data-body="1*1200K">Send (:stairTop :color white)</button></div> | |
116 <div><button data-post="output?s=:stairTop&p=:color" data-body="1*2200K">Send (:stairTop :color white)</button></div> | |
117 <div><button data-post="output?s=:stairTop&p=:color" data-body="1*3200K">Send (:stairTop :color white)</button></div> | |
118 <div><button data-post="output?s=:stairTop&p=:color" data-body="1*4200K">Send (:stairTop :color white)</button></div> | |
119 <div><button data-post="output?s=:stairTop&p=:color" data-body="1*5200K">Send (:stairTop :color white)</button></div> | |
120 <div><button data-post="output?s=:stairTop&p=:color" data-body="1*6200K">Send (:stairTop :color white 6200K)</button></div> | |
121 <hr> | |
122 <div><button data-post="output?s=:stairTop&p=:color" data-body="0.8*3200K">Send (:stairTop :color white*.8)</button></div> | |
123 <div><button data-post="output?s=:stairTop&p=:color" data-body="0.6*3200K">Send (:stairTop :color white*.6)</button></div> | |
124 <div><button data-post="output?s=:stairTop&p=:color" data-body="0.4*3200K">Send (:stairTop :color white*.4)</button></div> | |
125 <div><button data-post="output?s=:stairTop&p=:color" data-body="0.2*3200K">Send (:stairTop :color white*.2)</button></div> | |
126 | |
778
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
127 </section> |
776 | 128 |
695
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
129 <script> |
778
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
130 Array.from(document.querySelectorAll("button")).forEach((el) => { |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
131 el.addEventListener("click", (ev) => { |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
132 fetch(el.dataset.post, { |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
133 method: "PUT", |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
134 body: el.dataset.body, |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
135 }); |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
136 }); |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
137 }); |
695
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
138 </script> |
80f6b3ee9c7f
tester page that can PUT some statements
drewp@bigasterisk.com
parents:
586
diff
changeset
|
139 |
778
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
140 <div class="served-resources"> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
141 <a href="stats/">/stats/</a> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
142 <a href="output">/output (post)</a> |
acf58b83022f
rdf_to_mqtt sylvania bulbs and code cleanup and k8s updates
drewp@bigasterisk.com
parents:
776
diff
changeset
|
143 </div> |
586 | 144 </body> |
145 </html> |