node-red-contrib-amcrest-ad110
Version:
Amcrest AD110 Video Doorbell Tools
50 lines (45 loc) • 2.2 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('node-amcrest-ad110-monitor', {
category: 'Amcrest AD110',
defaults: {
name: { value: '', required: false },
config: { type: 'node-amcrest-ad110-config', required: true },
rawCodes: { value: false, required: false },
debug: { value: false, required: false }
},
inputs: 0,
outputs: 1,
label: function () {
return this.name || 'AD110 Monitor'
},
color: "#1DB5F2",
paletteLabel: "Monitor",
icon: "doorbell-icon.png"
});
</script>
<script type="text/html" data-template-name="node-amcrest-ad110-monitor">
<div class="form-row" style="display: -webkit-flex;">
<label for="node-input-name" style="width: 10em"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name" style="-webkit-flex:1">
</div>
<div class="form-row" style="display: -webkit-flex;">
<label for="node-input-config" style="width: 10em"><i class="fa fa-cog"></i> Config</label>
<input type="text" id="node-input-config" style="-webkit-flex:1">
</div>
<div class="form-row" style="display: -webkit-flex;">
<label for="node-input-rawCodes" style="width: 10em"><i class="fa fa-cog"></i> Use Raw Codes</label>
<input type="checkbox" id="node-input-rawCodes" style="-webkit-flex:1">
</div>
<div class="form-row" style="display: -webkit-flex;">
<label for="node-input-debug" style="width: 10em"><i class="fa fa-cog"></i> Enable Debugging</label>
<input type="checkbox" id="node-input-debug" style="-webkit-flex:1">
</div>
</script>
<script type="text/x-red" data-help-name="node-amcrest-ad110-monitor">
<p>Listen for Amcrest AD110 Events</p>
<h3>Output</h3>
<dl class="message-properties">
<dt>msg <span class="property-type">object</span></dt>
<dd>Returns a msg with a payload consisting of an object with a 'event', an 'action', 'time' and 'index' and/or 'data' depending on the type of action.</dd>
</dl>
</script>