Add simple listing of sonos devices and basic Dockefile for running it

This commit is contained in:
simojenki
2021-01-29 12:34:02 +11:00
parent da61f079bc
commit 769a3e50d4
14 changed files with 935 additions and 45 deletions

6
web/views/devices.eta Normal file
View File

@@ -0,0 +1,6 @@
<ul>
<% it.devices.forEach(function(d){ %>
<li><%= d.name %> (<%= d.ip %>:<%= d.port %>)</li>
<% }) %>
</ul>

11
web/views/index.eta Normal file
View File

@@ -0,0 +1,11 @@
<% layout('./layout') %>
<div id="content">
<h1>bonob</h1>
<h2>Devices</h2>
<ul>
<% it.devices.forEach(function(d){ %>
<li><%= d.name %> (<%= d.ip %>:<%= d.port %>)</li>
<% }) %>
</ul>
</div>

9
web/views/layout.eta Normal file
View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title><%= it.title || "bonob" %></title>
</head>
<body>
<%~ it.body %>
</body>
</html>