homebridge-cmd4 6.0.0 → 6.0.1

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.
@@ -1,244 +0,0 @@
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="globalQueueMessage" 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
- <div class="form-group">
197
- <label for="globalQueuesLabel">Pre-Defined Queues<span class="text-danger">*</span>
198
- </label>
199
- </div>
200
- <div class="container mt-4" style="max-width: 360px;">
201
- <div class="row form-group">
202
- <h3 id="globalQueueMessage" class="text-center">There are no defined global queues.</h3>
203
- </div>
204
- <div id="globalQueuesForm" class="col=12 globalQueuesForm" style="max-width:360px;">
205
- <div class="row justify-content-between">
206
- <div class="col-4" style="background-color:red;"></div>
207
- <div class="col-4" style="background-color:blue;">Queue Name</div>
208
- <div class="col-4" style="background-color:green;">queue Interval</div>
209
- </div>
210
-
211
- <div class="row justify-content-between">
212
- <button type="button" class="btn col-4 deleteQueueButton" value="queue1" style="background-color:red;">
213
- <i class="fa fa-trash" aria-hidden="true"></i>
214
- </button>
215
- <div class="col-4" style="background-color:blue;">queue1</div>
216
- <div class="col-4" style="background-color:green;">default</div>
217
- </div>
218
- </div>
219
-
220
- <div class="d-flex justify-content-center mt-4">
221
- <a href="#" id="configureNewQueuePageButton" class="d-flex justify-content-center align-items-center btn-primary configureNewQueuePageButton">
222
- <i class="fas fa-plus"></i>
223
- </a>
224
- </div>
225
- </div>
226
- <button id="configureGlobals" type="submit" class="btn btn-primary float-right mt-3 mr-0">Update</button>
227
- </div>
228
- </div>
229
-
230
- </div>
231
-
232
-
233
-
234
- </div>
235
-
236
- <!-- Modules -->
237
- <script type="text/javascript" src="js/modules/jquery.min.js"></script>
238
-
239
- <!-- Custom Schema -->
240
- <script type="text/javascript" src="js/schema.js?v=0.0.7"></script>
241
-
242
- <!-- Main -->
243
- <script type="text/javascript" src="js/main.js?v=0.0.7"></script>
244
-
@@ -1,194 +0,0 @@
1
- <p class="text-center">
2
- <img src="images/HB_Cmd4.png"
3
- alt="Scripting with Cmd4 for Homebridge"
4
- style="width: 60%;"
5
- />
6
- </p>
7
- <div id="pageIntro" class="text-center" style="display: none;">
8
- <p class="lead">Thank you for Cmd4 <strong>homebridge-Cmd4</strong></p>
9
- <p>Remember to click Save on the next page</p>
10
- <button type="button" class="btn btn-primary" id="introContinue">Continue &rarr;</button>
11
- </div>
12
- <div
13
- id="menuWrapper"
14
- class="btn-group w-100 mb-0"
15
- role="group"
16
- aria-label="UI Menu"
17
- style="display: none;"
18
- >
19
- <button type="button" class="btn btn-primary ml-0" id="menuSettings">Settings</button>
20
- <button type="button" class="btn btn-primary" id="menuDevices">My Devices</button>
21
- <button type="button" class="btn btn-primary mr-0" id="menuHome">Support</button>
22
- </div>
23
- <div
24
- id="disabledBanner"
25
- class="alert alert-secondary mb-0 mt-3"
26
- role="alert"
27
- style="display: none;"
28
- >
29
- Plugin is currently disabled
30
- <button id="disabledEnable" type="button" class="btn btn-link p-0 m-0 float-right">Enable</button>
31
- </div>
32
- <div id="pageDevices" class="mt-4" style="display: none;">
33
- <div id="deviceInfo">
34
- <form>
35
- <div class="form-group">
36
- <select class="form-control" id="deviceSelect"></select>
37
- </div>
38
- </form>
39
- <table class="table w-100" id="deviceTable" style="display: none;">
40
- <thead>
41
- <tr class="table-active">
42
- <th scope="col" style="width: 40%;">Device Name</th>
43
- <th scope="col" style="width: 60%;" id="displayName"></th>
44
- </tr>
45
- </thead>
46
- <tbody>
47
- <tr>
48
- <th scope="row">HTTP Status</th>
49
- <td id="http_status"></td>
50
- </tr>
51
- <tr>
52
- <th scope="row">UPnP Status</th>
53
- <td id="upnp_status"></td>
54
- </tr>
55
- <tr>
56
- <th scope="row">IP Address</th>
57
- <td id="ipAddress"></td>
58
- </tr>
59
- <tr>
60
- <th scope="row">Port</th>
61
- <td id="port"></td>
62
- </tr>
63
- <tr>
64
- <th scope="row">UPnP Info</th>
65
- <td id="upnpInfo"></td>
66
- </tr>
67
- <tr>
68
- <th scope="row">Serial Number</th>
69
- <td id="serialNumber"></td>
70
- </tr>
71
- <tr>
72
- <th scope="row">MAC Address</th>
73
- <td id="macAddress"></td>
74
- </tr>
75
- <tr>
76
- <th scope="row">Firmware</th>
77
- <td id="firmware"></td>
78
- </tr>
79
- <tr>
80
- <td colspan="2" style="text-align: center" id="imgIcon"></td>
81
- </tr>
82
- </tbody>
83
- </table>
84
- </div>
85
- </div>
86
- <div id="pageSupport" class="mt-4" style="display: none;">
87
- <p class="text-center lead">Thank you for using <strong>homebridge-Cmd4</strong></p>
88
- <p class="text-center">The links below will take you to our GitHub wiki</p>
89
- <h4>Setup</h4>
90
- <ul>
91
- <li>
92
- <a href="https://github.com/bwp91/homebridge-wemo/wiki/Installation" target="_blank"
93
- >Installation</a
94
- >
95
- </li>
96
- <li>
97
- <a href="https://github.com/bwp91/homebridge-wemo/wiki/Configuration" target="_blank"
98
- >Configuration</a
99
- >
100
- </li>
101
- <li>
102
- <a href="https://github.com/bwp91/homebridge-wemo/wiki/Beta-Version" target="_blank"
103
- >Beta Version</a
104
- >
105
- </li>
106
- <li>
107
- <a href="https://github.com/bwp91/homebridge-wemo/wiki/Node-Version" target="_blank"
108
- >Node Version</a
109
- >
110
- </li>
111
- <li>
112
- <a href="https://github.com/bwp91/homebridge-wemo/wiki/Uninstallation" target="_blank"
113
- >Uninstallation</a
114
- >
115
- </li>
116
- </ul>
117
- <h4>Features</h4>
118
- <ul>
119
- <li>
120
- <a href="https://github.com/bwp91/homebridge-wemo/wiki/Supported-Devices" target="_blank"
121
- >Supported Devices</a
122
- >
123
- </li>
124
- </ul>
125
- <h4>Help/About</h4>
126
- <ul>
127
- <li>
128
- <a href="https://github.com/bwp91/homebridge-wemo/wiki/Common-Errors" target="_blank"
129
- >Common Errors</a
130
- >
131
- </li>
132
- <li>
133
- <a href="https://github.com/bwp91/homebridge-wemo/issues/new/choose" target="_blank"
134
- >Support Request</a
135
- >
136
- </li>
137
- <li>
138
- <a href="https://github.com/bwp91/homebridge-wemo/blob/latest/CHANGELOG.md" target="_blank"
139
- >Changelog</a
140
- >
141
- </li>
142
- <li><a href="https://github.com/sponsors/bwp91" target="_blank">About Me</a></li>
143
- </ul>
144
- <h4>Credits</h4>
145
- <ul>
146
- <li>
147
- To the creator of this plugin:
148
- <a href="https://github.com/rudders" target="_blank">@rudders</a>, and to
149
- <a href="https://github.com/devbobo" target="_blank">@devbobo</a> for his contributions.
150
- </li>
151
- <li>
152
- To the creator of
153
- <a href="https://github.com/timonreinhard/wemo-client" target="_blank">wemo-client</a> (which
154
- is now contained within this plugin):
155
- <a href="https://github.com/timonreinhard" target="_blank">@timonreinhard</a>.
156
- </li>
157
- <li>
158
- To <a href="http://www.hardill.me.uk/wordpress/tag/wemo/" target="_blank">Ben Hardill</a> for
159
- his research on Wemo devices.
160
- </li>
161
- <li>To all users who have helped/tested to enable functionality for new devices.</li>
162
- <li>
163
- To the creators/contributors of
164
- <a href="https://github.com/simont77/fakegato-history" target="_blank">Fakegato</a>:
165
- <a href="https://github.com/simont77" target="_blank">@simont77</a> and
166
- <a href="https://github.com/NorthernMan54" target="_blank">@NorthernMan54</a>.
167
- </li>
168
- <li>
169
- To the creator of the awesome plugin header logo:
170
- <a href="https://www.instagram.com/keryan.me" target="_blank">Keryan Belahcene</a>.
171
- </li>
172
- <li>
173
- To the creators/contributors of
174
- <a href="https://homebridge.io" target="_blank">Homebridge</a> who make this plugin possible.
175
- </li>
176
- </ul>
177
- <h4>Disclaimer</h4>
178
- <ul>
179
- <li>
180
- I am in no way affiliated with Belkin/Wemo and this plugin is a personal project that I
181
- maintain in my free time.
182
- </li>
183
- <li>Use this plugin entirely at your own risk - please see licence for more information.</li>
184
- </ul>
185
- </div>
186
-
187
- <!-- Modules -->
188
- <script type="text/javascript" src="js/modules/jquery.min.js"></script>
189
-
190
- <!-- Custom Schema -->
191
- <script type="text/javascript" src="js/schema.js?v=0.0.7"></script>
192
-
193
- <!-- Main -->
194
- <script type="text/javascript" src="js/wmain.js?v=0.0.7"></script>