homebridge-cmd4 6.0.0-beta.1 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics too!!
2
- ## 6.0.0 (2021-09-27)
2
+ ## 6.0.0 (2021-10-01)
3
3
 
4
4
  ##### New Features
5
5
 
@@ -22,6 +22,7 @@ Finally
22
22
  John Talbot
23
23
 
24
24
 
25
+ * Schema Prep - Found in Beta Check case of type ([9a394de0](https://github.com/ztalbot2000/homebridge-cmd4/commit/9a394de020b2ccf67a9c30194163807ea3a226a9))
25
26
  * Schema Prep - More documentation changes ([c6d68f1f](https://github.com/ztalbot2000/homebridge-cmd4/commit/c6d68f1f8a7c24e786a54dbf1660dba98a5d1b6a))
26
27
  * Schema Prep - Documentation changes for feat ([5be7393d](https://github.com/ztalbot2000/homebridge-cmd4/commit/5be7393d4b722c602862a382b1bd710556ff196a))
27
28
  * Schema Prep. More fakegato testing, Make cmd4Dbg not be file global scope ([50355797](https://github.com/ztalbot2000/homebridge-cmd4/commit/503557973758fd4103ab13f34680a4f08eaed3c2))
package/Cmd4Accessory.js CHANGED
@@ -34,6 +34,7 @@ var { transposeConstantToValidValue,
34
34
  let isJSON = require( "./utils/isJSON" );
35
35
  let isCmd4Directive = require( "./utils/isCmd4Directive" );
36
36
  let isAccDirective = require( "./utils/isAccDirective" );
37
+ let isDevDirective = require( "./utils/isDevDirective" );
37
38
 
38
39
  // Pretty Colors
39
40
  var chalk = require( "chalk" );
@@ -1526,9 +1527,24 @@ class Cmd4Accessory
1526
1527
  switch ( key )
1527
1528
  {
1528
1529
  case constants.TYPE:
1530
+ {
1529
1531
  this.type = value;
1532
+ let rcValue = isDevDirective( value, false );
1533
+ if ( rcValue.devEnumIndex == null )
1534
+ {
1535
+ rcValue = isDevDirective( value, true );
1536
+ if ( rcValue.devEnumIndex == null )
1537
+ throw new Error( `Unknown device type: "${ value }" given in: "${ this.displayName }".` );
1538
+
1539
+ // warn now
1540
+ this.log.warn( `The config.json Cmd4 device type: ${ value } is lowerCase. It should be: ${ rcValue.deviceName }. In the near future this will be an error for homebridge-ui integration.\nTo remove this Warning, Please fix your config.json.` );
1541
+
1542
+ this.type = rcValue.deviceName;
1543
+ }
1544
+ this.typeIndex = rcValue.devEnumIndex;
1530
1545
 
1531
1546
  break;
1547
+ }
1532
1548
  case constants.SUBTYPE:
1533
1549
  this.subType = value;
1534
1550
 
@@ -1714,11 +1730,9 @@ class Cmd4Accessory
1714
1730
  this.log.warn( `To remove this message, just remove "Cmd4_Mode" from your config.json` );
1715
1731
  }
1716
1732
 
1717
- this.typeIndex = CMD4_DEVICE_TYPE_ENUM.indexOfEnum( this.type );
1718
- if ( this.typeIndex < 0 )
1733
+ // A device type must be specified
1734
+ if ( this.typeIndex == undefined || this.typeIndex < 0 )
1719
1735
  throw new Error( `Unknown device type: "${ this.type }" given in: "${ this.displayName }".` );
1720
- // Sad we have to upper case this
1721
- this.type = CMD4_DEVICE_TYPE_ENUM.devEnumIndexToC( this.typeIndex );
1722
1736
 
1723
1737
  // Create a subType to delimit services with multiple accessories of
1724
1738
  // the same type and possibly the same accessory.name.
package/README.md CHANGED
@@ -82,7 +82,7 @@ See [homebridge](https://github.com/homebridge/homebridge) for complete details.
82
82
  &nbsp;&nbsp;&nbsp; Use the provided config.json file or add it to your own.
83
83
 
84
84
  ```bash
85
- *SHELL*> cp /usr/lib/node_modules/homebridge-cmd4/Extras/config.json $HOME/.homebridge/
85
+ *SHELL*> cp /usr/local/lib/node_modules/homebridge-cmd4/Extras/config.json $HOME/.homebridge/
86
86
  ```
87
87
 
88
88
 
@@ -3,6 +3,7 @@
3
3
  ## Homebridge UI User. Do not click on any inline links. Homebridge UI does not supprt them. Bug#1098
4
4
 
5
5
  ## ChangeLog
6
+ * <a href="#Whats-new-in-6-0-0">**Whats new in 6.0.0**</a>
6
7
  * <a href="#Whats-new-in-6-0-0-beta1">**Whats new in 6.0.0.beta1**</a>
7
8
  * <a href="#Whats-new-in-5-1-1">**Whats new in 5.1.1**</a>
8
9
  * <a href="#Whats-new-in-5-1-0">**Whats new in 5.1.0**</a>
@@ -74,8 +75,13 @@
74
75
  * <a href="#Whats-new-in-2-1">**Whats new in 2.1**</a>
75
76
  * <a href="#Whats-new-in-2-0">**Whats new in 2.0**</a>
76
77
 
78
+ <a name="Whats-new-in-6-0-0">## Whats new in 6.0.0</a>
79
+ ## 6.0.0 (2021-10-01)
80
+
81
+ * Schema Prep - Found in Beta Check case of type ([9a394de0](https://github.com/ztalbot2000/homebridge-cmd4/commit/9a394de020b2ccf67a9c30194163807ea3a226a9))
82
+
77
83
  <a name="Whats-new-in-6-0-0-beta1">## Whats new in 6.0.0-beta1</a>
78
- ## 6.0.0 (2021-09-27)
84
+ ## 6.0.0-beta1 (2021-09-27)
79
85
 
80
86
  ##### New Features
81
87
 
@@ -0,0 +1,248 @@
1
+ <link rel="stylesheet" href="css/style.css">
2
+
3
+ <div id="main" class="card card-body pb-5">
4
+
5
+ <!-- start -->
6
+ <div id="start">
7
+ <img src="images/Cmd4_icon.svg" alt="Scripting with Cmd4 for Homebridge" width="150px" class="center-it cmd4Logo">
8
+ <h3 class="text-center">Welcome to <br> <b style="font-weight: 800;">Cmd4 Platform</b></h3>
9
+ <h6 class="text-center">Cmd4 Homebridge plugin for Scripting</h6>
10
+ <button id="startButton" type="submit" class="btn btn-primary center-it mt-3">Start</button>
11
+ </div>
12
+
13
+ <!-- newAccessory -->
14
+ <div id="newAccessory" style="display:none;">
15
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
16
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
17
+ </button>
18
+ <button type="submit" class="btn btn-primary float-right showConfigureGlobalsPageButton">
19
+ <i class="fa fa-globe fa-border" aria-hidden="true"></i>
20
+ </button>
21
+ <img src="images/Cmd4_icon.svg" alt="Scripting with Cmd4 for Homebridge" width="150px" class="center-it mt-4 cmd4Logo">
22
+ <h6 class="text-center">To start the process, we need some data for the accessory. <br> Please fill out all marked fields.</h6>
23
+ <div class="container mt-5">
24
+ <div class="form-group">
25
+ <label for="accessoryType">Type <span class="text-danger">*</span> </label>
26
+ <select name="accessoryTypeSelect" class="form-control" id="accessoryTypeSelect">
27
+ </select>
28
+ </div>
29
+ <div class="form-group">
30
+ <label for="accessoryName">Name <span class="text-danger">*</span> </label>
31
+ <input type="text" class="form-control" id="accessoryName">
32
+ </div>
33
+ <div class="form-group">
34
+ <label for="polling">Polling <span class="text-danger">*</span> </label>
35
+ <input type="checkbox" class="form-control" id="polling">
36
+ </div>
37
+ <div class="form-group">
38
+ <label for="accessoryCharacteristics">Accessory Characteristics<span class="text-danger">*</span> </label>
39
+ <input type="text" class="form-control" id="accessoryCharacteristics">
40
+ </div>
41
+ <button id="auth" type="submit" class="btn btn-primary float-right mt-3 mr-0">Next</button>
42
+ </div>
43
+ </div>
44
+
45
+ <!-- selectExistingAccessory -->
46
+ <div id="selectExistingAccessory" style="display:none;">
47
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
48
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
49
+ </button>
50
+ <button type="submit" class="btn btn-primary float-right showConfigureGlobalsPageButton">
51
+ <i class="fa fa-globe fa-border" aria-hidden="true"></i>
52
+ </button>
53
+ <img src="images/HB_Cmd4.png" alt="Scripting with Cmd4 for Homebridge" width="150px" class="center-it cmd4Logo">
54
+ <h3 class="text-center"><span style="font-size: 20px">Welcome to</span> <br> <b style="font-weight: 800;">Cmd4 Platform</b></h3>
55
+ <h6 class="text-center">Cmd4 Homebridge plugin for Scripting</h6>
56
+ <div class="container mt-4" style="max-width: 360px;">
57
+ <div class="form-row">
58
+ <div class="col-10">
59
+ <select class="custom-select" id="accessorySelect"></select>
60
+ </div>
61
+ <div class="col-2">
62
+ <button id="editAccessory" type="submit" class="btn btn-elegant m-0">
63
+ <i class="fas fa-edit"></i>
64
+ </button>
65
+ </div>
66
+ </div>
67
+ <div class="d-flex justify-content-center mt-4">
68
+ <a href="#" id="addAccessory" class="d-flex justify-content-center align-items-center btn-primary addBtn">
69
+ <i class="fas fa-plus"></i>
70
+ </a>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <!-- accessoryGlobals -->
76
+ <div id="accessoryGlobals" style="display:none;">
77
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
78
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
79
+ </button>
80
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Icon" width="150px" class="center-it mt-4 cmd4Logo">
81
+ <h6 class="text-center">Accessory Globals<br> The defaults are pre-defined. Press back to continue.</h6>
82
+ <div class="container mt-5">
83
+ </div>
84
+ </div>
85
+
86
+ <!-- queueGlobalsPage -->
87
+ <div id="queueGlobalsPage" style="display:none;">
88
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
89
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
90
+ </button>
91
+ <img src="images/Cmd4_icon.svg" alt="Queue Globals Page" width="150px" class="center-it mt-4 cmd4Logo">
92
+ <h6 class="text-center">Queue Globals<br> Polling queues are done by default via interval. Queues allow finer controls like Worm or Sequential.</h6>
93
+ <div class="container mt-4" style="max-width: 360px;">
94
+ <div class="form-row">
95
+ <h4 id="notusedyet" Queueclass="text-left">There are no defined global queues.</h4>
96
+ </div>
97
+ </div>
98
+ <a href="#" id="showQueueGlobalsPageButton" class="d-flex justify-content-center align-items-center btn-primary showQueueGlobalsPageButton">
99
+ <i class="fas fa-plus"></i>
100
+ </a>
101
+ </div>
102
+
103
+ <!-- requiredCharacteristics -->
104
+ <div id="requiredCharacteristics" style="display:none;">
105
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
106
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
107
+ </button>
108
+ <button type="submit" class="btn btn-primary float-right showConfigureGlobalsPageButton">
109
+ <i class="fa fa-globe fa-border" aria-hidden="true"></i>
110
+ </button>
111
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Globals" width="150px" class="center-it mt-4 cmd4Logo">
112
+ <h6 class="text-center">Required Characteristics<br> The defaults are pre-defined. Press back to continue.</h6>
113
+ <div class="container mt-5">
114
+ </div>
115
+ </div>
116
+
117
+ <!-- optionalCharacteristics -->
118
+ <div id="optionalCharacteristics" style="display:none;">
119
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
120
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
121
+ </button>
122
+ <button type="submit" class="btn btn-primary float-right showConfigureGlobalsPageButton">
123
+ <i class="fa fa-globe fa-border" aria-hidden="true"></i>
124
+ </button>
125
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Globals" width="150px" class="center-it mt-4 cmd4Logo">
126
+ <h6 class="text-center">Optional Characteristics<br> The defaults are pre-defined. Press back to continue.</h6>
127
+ <div class="container mt-5">
128
+ </div>
129
+ </div>
130
+
131
+ <!-- stateCmd -->
132
+ <div id="stateCmd" style="display:none;">
133
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
134
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
135
+ </button>
136
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Icon" width="150px" class="center-it mt-4 cmd4Logo">
137
+ <h6 class="text-center">Optional Characteristics<br> The defaults are pre-defined. Press back to continue.</h6>
138
+ <div class="container mt-5">
139
+ </div>
140
+ </div>
141
+
142
+
143
+
144
+ <!-- configureGlobals -->
145
+ <div id="configureGlobals" style="display:none;">
146
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
147
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
148
+ </button>
149
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Globals" width="150px" class="center-it mt-4 cmd4Logo">
150
+ <h6 class="text-center">Global Definitions<br> The defaults are pre-defined. Press back to continue.</h6>
151
+ <div class="container mt-5">
152
+ <div class="form-group">
153
+ <label for="debug">Debug <span class="text-danger">*</span> </label>
154
+ <input type="checkbox" class="form-control" id="debug">
155
+ </div>
156
+ <div class="form-group">
157
+ <label for="outputConstants">Output Constants<span class="text-danger">*</span>
158
+ </label>
159
+ <input type="checkbox" class="form-control" id="outputConstants">
160
+ </div>
161
+ <div class="form-group">
162
+ <label for="allowTLV8">Allow TLV8 Characteristics<span class="text-danger">*</span>
163
+ </label>
164
+ <input type="checkbox" class="form-control" id="allowTLV8">
165
+ </div>
166
+ <div class="form-group">
167
+ <label for="statusMsg">Show Status Messages in Logs<span class="text-danger">*</span>
168
+ </label>
169
+ <input type="checkbox" class="form-control" id="statusMsg" checked>
170
+ </div>
171
+ <div class="form-group">
172
+ <label for="timeout">Default polling timeout (sec)<span class="text-danger">*</span>
173
+ </label>
174
+ <input type="number" class="form-control" id="timeout" name="timeout" min="5" max="20" value="3">
175
+ </div>
176
+ <div class="form-group">
177
+ <label for="stateChangeResponseTime">Default State Change Response Time (sec)<span class="text-danger">*</span>
178
+ </label>
179
+ <input type="number" class="form-control" id="globalStateChangeResponseTime" name="globalStateChangeResponseTime" min="0" max="20" value="3">
180
+ </div>
181
+ <div class="form-group">
182
+ <label for="stateCmdPrefix">Default State Command Prefix to use<span class="text-danger">*</span>
183
+ </label>
184
+ <input type="string" class="form-control" id="globalStateCmdPrefix" name="globalStateCmdPrefix" value="">
185
+ </div>
186
+ <div class="form-group">
187
+ <label for="stateCmd">Default State Command to use<span class="text-danger">*</span>
188
+ </label>
189
+ <input type="string" class="form-control" id="globalStateCmd" name="globalStateCmd" value="">
190
+ </div>
191
+ <div class="form-group">
192
+ <label for="stateCmdSuffix">Default State Command Suffix to use<span class="text-danger">*</span>
193
+ </label>
194
+ <input type="string" class="form-control" id="globalStateCmdPrefix" name="globalStateCmdSuffix" value="">
195
+ </div>
196
+
197
+ <label>Pre-Defined Global Queues</label>
198
+
199
+ <div id="globalQueueMessage">
200
+ <label>There are no defined global queues.</label>
201
+ <h3 class="text-center">There are no defined global queues.</h3>
202
+ </div>
203
+ <div id="globalQueueContainer" class="container">
204
+ <div id="globalQueuesForm">
205
+ <div class="row no-gutters">
206
+ <div class="col">
207
+ <div class="card card-body text-success" style="visibility:hidden;">
208
+ <h5 class="card-title">Queue Name</h5>
209
+ </div>
210
+ </div>
211
+ <div class="col">
212
+ <div class="card card-body text-success">
213
+ <h5 class="card-title">Queue Name</h5>
214
+ </div>
215
+ </div>
216
+ <div class="col">
217
+ <div class="card card-body text-success">
218
+ <h5 class="card-title">Queue Type</h5>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ </div>
223
+
224
+ <div class="d-flex justify-content-center mt-4">
225
+ <a href="#" id="configureNewQueuePageButton" class="d-flex justify-content-center align-items-center btn-primary configureNewQueuePageButton">
226
+ <i class="fas fa-plus"></i>
227
+ </a>
228
+ </div>
229
+ </div>
230
+ <button id="configureGlobals" type="submit" class="btn btn-primary float-right mt-3 mr-0">Update</button>
231
+ </div>
232
+ </div>
233
+
234
+ </div>
235
+
236
+
237
+
238
+ </div>
239
+
240
+ <!-- Modules -->
241
+ <script type="text/javascript" src="js/modules/jquery.min.js"></script>
242
+
243
+ <!-- Custom Schema -->
244
+ <script type="text/javascript" src="js/schema.js?v=0.0.7"></script>
245
+
246
+ <!-- Main -->
247
+ <script type="text/javascript" src="js/main.js?v=0.0.7"></script>
248
+
@@ -0,0 +1,257 @@
1
+ <link rel="stylesheet" href="css/style.css">
2
+
3
+ <div id="main" class="card card-body pb-5">
4
+
5
+ <!-- start -->
6
+ <div id="start">
7
+ <img src="images/Cmd4_icon.svg" alt="Scripting with Cmd4 for Homebridge" width="150px" class="center-it cmd4Logo">
8
+ <h3 class="text-center">Welcome to <br> <b style="font-weight: 800;">Cmd4 Platform</b></h3>
9
+ <h6 class="text-center">Cmd4 Homebridge plugin for Scripting</h6>
10
+ <button id="startButton" type="submit" class="btn btn-primary center-it mt-3">Start</button>
11
+ </div>
12
+
13
+ <!-- newAccessory -->
14
+ <div id="newAccessory" style="display:none;">
15
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
16
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
17
+ </button>
18
+ <button type="submit" class="btn btn-primary float-right showConfigureGlobalsPageButton">
19
+ <i class="fa fa-globe fa-border" aria-hidden="true"></i>
20
+ </button>
21
+ <img src="images/Cmd4_icon.svg" alt="Scripting with Cmd4 for Homebridge" width="150px" class="center-it mt-4 cmd4Logo">
22
+ <h6 class="text-center">To start the process, we need some data for the accessory. <br> Please fill out all marked fields.</h6>
23
+ <div class="container mt-5">
24
+ <div class="form-group">
25
+ <label for="accessoryType">Type <span class="text-danger">*</span> </label>
26
+ <select name="accessoryTypeSelect" class="form-control" id="accessoryTypeSelect">
27
+ </select>
28
+ </div>
29
+ <div class="form-group">
30
+ <label for="accessoryName">Name <span class="text-danger">*</span> </label>
31
+ <input type="text" class="form-control" id="accessoryName">
32
+ </div>
33
+ <div class="form-group">
34
+ <label for="polling">Polling <span class="text-danger">*</span> </label>
35
+ <input type="checkbox" class="form-control" id="polling">
36
+ </div>
37
+ <div class="form-group">
38
+ <label for="accessoryCharacteristics">Accessory Characteristics<span class="text-danger">*</span> </label>
39
+ <input type="text" class="form-control" id="accessoryCharacteristics">
40
+ </div>
41
+ <button id="auth" type="submit" class="btn btn-primary float-right mt-3 mr-0">Next</button>
42
+ </div>
43
+ </div>
44
+
45
+ <!-- selectExistingAccessory -->
46
+ <div id="selectExistingAccessory" style="display:none;">
47
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
48
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
49
+ </button>
50
+ <button type="submit" class="btn btn-primary float-right showConfigureGlobalsPageButton">
51
+ <i class="fa fa-globe fa-border" aria-hidden="true"></i>
52
+ </button>
53
+ <img src="images/HB_Cmd4.png" alt="Scripting with Cmd4 for Homebridge" width="150px" class="center-it cmd4Logo">
54
+ <h3 class="text-center"><span style="font-size: 20px">Welcome to</span> <br> <b style="font-weight: 800;">Cmd4 Platform</b></h3>
55
+ <h6 class="text-center">Cmd4 Homebridge plugin for Scripting</h6>
56
+ <div class="container mt-4" style="max-width: 360px;">
57
+ <div class="form-row">
58
+ <div class="col-10">
59
+ <select class="custom-select" id="accessorySelect"></select>
60
+ </div>
61
+ <div class="col-2">
62
+ <button id="editAccessory" type="submit" class="btn btn-elegant m-0">
63
+ <i class="fas fa-edit"></i>
64
+ </button>
65
+ </div>
66
+ </div>
67
+ <div class="d-flex justify-content-center mt-4">
68
+ <a href="#" id="addAccessory" class="d-flex justify-content-center align-items-center btn-primary addBtn">
69
+ <i class="fas fa-plus"></i>
70
+ </a>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <!-- accessoryGlobals -->
76
+ <div id="accessoryGlobals" style="display:none;">
77
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
78
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
79
+ </button>
80
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Icon" width="150px" class="center-it mt-4 cmd4Logo">
81
+ <h6 class="text-center">Accessory Globals<br> The defaults are pre-defined. Press back to continue.</h6>
82
+ <div class="container mt-5">
83
+ </div>
84
+ </div>
85
+
86
+ <!-- queueGlobalsPage -->
87
+ <div id="queueGlobalsPage" style="display:none;">
88
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
89
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
90
+ </button>
91
+ <img src="images/Cmd4_icon.svg" alt="Queue Globals Page" width="150px" class="center-it mt-4 cmd4Logo">
92
+ <h6 class="text-center">Queue Globals<br> Polling queues are done by default via interval. Queues allow finer controls like Worm or Sequential.</h6>
93
+ <div class="container mt-4" style="max-width: 360px;">
94
+ <div class="form-row">
95
+ <h4 id="notusedyet" Queueclass="text-left">There are no defined global queues.</h4>
96
+ </div>
97
+ </div>
98
+ <a href="#" id="showQueueGlobalsPageButton" class="d-flex justify-content-center align-items-center btn-primary showQueueGlobalsPageButton">
99
+ <i class="fas fa-plus"></i>
100
+ </a>
101
+ </div>
102
+
103
+ <!-- requiredCharacteristics -->
104
+ <div id="requiredCharacteristics" style="display:none;">
105
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
106
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
107
+ </button>
108
+ <button type="submit" class="btn btn-primary float-right showConfigureGlobalsPageButton">
109
+ <i class="fa fa-globe fa-border" aria-hidden="true"></i>
110
+ </button>
111
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Globals" width="150px" class="center-it mt-4 cmd4Logo">
112
+ <h6 class="text-center">Required Characteristics<br> The defaults are pre-defined. Press back to continue.</h6>
113
+ <div class="container mt-5">
114
+ </div>
115
+ </div>
116
+
117
+ <!-- optionalCharacteristics -->
118
+ <div id="optionalCharacteristics" style="display:none;">
119
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
120
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
121
+ </button>
122
+ <button type="submit" class="btn btn-primary float-right showConfigureGlobalsPageButton">
123
+ <i class="fa fa-globe fa-border" aria-hidden="true"></i>
124
+ </button>
125
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Globals" width="150px" class="center-it mt-4 cmd4Logo">
126
+ <h6 class="text-center">Optional Characteristics<br> The defaults are pre-defined. Press back to continue.</h6>
127
+ <div class="container mt-5">
128
+ </div>
129
+ </div>
130
+
131
+ <!-- stateCmd -->
132
+ <div id="stateCmd" style="display:none;">
133
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
134
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
135
+ </button>
136
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Icon" width="150px" class="center-it mt-4 cmd4Logo">
137
+ <h6 class="text-center">Optional Characteristics<br> The defaults are pre-defined. Press back to continue.</h6>
138
+ <div class="container mt-5">
139
+ </div>
140
+ </div>
141
+
142
+
143
+
144
+ <!-- configureGlobals -->
145
+ <div id="configureGlobals" style="display:none;">
146
+ <button type="submit" class="btn btn-elegant backButton" style="position: absolute;">
147
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
148
+ </button>
149
+ <img src="images/Cmd4_icon.svg" alt="Cmd4 Globals" width="150px" class="center-it mt-4 cmd4Logo">
150
+ <h6 class="text-center">Global Definitions<br> The defaults are pre-defined. Press back to continue.</h6>
151
+ <div class="container mt-5">
152
+ <div class="form-group">
153
+ <label for="debug">Debug
154
+ </label>
155
+ <input type="checkbox" class="form-control" id="debug">
156
+ </div>
157
+ <div class="form-group">
158
+ <label for="outputConstants">Output Constants<span class="text-danger">*</span>
159
+ </label>
160
+ <input type="checkbox" class="form-control" id="outputConstants">
161
+ </div>
162
+ <div class="form-group">
163
+ <label for="allowTLV8">Allow TLV8 Characteristics<span class="text-danger">*</span>
164
+ </label>
165
+ <input type="checkbox" class="form-control" id="allowTLV8">
166
+ </div>
167
+ <div class="form-group">
168
+ <label for="statusMsg">Show Status Messages in Logs
169
+ </label>
170
+ <input type="checkbox" class="form-control" id="statusMsg" checked>
171
+ </div>
172
+ <div class="form-group">
173
+
174
+ <div class="col-xs-2">
175
+ <label for="globalTimeout">Default polling timeout</label>
176
+ <input class="form-control" id="globalTimeout" type="number" min="5" max="20" value="3">
177
+ </div>
178
+ </div>
179
+
180
+
181
+
182
+
183
+
184
+ <div class="form-group">
185
+ <label for="stateChangeResponseTime">Default State Change Response Time (sec)
186
+ </label>
187
+ <input type="number" class="form-control" id="globalStateChangeResponseTime" name="globalStateChangeResponseTime" min="0" max="20" value="3">
188
+ </div>
189
+ <div class="form-group">
190
+ <label for="stateCmdPrefix">Default State Command Prefix to use
191
+ </label>
192
+ <input type="string" class="form-control" id="globalStateCmdPrefix" name="globalStateCmdPrefix" value="">
193
+ </div>
194
+ <div class="form-group">
195
+ <label for="stateCmd">Default State Command to use
196
+ </label>
197
+ <input type="string" class="form-control" id="globalStateCmd" name="globalStateCmd" value="">
198
+ </div>
199
+ <div class="form-group">
200
+ <label for="stateCmdSuffix">Default State Command Suffix to use
201
+ </label>
202
+ <input type="string" class="form-control" id="globalStateCmdPrefix" name="globalStateCmdSuffix" value="">
203
+ </div>
204
+
205
+ <label>Pre-Defined Global Queues</label>
206
+
207
+ <div id="globalQueueMessage">
208
+ <label>There are no defined global queues.</label>
209
+ <h3 class="text-center">There are no defined global queues.</h3>
210
+ </div>
211
+
212
+ <div id="globalQueueContainer" class="container">
213
+ <div id="globalQueuesForm">
214
+ <div class="row no-gutters">
215
+ <div class="col">
216
+ <div class="card card-body text-success" style="visibility:hidden;">
217
+ <h5 class="card-title">Queue Name</h5>
218
+ </div>
219
+ </div>
220
+ <div class="col">
221
+ <div class="card card-body text-success">
222
+ <h5 class="card-title">Queue Name</h5>
223
+ </div>
224
+ </div>
225
+ <div class="col">
226
+ <div class="card card-body text-success">
227
+ <h5 class="card-title">Queue Type</h5>
228
+ </div>
229
+ </div>
230
+ </div>
231
+ </div>
232
+
233
+ <div class="d-flex justify-content-center mt-4">
234
+ <a href="#" id="configureNewQueuePageButton" class="d-flex justify-content-center align-items-center btn-primary configureNewQueuePageButton">
235
+ <i class="fas fa-plus"></i>
236
+ </a>
237
+ </div>
238
+ </div>
239
+ <button id="configureGlobals" type="submit" class="btn btn-primary float-right mt-3 mr-0">Update</button>
240
+ </div>
241
+ </div>
242
+
243
+ </div>
244
+
245
+
246
+
247
+ </div>
248
+
249
+ <!-- Modules -->
250
+ <script type="text/javascript" src="js/modules/jquery.min.js"></script>
251
+
252
+ <!-- Custom Schema -->
253
+ <script type="text/javascript" src="js/schema.js?v=0.0.7"></script>
254
+
255
+ <!-- Main -->
256
+ <script type="text/javascript" src="js/main.js?v=0.0.7"></script>
257
+