Handle users of old Blinkstick npm a bit more nicely.

Don't  barf (quite so badly) on new API calls if they don't exist yet.
This commit is contained in:
Dave C-J
2014-11-20 08:44:05 +00:00
parent 74a470c22e
commit 317aaa1b64
3 changed files with 13 additions and 7 deletions

View File

@@ -60,9 +60,7 @@
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-tips">Expects a msg.payload with either hex "#rrggbb" or decimal "red,green,blue" string.</div>
</script>
<div class="form-tips">Expects a msg.payload with either hex "#rrggbb" or decimal "red,green,blue" string, or HTML color name.</div>
</script>
<script type="text/x-red" data-help-name="blinkstick">
@@ -81,7 +79,7 @@
{ 'task': 'pulse', 'color': 'gree', 'duration': 500 }
{ 'task': 'morph', 'color': 'orange', 'duration': 500, 'steps': 20 }
</pre>
<p>For more info see <i><a href="http://www.blinkstick.com/help/tutorials" target="_new">BlinkStick tutorials</a></i>
<p>For more info see <i><a href="http://www.blinkstick.com/help/tutorials" target="_new">BlinkStick tutorials</a></i>
or the <i><a href="https://github.com/arvydas/blinkstick-node" target="_new">node module</a></i> documentation.</p>
</script>