From 33277bb1f293fb6b4d23b654cced722a903acb9c Mon Sep 17 00:00:00 2001 From: mvoelkel Date: Thu, 16 Jun 2016 13:26:38 +0200 Subject: [PATCH] Setting Friendlyname for DMS and SAT>IP, define Quad,Quattro settings --- octoserve/var/dms/dms.lua | 14 +- octoserve/var/dms/dms.xml | 2 +- octoserve/var/www/index.html | 6 + octoserve/var/www/system.html | 232 ++++++++++++++++++++------- octoserve/var/www/systeminfo.lua | 12 ++ octoserve/var/www/systemsettings.lua | 132 ++++++++++----- octoserve/var/www/wait.html | 3 + 7 files changed, 299 insertions(+), 102 deletions(-) diff --git a/octoserve/var/dms/dms.lua b/octoserve/var/dms/dms.lua index 4c4e82e..2e1c663 100755 --- a/octoserve/var/dms/dms.lua +++ b/octoserve/var/dms/dms.lua @@ -80,15 +80,25 @@ function LoadFile(fname) return t end +function GetBoxName() + local boxname = "OctopusNet" + local tmp = io.open("/config/boxname") + if tmp then + boxname = tmp:read("*l") + tmp:close() + end + return boxname +end + upnp:SetDebug(true) local port = 8080 --- local RootLocation = "http://10.0.4.31:8080/dms.xml" local uuid,sernbr,myip = upnp:SystemParameters("f0287290-e1e1-11e2-9a21-000000000000") +local friendlyname = GetBoxName().." DMS" local Desc = LoadFile("dms.xml") -Desc = string.gsub(Desc,"##(%a+)##",{ UUID = uuid, SERNBR = sernbr, HOST = myip }) +Desc = string.gsub(Desc,"##(%a+)##",{ UUID = uuid, SERNBR = sernbr, HOST = myip, FRIENDLYNAME = friendlyname }) if DisableDLNA then Desc = string.gsub(Desc,"(%)","") diff --git a/octoserve/var/dms/dms.xml b/octoserve/var/dms/dms.xml index 814ccdf..4fecd0f 100644 --- a/octoserve/var/dms/dms.xml +++ b/octoserve/var/dms/dms.xml @@ -6,7 +6,7 @@ urn:schemas-upnp-org:device:MediaServer:1 - OctopusNet DMS + ##FRIENDLYNAME## Digital Devices GmbH http://www.digitaldevices.de OctopusNet diff --git a/octoserve/var/www/index.html b/octoserve/var/www/index.html index dca5605..e86c29c 100644 --- a/octoserve/var/www/index.html +++ b/octoserve/var/www/index.html @@ -50,6 +50,7 @@ function OnLoad() { var infotable = document.getElementById("infotable"); var tunertable = document.getElementById("tunertable"); + AddRow(infotable, new Array("FW Date",FWVersion(fwdate)) ); AddRow(infotable, new Array("MAC",Octoserve.MAC) ); @@ -106,6 +107,11 @@ function OnLoad() document.write(" " + suffix); +

+ +

diff --git a/octoserve/var/www/system.html b/octoserve/var/www/system.html index 97be9c0..7fb63bb 100644 --- a/octoserve/var/www/system.html +++ b/octoserve/var/www/system.html @@ -1,4 +1,4 @@ - + @@ -6,65 +6,163 @@ -