UNPKG

@iotschema/illuminance

Version:

undefined

163 lines (123 loc) 5.74 kB
<script type="text/javascript"> RED.nodes.registerType('illuminance',{ category: 'iotschemaorg', color: '#00A4B4', defaults: { propertyType: {value:""}, minValue: {value:""}, maxValue: {value:""}, unitCode: {value:""}, name: {value:""}, iptype: {value:"iot:Illuminance"}, capability: {value:"iot:IlluminanceSensing"}, foitype: {value:""}, foi: {value:""}, operation:{value:""} }, inputs:1, outputs:2, icon: "file.png", label: function() { return this.name||"illuminance"; } }); </script> <script type="text/x-red" data-template-name="illuminance"> <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%" value="iot:IlluminanceSensing" disabled/> </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> <fieldset> <legend style="font-size:14px;font-weight:bold;color:#555;font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;">IlluminanceData</legend> <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="float" 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="float"><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="float"><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:Lux">Lux</option> </select><br/> </div> </fieldset> <div class="form-row"> </div> <fieldset> <legend style="font-size:14px;font-weight:bold;color:#555;font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;">Optional</legend> <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> </fieldset> </script> <script type="text/x-red" data-help-name="illuminance"> <p>Illuminance is a Property. It provides output which is <code>IlluminanceData</code> .</p> <p><br/> <code>IlluminanceData</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"> Float <ul></ul> </span></dt> </dl> <dl class="message-properties"> <dt>MinValue <span class="property-type"> Float <ul></ul> </span></dt> </dl> <dl class="message-properties"> <dt>MaxValue <span class="property-type"> Float <ul></ul> </span></dt> </dl> <dl class="message-properties"> <dt>UnitCode <span class="property-type"> <ul><li>Lux</li></ul> </span></dt> </dl> </dl> </script>