node-red-contrib-beacon-scanner
Version:
Node-RED node to retrieve information from BLE Beacons.
37 lines (35 loc) • 1.32 kB
HTML
<script type="text/x-red" data-help-name="Beacon-Scanner">
<p>A node to scan for BLE Beacons.</p>
<p>This node scans for BLE Beacons (iBeacons/Eddystone/Estimote) and publishes what it finds.</p>
</script>
<script type="text/x-red" data-template-name="Beacon-Scanner">
<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>
<div class="form-row">
<label for="node-input-gracePeriod">Grace Period / Interval (ms)</label>
<input type="text" value="0" id="node-input-gracePeriod" placeholder="gracePeriod">
</div>
<div class="form-tips"><b>Tip:</b> Grace Period/Interval is used to set an output interval between messages with the same ID.</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('Beacon-Scanner', {
category: 'input',
defaults: {
name: {
value: "Beacon Scanner"
},
gracePeriod: {
value: 1000
},
},
color: "#3FADB5",
inputs: 0,
outputs: 1,
icon: "bluetooth_searching-white.svg",
label: function () {
return this.name || "Beacon Scanner";
}
});
</script>