UNPKG

node-red-contrib-greenhippo

Version:

A collection of node for API calls from Green Hippo Media Servers

41 lines (39 loc) 1.31 kB
<script type="text/html" data-template-name="GH-Info"> <div class="form-row"> <label for="node-input-ipAddress"><i class="fa fa-globe"></i> IP Address</label> <input type="text" id="node-input-ipAddress" placeholder="192.168.1.100"> </div> <div class="form-row"> <label for="node-input-port"><i class="fa fa-plug"></i> Port</label> <input type="number" id="node-input-port" placeholder="80"> </div> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/javascript"> RED.nodes.registerType('GH-Info', { category: 'GreenHippo', color: '#3c8e3c', defaults: { name: {value:""}, ipAddress: {value:"", required:true}, port: {value:40512, required:true, validate:RED.validators.number()} }, inputs: 1, outputs: 3, outputLabels: [ "Full JSON response", "Engine status: true if 'Running'", "Media Manager status string" ], icon: "file.png", label: function() { return this.name || "GH-Info"; } }); </script> <script type="text/html" data-help-name="GH-API"> <p>A node toretrieve greenhippo engine status.</p> </script>