-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathray.html
124 lines (95 loc) · 5.49 KB
/
ray.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{% extends "ohaut_base.html" %}
{% block head_extra %}
{% endblock %}
{% block tabs %}
<li class="active"><a data-toggle="tab" href="#lamp" aria-controls="lamp">Lamp</a></li>
<li><a data-toggle="tab" href="#lamp-publishing" aria-controls="lamp-publishing">Lamp publishing</a></li>
{% endblock %}
{% block tab_panes %}
<div role="tabpanel" class="tab-pane fade in active" id="lamp">
<h1>Current lamp values</h1>
<div class="form-group"> <label class="col-sm-3 control-label">CH0</label><div class="col-sm-7">
<div id="ch0_slider"></div>
</div></div>
<div class="form-group"><label class="col-sm-3 control-label">CH1</label><div class="col-sm-7">
<div id="ch1_slider"></div>
</div></div>
<div class="form-group"><label class="col-sm-3 control-label">CH2</label><div class="col-sm-7">
<div id="ch2_slider"></div>
</div></div>
<div class="form-group"><label class="col-sm-3 control-label">ALL</label><div class="col-sm-7">
<div id="all_slider"></div>
</div></div>
<h1>Lamp startup settings (0-100)</h1>
<div class="form-group"><label for="startup_val_l0" class="col-sm-3 control-label">Channel 0</label><div class="col-sm-7">
<input class="form-control" name="startup_val_l0" value=''>
</div></div>
<div class="form-group"><label for="startup_val_l1" class="col-sm-3 control-label">Channel 1</label><div class="col-sm-7">
<input class="form-control" name="startup_val_l1" value=''>
</div></div>
<div class="form-group"><label for="startup_val_l2" class="col-sm-3 control-label">Channel 2</label><div class="col-sm-7">
<input class="form-control" name="startup_val_l2" value=''>
</div></div>
<h1>Lamp startup</h1>
<div class="form-group">
<label for="startup_mode" class="col-sm-3 control-label">mode</label>
<div class="col-sm-7">
<select class="form-control" name="startup_mode" id="startup_mode" aria-describedby="startup_mode_help">
<option value="0">OFF</option>
<option value="1">ON</option>
<option value="2">Use P Switch input</option>
<option value="3">OFF (P is a push button)</option>
<option value="4">ON (P is a push button)</option>
</select>
<small id="startup_mode_help" class="form-text text-muted">
The lamp startup mode controls what happens when the lamp is powered on. <b>OFF</b> will
turn the lamp off, <b>ON</b> will turn the lamp on, and <b>Use P Switch input</b> will
use the P input to determine the lamp state. <b>OFF (P is a push button)</b> and
<b>ON (P is a push button)</b> will start OFF or ON, but will toggle the lamp state
when the P input is pressed.
</small>
</div>
</div>
<h1>Lamp "all" mode</h1>
<div class="form-group">
<label for="all_mode" class="col-sm-3 control-label">mode</label>
<div class="col-sm-7">
<select class="form-control" name="all_mode" id="all_mode" aria-describedby="all_mode_help">
<option value="0">Proportional</option>
<option value="1">Max out</option>
</select>
<small id="all_mode_help" class="form-text text-muted">
The lamp all slider controls the 0..2 channels from a single point. This options controls how
100% on lamp "all" works. <b>Proportional</b> will maintain the proportion of channels configured
on the startup settings, while <b>Max out</b> will ensure light is maximized at 100%.
</small>
</div>
</div>
<div class="col-sm-7"><br/></div>
<button type="submit" class="btn btn-primary">Save and Reboot</button>
</div>
<div role="tabpanel" class="tab-pane fade in" id="lamp-publishing">
<h1>Lamp Publishing</h1>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="pub_l0_bool" name="pub_l0_bool" value="true">
<label for="pub_l0_bool" class="form-check-label">Publish individual L0 channel</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="pub_l1_bool" name="pub_l1_bool" value="true">
<label for="pub_l1_bool" class="form-check-label">Publish individual L1 channel</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="pub_l2_bool" name="pub_l2_bool" value="true">
<label for="pub_l2_bool" class="form-check-label">Publish individual L2 channel</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="pub_all_bool" name="pub_all_bool" value="true">
<label for="pub_all_bool" class="form-check-label">Publish aggregated ALL channel</label>
</div>
<div class="col-sm-7"><br/></div>
<button type="submit" class="btn btn-primary">Save and Reboot</button>
</div>
{% endblock %}
{% block javascript_imports %}
<script src="js/ray.js"></script>
{% endblock %}