Add ability to set device name
This commit is contained in:
parent
5b28517c71
commit
3198aecd66
1 changed files with 5 additions and 2 deletions
|
@ -95,7 +95,10 @@
|
||||||
var html = "<div><h1>" + universe + "</h1>";
|
var html = "<div><h1>" + universe + "</h1>";
|
||||||
for(var device in setup.universes[universe].devices) {
|
for(var device in setup.universes[universe].devices) {
|
||||||
var dev = setup.universes[universe].devices[device];
|
var dev = setup.universes[universe].devices[device];
|
||||||
html += '<div class="device">'
|
html += '<div class="device">';
|
||||||
|
if(dev.name !== undefined) {
|
||||||
|
html += '<h4 class="name">'+dev.name+'</h4>'
|
||||||
|
}
|
||||||
for(var channel in devices[dev.type].channels) {
|
for(var channel in devices[dev.type].channels) {
|
||||||
var channel_id = dev.address + Number(channel)
|
var channel_id = dev.address + Number(channel)
|
||||||
var html_id = get_html_id(universe, channel_id);
|
var html_id = get_html_id(universe, channel_id);
|
||||||
|
|
Loading…
Reference in a new issue