@droneblocks/node-red-dexi
Version:
You want to make sure you don't lose any of your flow development. Make sure to map the host "flows" directory to the container directory as shown below. This will store the flow on your host machine if/when the container is destroyed.
55 lines (52 loc) • 2.01 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('led-effect', {
category: 'DEXI',
color: '#a6bbcf',
defaults: {
name: {value: ""},
effect: {value: "rainbow"}
},
inputs: 1,
outputs: 1,
icon: "file.svg",
paletteLabel: "led effect",
label: function() {
return this.name || "led effect"
}
})
</script>
<script type="text/html" data-template-name="led-effect">
<div class="form-row">
<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>
<label for="node-input-effect"><i class="icon-tag"></i> LED Effect</label>
<select id="node-input-effect">
<option value="rainbow">Rainbow</option>
<option value="aurora">Aurora</option>
<option value="loading">Loading</option>
<option value="comet">Comet</option>
<option value="galaxy">Galaxy</option>
<option value="gradient">Gradient</option>
<option value="wave">Wave</option>
<option value="snake">Snake</option>
<option value="festive">Festive</option>
</select>
</div>
</script>
<script type="text/html" data-help-name="led-effect">
<p>Set drone's LED ring effect pattern</p>
<p>Available effects:</p>
<ul>
<li>Rainbow - Cycling rainbow pattern</li>
<li>Aurora – Smooth full-spectrum gradient flowing around the ring</li>
<li>Loading - Loading animation effect</li>
<li>Comet - Moving light effect</li>
<li>Galaxy - Starry night effect</li>
<li>Gradient – Full-ring smooth color gradient</li>
<li>Wave – Pixel-by-pixel wave from center</li>
<li>Snake – Crawling gradient snake</li>
<li>Festive – Alternating red/green holiday pattern</li>
</ul>
</script>