UNPKG

node-red-contrib-enocean

Version:

an enocean node for node-red

48 lines (43 loc) 1.25 kB
<script type="text/javascript"> RED.nodes.registerType('enocean-in',{ category: 'EnOcean', defaults: { serialport: { value: "", type: "enocean-config-node" }, name:{ value:"", } }, outputs: 1, inputs: 0, color: '#99ccff', icon: "enocean-js-white.svg", label: function() { return this.name || this.senderId || "input"; }, paletteLabel: 'input', labelStyle: 'enocean-node' }); </script> <script type="text/x-red" data-template-name="enocean-in"> <div class="form-row"> <label for="node-input-serialport"><i class="fa fa-globe"></i> Serialport</label> <input type="text" id="node-input-serialport"> </div> <div class="form-row"> <label for="node-input-name">Name</label> <input type="text" id="node-input-name"> </div> </script> <script type="text/x-red" data-help-name="enocean-in"> <p>this is a node to listen to incomming enocean telegrams.</p> <h3>Output</h3> <dl class="message-properties"> <dt>payload <span class="property-type">object</span> </dt> <dd>raw telegram data</dd> </dl> </script>