UNPKG

node-red-contrib-axis-host

Version:

Axis Devices resource binding nodes that provides access to events, image capture and analytics data. Node-RED must be running on the Axis Device.

57 lines (51 loc) 1.86 kB
<script type="text/x-red" data-template-name="Events"> <div class="form-row"> <label for="node-input-group"><i class="icon-tag"></i> Event group</label> <select id="node-input-group"> <option value="application">ACAP</option> <option value="io">IO</option> <option value="ptz">PTZ</option> <option value="videosource">Video</option> <option value="storage">Storage</option> <option value="temperture">Temperture</option> <option value="device">Device</option> <option value="All events">All events</option> </select> </div> <label for="node-input-initialization"><i class="icon-tag"></i><input type="checkbox" id="node-input-initialization"> &nbsp;&nbsp;Suppress initialization states</label> </script> <script type="text/javascript"> RED.nodes.registerType('Events',{ category: 'Axis', color: '#FFCC33', defaults: { group: { value:"application"}, initialization: { value:false } }, icon: "font-awesome/fa-arrow-right", inputs:0, outputs:1, label: function() { var text = "Events: "; if( this.group == "application") text += "ACAP"; if( this.group == "IO") text += "IO"; if( this.group == "videosource") text += "Video"; if( this.group == "storage") text += "Storage"; if( this.group == "temperture") text += "Temperture"; if( this.group == "device") text += "Device"; if( this.group == "All events") text += "All"; return text; } }); </script> <script type="text/x-red" data-help-name="Events"> Sends selected events detected in an Axis device. This node will only work when Node-RED is running on an Axis Device.<br/> Select an event group to filter. You may need to filter on event topic to extract the specific event you will process (eg. using a Switch Node) </script>