node-red-contrib-device-stats
Version:
Node-RED nodes for Device Statistics
32 lines • 2.25 kB
HTML
<script type="text/x-red" data-template-name="DeviceStats"> <div class='form-row'>
<label for='node-input-name'>
<i class='fa fa-tag'></i>
<span data-i18n='node-red:common.label.name'></span>
</label>
<input type='text' id='node-input-name' data-i18n='[placeholder]node-red:common.label.name'>
</div>
<div class='form-row' id='node-mem'>
<label> </label>
<input type='checkbox' id='node-input-mem' style='display: inline-block; width: auto; vertical-align: top;'>
<label for='node-input-mem' style='width: 70%;' data-i18n='device-stats.label.mem'></label>
</div>
<div class='form-row' id='node-nw'>
<label> </label>
<input type='checkbox' id='node-input-nw' style='display: inline-block; width: auto; vertical-align: top;'>
<label for='node-input-nw' style='width: 70%;' data-i18n='device-stats.label.nw'></label>
</div>
<div class='form-row' id='node-load'>
<label> </label>
<input type='checkbox' id='node-input-load' style='display: inline-block; width: auto; vertical-align: top;'>
<label for='node-input-load' style='width: 70%;' data-i18n='device-stats.label.load'></label>
</div>
<div class='form-row' id='node-hostname'>
<label> </label>
<input type='checkbox' id='node-input-hostname' style='display: inline-block; width: auto; vertical-align: top;'>
<label for='node-input-hostname' style='width: 70%;' data-i18n='device-stats.label.hostname'></label>
</div>
<div class='form-row' id='node-useString'>
<label> </label>
<input type='checkbox' id='node-input-useString' style='display: inline-block; width: auto; vertical-align: top;'>
<label for='node-input-useString' style='width: 70%;' data-i18n='device-stats.label.useString'></label>
</div> </script> <script type="text/javascript">RED.nodes.registerType("DeviceStats",{category:"input",defaults:{name:{name:""},mem:{value:!1,required:!1},nw:{value:!1,required:!1},load:{value:!1,required:!1},hostname:{value:!1,required:!1},useString:{value:!1,required:!1}},color:"Tomato",inputs:1,outputs:1,icon:"bridge.png",label:function(){return this.name||this._("device-stats.label.category")},labelStyle:function(){return this.name?"node_label_italic":""}})</script>