-
Notifications
You must be signed in to change notification settings - Fork 5
/
info.tpl
62 lines (57 loc) · 1.88 KB
/
info.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%import re
%renderer_ips = []
<!DOCTYPE html>
<html>
<head>
<title>rf.info</title>
<link rel="stylesheet" href="static/normalize.css">
<link rel="stylesheet" href="static/rfwr.css">
<link rel="icon" href="/images/favico_info.png">
</head>
<body>
<h1>Device Settings</h1>
<a target = "" href = "http://{{host_ip}}:47365/settings">[Raumfeld Settings]</a><br>
%if len(zones) > 0:
% i = 0
%for zone in zones:
<div class="controlElement" style="background-color: grey; width: 300px;">
<div class = "zone_{{active_zone_str_helper[i]}}" style = "width: 300px;">
<div class="zone_title" style="width: 300px;">
Zone {{i}}: {{zone.Name}}
</div>
<div class="zone_content" style="width: 300px;">
%for room in zone.getRooms():
<div class = "room">
- {{room.Name}}
%for renderer in room._renderers:
%ip = re.findall( r'[0-9]+(?:\.[0-9]+){3}', renderer._address)
<a target = "" href = "http://{{ip[0]}}:48365/">[Renderer Settings]</a>
%end
</div>
%end
</div>
</div>
%i = i + 1
</div>
%end
%end
%if len(unassigned) > 0:
<div class="controlElement" style="background-color: grey; width: 300px;">
<div class = "unassigned" style="width: 300px;"> Unassigned:
%for i in range(0, len(unassigned)):
<div class = "room">{{unassigned[i].Name}}</div>
%end
</div>
</div>
%end
<h1>Track Info</h1>
%for key, entry in track_meta.iteritems():
{{key + ': ' + entry}} <br>
%end
<br>
<h1>Media Info</h1>
%for key, entry in media_meta.iteritems():
{{key + ': ' + entry}} <br>
%end
</body>
</html>