UNPKG

@iotschema/setlevel

Version:

Set level Action

190 lines (152 loc) 7.07 kB
<script type="text/javascript"> RED.nodes.registerType('setlevel',{ category: 'iotschemaorg', color: '#00A4B4', defaults: { propertyType: {value:""}, unitCode: {value:""}, propertyType: {value:""}, minValue: {value:""}, maxValue: {value:""}, unitCode: {value:""}, name: {value:""}, iptype: {value:"iot:SetLevel"}, capability: {value:""}, foitype: {value:""}, foi: {value:""}, operation:{value:""} }, inputs:1, outputs:2, icon: "file.png", label: function() { return this.name||"setlevel"; } }); </script> <script type="text/x-red" data-template-name="setlevel"> <div class="form-row"> <label for="node-input-name" style="width:40%"><i class="icon-tag"></i> Name:</label> <input type="text" id="node-input-name" placeholder="Name" style="width:50%"/> </div> <div class="form-row"> <label for="node-input-iptype" style="width:40%"><i class="icon-tag"></i> Interaction Pattern Type:</label> <input type="text" id="node-input-iptype" style="width:50%" readonly/> </div> <div class="form-row"> <label for="node-input-capability" style="width:40%"><i class="icon-tag"></i> Capability:</label> <input type="text" id="node-input-capability" style="width:50%"/> </div> <div class="form-row"> <label for="node-input-foitype" style="width:40%"><i class="icon-tag"></i> Feature Of Interest Type:</label> <input type="text" id="node-input-foitype" style="width:50%" placeholder=""/> </div> <div class="form-row"> <label for="node-input-foi" style="width:40%"><i class="icon-tag"></i> Feature Of Interest:</label> <input type="text" id="node-input-foi" style="width:50%" placeholder=""/> </div> <div class="form-row"> <label for="node-input-propertyType" style="width:40%"><i class="icon-tag"></i> PropertyType:</label> <input type="text" id="node-input-propertyType" style="width:50%" placeholder="integer" disabled><br/> </div> <div class="form-row"> <label for="node-input-unitCode" style="width:40%"><i class="icon-tag"></i> UnitCode:</label> <select id="node-input-unitCode" style="width:30%"> <option value="iot:Hour">Hour</option> <option value="iot:Minute">Minute</option> <option value="iot:Second">Second</option> </select><br/> </div> <div class="form-row"> <label for="node-input-propertyType" style="width:40%"><i class="icon-tag"></i> PropertyType:</label> <input type="text" id="node-input-propertyType" style="width:50%" placeholder="integer" disabled><br/> </div> <div class="form-row"> <label for="node-input-minValue" style="width:40%"><i class="icon-tag"></i> MinValue:</label> <input type="text" id="node-input-minValue" style="width:50%" placeholder="integer"><br/> </div> <div class="form-row"> <label for="node-input-maxValue" style="width:40%"><i class="icon-tag"></i> MaxValue:</label> <input type="text" id="node-input-maxValue" style="width:50%" placeholder="integer"><br/> </div> <div class="form-row"> <label for="node-input-unitCode" style="width:40%"><i class="icon-tag"></i> UnitCode:</label> <select id="node-input-unitCode" style="width:30%"> <option value="iot:Centimetre">Centimetre</option> <option value="iot:Millimetre">Millimetre</option> <option value="iot:Percent">Percent</option> </select><br/> </div> <div class="form-row"> </div> <hr/> <b>Optional</b><br/> <div class="form-row"> <label for="node-input-operation" style="width:40%"><i class="icon-tag"></i> Operation:</label> <select id="node-input-operation" style="width:30%"> <option value="create">Create</option> <option value="retrieve">Retrieve</option> <option value="update">Update</option> <option value="delete">Delete</option> <option value="observe">Observe</option> </select> </div> </script> <script type="text/x-red" data-help-name="setlevel"> <p>SetLevel is a Action. It accepts input s which <code>TimeData</code> <code>LevelData</code> . <p><br/> <code>TimeData</code> can be configured with <code>propertyType</code> <code>unitCode</code> <br/><br/> <h4><b>Configurations</b></h4> <dl class="message-properties"> <dt>PropertyType <span class="property-type"> Integer <ul></ul> </span></dt> </dl> <dl class="message-properties"> <dt>UnitCode <span class="property-type"> <ul><li>Hour</li><li>Minute</li><li>Second</li></ul> </span></dt> </dl> </dl> <code>LevelData</code> can be configured with <code>propertyType</code> <code>minValue</code> <code>maxValue</code> <code>unitCode</code> <br/><br/> <h4><b>Configurations</b></h4> <dl class="message-properties"> <dt>PropertyType <span class="property-type"> Integer <ul></ul> </span></dt> </dl> <dl class="message-properties"> <dt>MinValue <span class="property-type"> Integer <ul></ul> </span></dt> </dl> <dl class="message-properties"> <dt>MaxValue <span class="property-type"> Integer <ul></ul> </span></dt> </dl> <dl class="message-properties"> <dt>UnitCode <span class="property-type"> <ul><li>Centimetre</li><li>Millimetre</li><li>Percent</li></ul> </span></dt> </dl> </dl> </script>