• The forum software that supports hummy.tv has been upgraded to XenForo 2.1!

    This upgrade brings a number of improvements including the ability to bookmark posts to come back to later. Please bear with us as we continue to tweak things and open a new thread for any questions, issues or suggestions in Site/Forum Issues.

WebIf Tweaks: Server Status Indication (Content Sharing)

Matthew

Member
Some of us have occasional issues with Content Sharing turning itself off, this status can be checked in Diag->DLNA Reset but an immediate display is more convenient.

This change adds such a display to the header.

40894090

A tool-tip details the precise DLNA server status.

Diff:
--- /mod/webif/html/lib/topbar-orig.jim
+++ /mod/webif/html/lib/topbar.jim
@@ -27,11 +27,18 @@
if {[system model] eq "HDR" && [system usbdisks] > 0} {
     source /mod/webif/include/usbeject.jim
}
+set dmson [system param DMS_START_ON]
+set lstn [system is_listening 9000]
+set stat [expr $dmson?"Server is enabled":"Server is disabled"]
+set img [expr $dmson && $lstn?"181_1_00_Help2_Green.png":"181_1_00_Help1_Red.png"]
+set stat [expr $lstn?"$stat and is running.":"$stat and is NOT running."]
source /mod/webif/include/vfd.jim
-puts {
+puts "
<div id=idletime></div>
-</div>
-}
+<div id=serverstat>
+Server Status: &nbsp;<img class=va src=/images/$img title=\"$stat\">
+</div></div>
+"
source /mod/webif/include/toolbar.jim
puts {
<script type=text/javascript src=/js/topbar.js></script>
Diff:
--- /mod/webif/html/css/style-orig.css
+++ /mod/webif/html/css/style.css
@@ -94,7 +94,7 @@
     font-family: vfd, 'Lucida Console', Monaco, monospace;
}

-#idletime
+#idletime, #serverstat
{
     position: absolute;
     left: 50px;
    top: 45px;
     font-style: italic;
     font-size: 12px;
}
-
+#serverstat {
+  left: 32px;
+  top: 65px;
+}
+#serverstat img{
+  width: 26px;
+  height: 26px;
+}
div.footer
{
     clear: both;
 
Top