UNPKG

node-red-contrib-remote-io

Version:

A sample node for node-red

49 lines (44 loc) 1.82 kB
<script type="text/javascript"> RED.nodes.registerType('Temperature Input',{ category: 'remote io', color: '#EBEDEC', defaults: { name: {value:""}, sensorType: {value:"RTD"}, signalType: {value:"Celsius"} }, inputs:1, outputs:1, icon: "iconAI.png", label: function() { return this.name||"Temperature Input"; } }); </script> <script type="text/x-red" data-template-name="Temperature Input"> <div class="form-row"> <label for="node-input-sensorType"><i class="icon-tag"></i> Sensor Type</label> <select type="text" id="node-input-sensorType" placeholder="sensorType"> <option value="RTD">RTD</option> <option value="Thermocouple">Thermocouple</option> </select> </div> <div class="form-row"> <label for="node-input-signalType"><i class="icon-tag"></i> Signal Type</label> <select type="text" id="node-input-signalType" placeholder="signalType"> <option value="Celsius">Celsius</option> <option value="Farenheit">Farenheit</option> </select> </div> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script><script type="text/x-red" data-help-name="Temperature Input"> <p>A node that parses modbus data for the temperature input modules on the WAGO 750 IO system<br/> Select the desired module and output type, scaling, etc...<br/> <br/> The node is for a single channel only so rerequires only 1 WORD ( INT ) of input data. Output is a string value. Status bits are output on node status only.<br/> </p> </script>