mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Add available sounds to config view.
This commit is contained in:
@@ -27,6 +27,34 @@
|
||||
<label for="node-input-priority"><i class="fa fa-star"></i> Priority</label>
|
||||
<input type="text" id="node-input-priority" placeholder="0" style="width:50px;">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-sound"><i class="fa fa-bell"></i> Sound</label>
|
||||
<select id="node-input-sound">
|
||||
<option></option>
|
||||
<option>pushover</option>
|
||||
<option>bike</option>
|
||||
<option>bugle</option>
|
||||
<option>cashregister</option>
|
||||
<option>classical</option>
|
||||
<option>cosmic</option>
|
||||
<option>falling</option>
|
||||
<option>gamelan</option>
|
||||
<option>incoming</option>
|
||||
<option>intermission</option>
|
||||
<option>magic</option>
|
||||
<option>mechanical</option>
|
||||
<option>pianobar</option>
|
||||
<option>siren</option>
|
||||
<option>spacealarm</option>
|
||||
<option>tugboat</option>
|
||||
<option>alien</option>
|
||||
<option>climb</option>
|
||||
<option>persistent</option>
|
||||
<option>echo</option>
|
||||
<option>updown</option>
|
||||
<option>none</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-deviceid"><i class="fa fa-user"></i> User key</label>
|
||||
<input type="text" id="node-input-deviceid">
|
||||
@@ -42,7 +70,8 @@
|
||||
</div>
|
||||
<div class="form-tips" id="node-tip">Tip: Leave title blank to set using <b>msg.topic</b>.<br/>
|
||||
Leave device blank to send to all devices, or to set using <b>msg.device</b>.<br/>
|
||||
Leave priority blank to set using <b>msg.priority</b>. Supports priorities 2, 1, 0, -1, and -2.</div>
|
||||
Leave priority blank to set using <b>msg.priority</b>. Supports priorities 2, 1, 0, -1, and -2.<br/>
|
||||
Leave sound blank to use the default, or set using <b>msg.sound</b>.</div>
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="pushover">
|
||||
@@ -60,7 +89,8 @@
|
||||
name: {value:""},
|
||||
device: {value:""},
|
||||
title: {value:""},
|
||||
priority: {value:0}
|
||||
priority: {value:0},
|
||||
sound: {value:""}
|
||||
},
|
||||
credentials: {
|
||||
deviceid: {type:"text"},
|
||||
|
Reference in New Issue
Block a user