|
|
|
|
@@ -15,11 +15,11 @@
|
|
|
|
|
href="#/huedevices">Hue Devices</a></li>
|
|
|
|
|
<li ng-if="bridge.showHal" role="presentation"><a
|
|
|
|
|
href="#/haldevices">HAL Devices</a></li>
|
|
|
|
|
<li ng-if="bridge.showMqtt" role="presentation"><a href="#/mqttmessages">MQTT Messages</a></li>
|
|
|
|
|
<li ng-if="bridge.showHass" role="presentation"><a href="#/hassdevices">HomeAssistant Devices</a></li>
|
|
|
|
|
<li role="presentation"><a href="#/editor">Manual Add</a></li>
|
|
|
|
|
<li role="presentation" class="active"><a href="#/editdevice">Edit
|
|
|
|
|
Device</a></li>
|
|
|
|
|
<li ng-if="bridge.showMqtt" role="presentation"><a
|
|
|
|
|
href="#/mqttmessages">MQTT Messages</a></li>
|
|
|
|
|
<li ng-if="bridge.showHass" role="presentation"><a
|
|
|
|
|
href="#/hassdevices">HomeAssistant Devices</a></li>
|
|
|
|
|
<li role="presentation" class="active"><a href="#/editdevice">Add/Edit</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
@@ -31,38 +31,49 @@
|
|
|
|
|
fields the bridge uses. Please use care when updating these fields as
|
|
|
|
|
you may break the settings used by the bridge to call a specific end
|
|
|
|
|
point device.</p>
|
|
|
|
|
<p class="text-muted">This area allows you to create any http or
|
|
|
|
|
udp call to an endpoint. You can use the default GET or select the
|
|
|
|
|
http verb type below and configure a payload for either on, dim or
|
|
|
|
|
off methods. For Execution of a
|
|
|
|
|
script or program, plese fill in the path. All manually entered calls
|
|
|
|
|
can use Json notation of array with [{"item":"the
|
|
|
|
|
payload"},{"item":"another payload"}] to
|
|
|
|
|
execute multiple entries. Adding the value replacements
|
|
|
|
|
(${intensity..byte},${intensity.percent},${intensity.math(X*1)}) will
|
|
|
|
|
also work.</p>
|
|
|
|
|
<p>When copying, update the name and select the "Add Bridge
|
|
|
|
|
Device" Button.</p>
|
|
|
|
|
|
|
|
|
|
<form name="form">
|
|
|
|
|
<p>
|
|
|
|
|
<button class="btn btn-primary" ng-click="copyDevice()">Add Bridge Device</button>
|
|
|
|
|
<button type="submit" class="col-xs-4 col-sm-2 btn btn-success" ng-click="addDevice()">Update Bridge Device</button>
|
|
|
|
|
<button class="btn btn-danger" ng-click="clearDevice()">Clear Device</button>
|
|
|
|
|
<button class="btn btn-primary" ng-click="copyDevice()">Add
|
|
|
|
|
Bridge Device</button>
|
|
|
|
|
<button type="submit" class="col-xs-4 col-sm-2 btn btn-success"
|
|
|
|
|
ng-click="addDevice()">Update Bridge Device</button>
|
|
|
|
|
<button class="btn btn-danger" ng-click="clearDevice()">Clear
|
|
|
|
|
Device</button>
|
|
|
|
|
</p>
|
|
|
|
|
<table class="table table-bordered table-striped table-hover">
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-name">Name</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-name">Name</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" class="form-control" id="device-name"
|
|
|
|
|
ng-model="device.name" placeholder="Device Name">
|
|
|
|
|
</td>
|
|
|
|
|
<td><input type="text" class="form-control" id="device-name"
|
|
|
|
|
ng-model="device.name" placeholder="Device Name"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-target">Target</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-target">Target</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" class="form-control" id="device-target"
|
|
|
|
|
ng-model="device.targetDevice" placeholder="default">
|
|
|
|
|
</td>
|
|
|
|
|
<td><input type="text" class="form-control" id="device-target"
|
|
|
|
|
ng-model="device.targetDevice" placeholder="default"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-type">Device Type</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-type">Device Type</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<select name="device-type" id="device-type"
|
|
|
|
|
<td><select name="device-type" id="device-type"
|
|
|
|
|
ng-model="device.deviceType">
|
|
|
|
|
<option value="">---Types if needed---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
@@ -78,38 +89,36 @@
|
|
|
|
|
<option value="button">Button</option>
|
|
|
|
|
<option value="thermo">Thermo</option>
|
|
|
|
|
<option value="passthru">Pass Thru</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-map-type">Map Type</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<select ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]" ng-model="mapTypeSelected"></select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><select
|
|
|
|
|
ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]"
|
|
|
|
|
ng-model="mapTypeSelected"></select></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-unique-id">Unique Id (used for Hue responses)</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-unique-id">Unique Id (used for Hue responses)</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" class="form-control" id="device-unique-id"
|
|
|
|
|
ng-model="device.uniqueid" placeholder="AA:BB:CC:DD:EE:FF-XX" readonly>
|
|
|
|
|
</td>
|
|
|
|
|
<td><input type="text" class="form-control"
|
|
|
|
|
id="device-unique-id" ng-model="device.uniqueid"
|
|
|
|
|
placeholder="AA:BB:CC:DD:EE:FF-XX" readonly></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-map-id">Map ID</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-map-id">Map ID</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" class="form-control" id="device-map-id"
|
|
|
|
|
ng-model="device.mapId" placeholder="1111">
|
|
|
|
|
</td>
|
|
|
|
|
<td><input type="text" class="form-control" id="device-map-id"
|
|
|
|
|
ng-model="device.mapId" placeholder="1111"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-on-url">On Items</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-on-url">On Items</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<scrollable-table watch="onDevices">
|
|
|
|
|
<td><scrollable-table watch="onDevices">
|
|
|
|
|
<table class="table table-bordered table-striped table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
@@ -126,32 +135,33 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tr ng-repeat="onItem in onDevices">
|
|
|
|
|
<td>
|
|
|
|
|
<select ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]" ng-model="onItem.type"></select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control" id="item-target"
|
|
|
|
|
ng-model="onItem.item" placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control" id="item-delay"
|
|
|
|
|
ng-model="onItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control" id="item-count"
|
|
|
|
|
ng-model="onItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16"class="form-control" id="item-filterIPs"
|
|
|
|
|
ng-model="onItem.filterIPs" placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-http-verb" id="item-http-verb" ng-model="onItem.httpVerb">
|
|
|
|
|
<td><select
|
|
|
|
|
ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]"
|
|
|
|
|
ng-model="onItem.type"></select></td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control"
|
|
|
|
|
id="item-target" ng-model="onItem.item" placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control"
|
|
|
|
|
id="item-delay" ng-model="onItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control"
|
|
|
|
|
id="item-count" ng-model="onItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-filterIPs" ng-model="onItem.filterIPs"
|
|
|
|
|
placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td><select name="item-http-verb" id="item-http-verb"
|
|
|
|
|
ng-model="onItem.httpVerb">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
<option value="GET">GET</option>
|
|
|
|
|
<option value="PUT">PUT</option>
|
|
|
|
|
<option value="POST">POST</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpBody"
|
|
|
|
|
ng-model="onItem.httpBody" placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpHeaders"
|
|
|
|
|
ng-model="onItem.httpHeaders" placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-content-type" id="item-content-type"
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpBody" ng-model="onItem.httpBody"
|
|
|
|
|
placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpHeaders" ng-model="onItem.httpHeaders"
|
|
|
|
|
placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td><select name="item-content-type" id="item-content-type"
|
|
|
|
|
ng-model="onItem.contentType">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
@@ -168,38 +178,41 @@
|
|
|
|
|
<option value="text/plain">text/plain</option>
|
|
|
|
|
<option value="text/xml">text/xml</option>
|
|
|
|
|
<option value="*/*">*/*</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><button class="btn btn-danger" type="submit"
|
|
|
|
|
ng-click="removeItemOn(onItem)">Del</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<select ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]" ng-model="newOnItem.type"></select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control" id="item-target"
|
|
|
|
|
ng-model="newOnItem.item" placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control" id="item-delay"
|
|
|
|
|
ng-model="newOnItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control" id="item-count"
|
|
|
|
|
ng-model="newOnItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-filterIPs"
|
|
|
|
|
ng-model="newOnItem.filterIPs" placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-http-verb" id="item-http-verb" ng-model="newOnItem.httpVerb">
|
|
|
|
|
<td><select
|
|
|
|
|
ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]"
|
|
|
|
|
ng-model="newOnItem.type"></select></td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control"
|
|
|
|
|
id="item-target" ng-model="newOnItem.item"
|
|
|
|
|
placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control"
|
|
|
|
|
id="item-delay" ng-model="newOnItem.delay"
|
|
|
|
|
placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control"
|
|
|
|
|
id="item-count" ng-model="newOnItem.count"
|
|
|
|
|
placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-filterIPs" ng-model="newOnItem.filterIPs"
|
|
|
|
|
placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td><select name="item-http-verb" id="item-http-verb"
|
|
|
|
|
ng-model="newOnItem.httpVerb">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
<option value="GET">GET</option>
|
|
|
|
|
<option value="PUT">PUT</option>
|
|
|
|
|
<option value="POST">POST</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpBody"
|
|
|
|
|
ng-model="newOnItem.httpBody" placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpHeaders"
|
|
|
|
|
ng-model="newOnItem.httpHeaders" placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-content-type" id="item-content-type"
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpBody" ng-model="newOnItem.httpBody"
|
|
|
|
|
placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpHeaders" ng-model="newOnItem.httpHeaders"
|
|
|
|
|
placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td><select name="item-content-type" id="item-content-type"
|
|
|
|
|
ng-model="newOnItem.contentType">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
@@ -216,20 +229,18 @@
|
|
|
|
|
<option value="text/plain">text/plain</option>
|
|
|
|
|
<option value="text/xml">text/xml</option>
|
|
|
|
|
<option value="*/*">*/*</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><button class="btn btn-success" type="submit"
|
|
|
|
|
ng-click="addItemOn(newOnItem)">Add</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</scrollable-table>
|
|
|
|
|
</td>
|
|
|
|
|
</scrollable-table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-dim-url">Dim Items</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-dim-url">Dim Items</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<scrollable-table watch="dimDevices">
|
|
|
|
|
<td><scrollable-table watch="dimDevices">
|
|
|
|
|
<table class="table table-bordered table-striped table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
@@ -246,32 +257,34 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tr ng-repeat="dimItem in dimDevices">
|
|
|
|
|
<td>
|
|
|
|
|
<select ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]" ng-model="dimItem.type"></select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control" id="item-target"
|
|
|
|
|
ng-model="dimItem.item" placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control" id="item-delay"
|
|
|
|
|
ng-model="dimItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control" id="item-count"
|
|
|
|
|
ng-model="dimItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-filterIPs"
|
|
|
|
|
ng-model="dimItem.filterIPs" placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-http-verb" id="item-http-verb" ng-model="dimItem.httpVerb">
|
|
|
|
|
<td><select
|
|
|
|
|
ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]"
|
|
|
|
|
ng-model="dimItem.type"></select></td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control"
|
|
|
|
|
id="item-target" ng-model="dimItem.item"
|
|
|
|
|
placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control"
|
|
|
|
|
id="item-delay" ng-model="dimItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control"
|
|
|
|
|
id="item-count" ng-model="dimItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-filterIPs" ng-model="dimItem.filterIPs"
|
|
|
|
|
placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td><select name="item-http-verb" id="item-http-verb"
|
|
|
|
|
ng-model="dimItem.httpVerb">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
<option value="GET">GET</option>
|
|
|
|
|
<option value="PUT">PUT</option>
|
|
|
|
|
<option value="POST">POST</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpBody"
|
|
|
|
|
ng-model="dimItem.httpBody" placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpHeaders"
|
|
|
|
|
ng-model="dimItem.httpHeaders" placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-content-type" id="item-content-type"
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpBody" ng-model="dimItem.httpBody"
|
|
|
|
|
placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpHeaders" ng-model="dimItem.httpHeaders"
|
|
|
|
|
placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td><select name="item-content-type" id="item-content-type"
|
|
|
|
|
ng-model="dimItem.contentType">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
@@ -288,38 +301,41 @@
|
|
|
|
|
<option value="text/plain">text/plain</option>
|
|
|
|
|
<option value="text/xml">text/xml</option>
|
|
|
|
|
<option value="*/*">*/*</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><button class="btn btn-danger" type="submit"
|
|
|
|
|
ng-click="removeItemDim(dimItem)">Del</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<select ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]" ng-model="newDimItem.type"></select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control" id="item-target"
|
|
|
|
|
ng-model="newDimItem.item" placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control" id="item-delay"
|
|
|
|
|
ng-model="newDimItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control" id="item-count"
|
|
|
|
|
ng-model="newDimItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-filterIPs"
|
|
|
|
|
ng-model="newDimItem.filterIPs" placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-http-verb" id="item-http-verb" ng-model="newDimItem.httpVerb">
|
|
|
|
|
<td><select
|
|
|
|
|
ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]"
|
|
|
|
|
ng-model="newDimItem.type"></select></td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control"
|
|
|
|
|
id="item-target" ng-model="newDimItem.item"
|
|
|
|
|
placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control"
|
|
|
|
|
id="item-delay" ng-model="newDimItem.delay"
|
|
|
|
|
placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control"
|
|
|
|
|
id="item-count" ng-model="newDimItem.count"
|
|
|
|
|
placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-filterIPs" ng-model="newDimItem.filterIPs"
|
|
|
|
|
placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td><select name="item-http-verb" id="item-http-verb"
|
|
|
|
|
ng-model="newDimItem.httpVerb">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
<option value="GET">GET</option>
|
|
|
|
|
<option value="PUT">PUT</option>
|
|
|
|
|
<option value="POST">POST</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpBody"
|
|
|
|
|
ng-model="newDimItem.httpBody" placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpHeaders"
|
|
|
|
|
ng-model="newDimItem.httpHeaders" placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-content-type" id="item-content-type"
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpBody" ng-model="newDimItem.httpBody"
|
|
|
|
|
placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpHeaders" ng-model="newDimItem.httpHeaders"
|
|
|
|
|
placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td><select name="item-content-type" id="item-content-type"
|
|
|
|
|
ng-model="newDimItem.contentType">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
@@ -336,20 +352,18 @@
|
|
|
|
|
<option value="text/plain">text/plain</option>
|
|
|
|
|
<option value="text/xml">text/xml</option>
|
|
|
|
|
<option value="*/*">*/*</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><button class="btn btn-success" type="submit"
|
|
|
|
|
ng-click="addItemDim(newDimItem)">Add</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</scrollable-table>
|
|
|
|
|
</td>
|
|
|
|
|
</scrollable-table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-off-url">Off Items</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-off-url">Off Items</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<scrollable-table watch="offDevices">
|
|
|
|
|
<td><scrollable-table watch="offDevices">
|
|
|
|
|
<table class="table table-bordered table-striped table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
@@ -366,32 +380,34 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tr ng-repeat="offItem in offDevices">
|
|
|
|
|
<td>
|
|
|
|
|
<select ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]" ng-model="offItem.type"></select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control" id="item-target"
|
|
|
|
|
ng-model="offItem.item" placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control" id="item-delay"
|
|
|
|
|
ng-model="offItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control" id="item-count"
|
|
|
|
|
ng-model="offItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-filterIPs"
|
|
|
|
|
ng-model="offItem.filterIPs" placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-http-verb" id="item-http-verb" ng-model="offItem.httpVerb">
|
|
|
|
|
<td><select
|
|
|
|
|
ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]"
|
|
|
|
|
ng-model="offItem.type"></select></td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control"
|
|
|
|
|
id="item-target" ng-model="offItem.item"
|
|
|
|
|
placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control"
|
|
|
|
|
id="item-delay" ng-model="offItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control"
|
|
|
|
|
id="item-count" ng-model="offItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-filterIPs" ng-model="offItem.filterIPs"
|
|
|
|
|
placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td><select name="item-http-verb" id="item-http-verb"
|
|
|
|
|
ng-model="offItem.httpVerb">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
<option value="GET">GET</option>
|
|
|
|
|
<option value="PUT">PUT</option>
|
|
|
|
|
<option value="POST">POST</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpBody"
|
|
|
|
|
ng-model="offItem.httpBody" placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpHeaders"
|
|
|
|
|
ng-model="offItem.httpHeaders" placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-content-type" id="item-content-type"
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpBody" ng-model="offItem.httpBody"
|
|
|
|
|
placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpHeaders" ng-model="offItem.httpHeaders"
|
|
|
|
|
placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td><select name="item-content-type" id="item-content-type"
|
|
|
|
|
ng-model="offItem.contentType">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
@@ -408,38 +424,41 @@
|
|
|
|
|
<option value="text/plain">text/plain</option>
|
|
|
|
|
<option value="text/xml">text/xml</option>
|
|
|
|
|
<option value="*/*">*/*</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><button class="btn btn-danger" type="submit"
|
|
|
|
|
ng-click="removeItemOff(offItem)">Del</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<select ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]" ng-model="newOffItem.type"></select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control" id="item-target"
|
|
|
|
|
ng-model="newOffItem.item" placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control" id="item-delay"
|
|
|
|
|
ng-model="newOffItem.delay" placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control" id="item-count"
|
|
|
|
|
ng-model="newOffItem.count" placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-filterIPs"
|
|
|
|
|
ng-model="newOffItem.filterIPs" placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-http-verb" id="item-http-verb" ng-model="newOffItem.httpVerb">
|
|
|
|
|
<td><select
|
|
|
|
|
ng-options="mapType as mapType[1] for mapType in bridge.mapTypes track by mapType[0]"
|
|
|
|
|
ng-model="newOffItem.type"></select></td>
|
|
|
|
|
<td><textarea rows="1" cols="20" class="form-control"
|
|
|
|
|
id="item-target" ng-model="newOffItem.item"
|
|
|
|
|
placeholder="The Call"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="4" class="form-control"
|
|
|
|
|
id="item-delay" ng-model="newOffItem.delay"
|
|
|
|
|
placeholder="millis"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="2" class="form-control"
|
|
|
|
|
id="item-count" ng-model="newOffItem.count"
|
|
|
|
|
placeholder="number"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-filterIPs" ng-model="newOffItem.filterIPs"
|
|
|
|
|
placeholder="restrict IPs"></textarea></td>
|
|
|
|
|
<td><select name="item-http-verb" id="item-http-verb"
|
|
|
|
|
ng-model="newOffItem.httpVerb">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
<option value="GET">GET</option>
|
|
|
|
|
<option value="PUT">PUT</option>
|
|
|
|
|
<option value="POST">POST</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpBody"
|
|
|
|
|
ng-model="newOffItem.httpBody" placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control" id="item-httpHeaders"
|
|
|
|
|
ng-model="newOffItem.httpHeaders" placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="item-content-type" id="item-content-type"
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpBody" ng-model="newOffItem.httpBody"
|
|
|
|
|
placeholder="body args"></textarea></td>
|
|
|
|
|
<td><textarea rows="1" cols="16" class="form-control"
|
|
|
|
|
id="item-httpHeaders" ng-model="newOffItem.httpHeaders"
|
|
|
|
|
placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea></td>
|
|
|
|
|
<td><select name="item-content-type" id="item-content-type"
|
|
|
|
|
ng-model="newOffItem.contentType">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
@@ -456,21 +475,19 @@
|
|
|
|
|
<option value="text/plain">text/plain</option>
|
|
|
|
|
<option value="text/xml">text/xml</option>
|
|
|
|
|
<option value="*/*">*/*</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><button class="btn btn-success" type="submit"
|
|
|
|
|
ng-click="addItemOff(newOffItem)">Add</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</scrollable-table>
|
|
|
|
|
</td>
|
|
|
|
|
</scrollable-table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label" for="device-headers">HTTP Headers</label></td>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-headers">HTTP Headers</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<textarea rows="3" class="form-control" id="device-headers"
|
|
|
|
|
ng-model="device.headers"
|
|
|
|
|
<td><textarea rows="3" class="form-control"
|
|
|
|
|
id="device-headers" ng-model="device.headers"
|
|
|
|
|
placeholder="format like: [{"name":"A name","value":"a value"}]"></textarea>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@@ -478,24 +495,21 @@
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-http-verb">Http Verb</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<select name="device-http-verb" id="device-http-verb"
|
|
|
|
|
<td><select name="device-http-verb" id="device-http-verb"
|
|
|
|
|
ng-model="device.httpVerb">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
<option value="GET">GET</option>
|
|
|
|
|
<option value="PUT">PUT</option>
|
|
|
|
|
<option value="POST">POST</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-content-type">Content Type</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<select name="device-content-type" id="device-content-type"
|
|
|
|
|
ng-model="device.contentType">
|
|
|
|
|
<td><select name="device-content-type"
|
|
|
|
|
id="device-content-type" ng-model="device.contentType">
|
|
|
|
|
<option value="">---Please select---</option>
|
|
|
|
|
<!-- not selected / blank option -->
|
|
|
|
|
<option value="application/atom+xml">application/atom+xml</option>
|
|
|
|
|
@@ -511,16 +525,14 @@
|
|
|
|
|
<option value="text/plain">text/plain</option>
|
|
|
|
|
<option value="text/xml">text/xml</option>
|
|
|
|
|
<option value="*/*">*/*</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</select></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-content-body">Content Body On</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<textarea rows="3" class="form-control" id="device-content-body"
|
|
|
|
|
ng-model="device.contentBody"
|
|
|
|
|
<td><textarea rows="3" class="form-control"
|
|
|
|
|
id="device-content-body" ng-model="device.contentBody"
|
|
|
|
|
placeholder="Content Body On for specific GET/PUT/POST type"></textarea>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@@ -528,9 +540,8 @@
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-content-body-dim">Content Body Dim</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<textarea rows="3" class="form-control" id="device-content-body-dim"
|
|
|
|
|
ng-model="device.contentBodyDim"
|
|
|
|
|
<td><textarea rows="3" class="form-control"
|
|
|
|
|
id="device-content-body-dim" ng-model="device.contentBodyDim"
|
|
|
|
|
placeholder="Content Body Dim for specific GET/PUT/POST type"></textarea>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@@ -538,8 +549,7 @@
|
|
|
|
|
<td><label class="col-xs-12 col-sm-2 control-label"
|
|
|
|
|
for="device-content-body-off">Content Body Off</label></td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<textarea rows="3" class="form-control"
|
|
|
|
|
<td><textarea rows="3" class="form-control"
|
|
|
|
|
id="device-content-body-off" ng-model="device.contentBodyOff"
|
|
|
|
|
placeholder="Content Body Off for specific GET/PUT/POST type"></textarea>
|
|
|
|
|
</td>
|
|
|
|
|
|