#Get Tuner Info
niminfo = ""
for nim in nimmanager.nimList():
- niminfo += "<e2nim>"+nim+"</e2nim>"
+ info = nim.split(":")
+
+ niminfo += "\n\t\t\t<e2nim>\n"
+ niminfo += "\t\t\t\t<name>%s</name>\n" %(info[0])
+ niminfo += "\t\t\t\t<type>%s</type>\n" %(info[1])
+ niminfo += "\t\t\t</e2nim>"
+
list.append(niminfo)
#Get HDD Info
hdddata = Harddisk(0)
if hdddata.model() != "":
- hddinfo = "<model>"+hdddata.model()+"</model>"
- hddinfo += "<capacity>"+hdddata.capacity()+"</capacity>"
- hddinfo += "<free>"+str(hdddata.free())+" MB</free>"
+ hddinfo = "\n\t\t\t<model>"+hdddata.model()+"</model>\n"
+ hddinfo += "\t\t\t<capacity>"+hdddata.capacity()+"</capacity>\n"
+ hddinfo += "\t\t\t<free>"+str(hdddata.free())+" MB</free>"
else:
- hddinfo = "no harddisc detected"
+ hddinfo = "\n\t\t\t<model>N/A</model>\n"
+ hddinfo += "\t\t\t<capacity>-</capacity>\n"
+ hddinfo += "\t\t\t<free>-</free>"
list.append(hddinfo)
#Get Service Info
<div id="CurrentService"></div>
<div id="VolumePanel"></div>
<div id="RecordButton"><img alt="Record" src="/webdata/gfx/record.gif" onclick="recordingPushed();" /></div>
- <div id="SignalPanel"><img src="/webdata/gfx/signal.png" title="show SignalInfoPanel" onclick="openSignalDialog();" title="view Signal Info"></div>
+ <div id="SignalPanel"><img src="/webdata/gfx/signal.png" alt="SP" onclick="openSignalDialog();" title="view Signal Info"></div>
<div id="StreaminterfaceButton"><a href="/webdata/streaminterface.html" target="_blank" ><img alt="Streaminterface" border="0" src="/webdata/gfx/screen.png" /></a></div>
<div id="CurrentTime" onclick="openHiddenFunctions();"></div>
</div>
</div>
<hr />
- <div id="BodyContentChannellist" class="BodyContentChannellist"></div>
+ <div id="BodyContent" class="BodyContent"></div>
</div>
***************************************************************/
/* define height and width of scrollable area. Add 16px to width for scrollbar */
+div.BodyContent {
+ border: 1px solid #000;
+ height: 455px;
+ overflow: auto;
+ margin: 0px 9px 0px;
+ font-size: 12px;
+}
+
div.BodyContentChannellist {
clear: both;
- border: 1px solid #000;
height: 450px;
overflow: auto;
- margin: 0px 9px 0px;
/* width: 780px; */
}
div.BodyContentChannellist table {
float: left;
width: 760px;
+ height: 450px;
}
/* define width of table. Add 16px to width for scrollbar. */
color: #00BCBC;
background-color: #DDD;
}
+
+.pageHeader {
+ width:100%;
+ background-color: #0066CC;
+ color: #FFF;
+ font-weight:bold;
+}
+
+.aboutHeader {
+ width:100%;
+ color:#444444;
+ font-weight:bold;
+ background-color:#DDEEFF;
+}
+
+.about {
+ border: 1px solid #AAA;
+ width: 100%;
+}
+
+.fullwidth {
+ width: 100%;
+}
+
+.aboutSection{
+ width:100%;
+}
+
+.aboutSectionLeft{
+ width:50%;
+ vertical-align: top;
+}
+
+.aboutSectionRight{
+ width:50%;
+ vertical-align: top;
+}
+
+.aboutElement{
+ float: none;
+}
+
+.aboutElementLeft{
+ font-weight:bold;
+ width: 45%;
+ text-align: left;
+}
+
+.aboutElementRight{
+ width: 55%;
+}
var tplEPGListFooter = "</table>";
// ServiceList Templates
-var tplServiceListHeader = '<table border="0" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
+var tplServiceListHeader = '<div class="BodyContentChannellist">\n';
+ tplServiceListHeader += '<table border="0" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
tplServiceListHeader += '<thead class="fixedHeader">\n';
tplServiceListHeader += '<tr>\n';
tplServiceListHeader += '<th><div class="sListHeader">ServiceList</div>\n';
tplServiceListItem += '<td colspan="2"><div id="%(servicereference)EPGNOW"></div></td>\n';
tplServiceListItem += '</tr>\n';
-var tplServiceListFooter = "</tbody></table>\n";
+var tplServiceListFooter = "</tbody>\n</table>\n</div>\n";
//
var tplServiceListEPGItem = '<div class="sListEPGTime">%(starttime)</div>\n';
var tplAddTimerFormCheckbox = '';
tplAddTimerFormCheckbox += '<input type="checkbox" id="%(id)" name="%(name)" value="%(value)" %(checked)> %(txt) ';
-var tplAbout = '<table align="center" border="0" width="80%">\n';
- tplAbout += '<tr><td align="left"><b>Box Info:</b></td></tr>\n';
- tplAbout += '<tr><td align="left"><b>Enigma Version: </b>%(enigmaVersion)</td>\n';
- tplAbout += '<td align="left"><b>Service Info:</b></td></tr>\n';
- tplAbout += '<tr><td align="left"><b>Frontprozessor Version: </b>%(fpVersion)</td>\n';
- tplAbout += '<td align="left">Name: %(serviceName)</td></tr>\n';
- tplAbout += '<tr><td align="left"><b>Webinterface Version: </b>%(webifversion)</td>\n';
- tplAbout += '<td align="left">Provider: %(serviceProvider)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td>\n';
- tplAbout += '<td align="left">Videoformat: %(serviceAspect)</tr>\n';
- tplAbout += '<tr><td align="left"><b>detected Tuner:<br></b>%(tunerInfo)</td>\n';
- tplAbout += '<td align="left">Namespace: %(serviceNamespace)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td><td align="left"></br></td></tr>\n';
- tplAbout += '<tr><td align="left"><b>Harddisc Details:<br></b></td>\n';
- tplAbout += '<td align="left"><b>PIDs:</b></td></tr>\n';
- tplAbout += '<tr><td align="left">%(hddInfo)</td>\n';
- tplAbout += '<td align="left">VideoPID: %(vPIDh) (%(vPID)d)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td>\n';
- tplAbout += '<td align="left">AudioPID: %(aPIDh) (%(aPID)d)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td>\n';
- tplAbout += '<td align="left">PCRPID: %(pcrIDh) (%(pcrID)d)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td>\n';
- tplAbout += '<td align="left">PMTPID: %(pmtPIDh) (%(pmtPID)d)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td>\n';
- tplAbout += '<td align="left">TXTPID: %(txtPIDh) (%(txtPID)d)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td>\n';
- tplAbout += '<td align="left">TSID: %(tsIDh) (%(tsID)d)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td>\n';
- tplAbout += '<td align="left">ONID: %(onIDh) (%(onID)d)</td></tr>\n';
- tplAbout += '<tr><td align="left"></br></td>\n';
- tplAbout += '<td align="left">SID: %(sidh) (%(sid)d)</td></tr>\n';
- tplAbout += '</table>\n';
+var tplAbout = '<table class="aboutSection">\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<th colspan="2" class="pageHeader">About</th>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutSectionLeft">\n';
+ tplAbout += '<table class="fullwidth">\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="fullwidth">\n';
+ tplAbout += '<table cellspacing="0" class="about">\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<th colspan="2" class="aboutHeader">Software</th>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Enigma Version:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(enigmaVersion)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Frontprozessor Version:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(fpVersion)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Webinterface Version:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(webifversion)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '</table>\n';
+ tplAbout += '</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="fullwidth">\n';
+ tplAbout += '<table cellspacing="0" class="about">\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<th colspan="2" class="aboutHeader">Detected Tuners</th>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '%(tunerInfo)';
+ tplAbout += '</table>\n';
+ tplAbout += '</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="fullwidth">\n';
+ tplAbout += '<table cellspacing="0" class="about">\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<th colspan="2" class="aboutHeader">Harddisk</th>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Model</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(hddmodel)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Capacity</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(hddcapacity)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Free</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(hddfree)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '</table>\n';
+ tplAbout += '</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '</table>\n';
+ tplAbout += '</td>\n';
+ tplAbout += '<td class="aboutSectionRight">\n';
+ tplAbout += '<table class="fullwidth">\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="fullwidth">\n';
+ tplAbout += '<table cellspacing="0" class="about">\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<th colspan="2" class="aboutHeader">Serviceinfo</th>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Name:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(serviceName)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Provider:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(serviceProvider)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Videoformat:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(serviceAspect)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">Namespace:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(serviceNamespace)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '</table>\n';
+ tplAbout += '</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="fullwidth">\n';
+ tplAbout += '<table cellspacing="0" class="about">\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<th colspan="2" class="aboutHeader">PIDs</th>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">VideoPID:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(vPIDh) (%(vPID)d)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">AudioPID:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(aPIDh) (%(aPID)d)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">PCRID:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(pcrIDh) (%(pcrID)d)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">PMTPID:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(pmtPIDh) (%(pmtPID)d)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">TXTPID:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(txtPIDh) (%(txtPID)d)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">TSID:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(tsIDh) (%(tsID)d)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">ONID:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(onIDh) (%(onID)d)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '<tr>\n';
+ tplAbout += '<td class="aboutElementLeft">SID:</td>\n';
+ tplAbout += '<td class="aboutElementRight">%(sidh) (%(sid)d)</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '</table>\n';
+ tplAbout += '</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '</table>\n';
+ tplAbout += '</td>\n';
+ tplAbout += '</tr>\n';
+ tplAbout += '</table>\n';
+
+var tplAboutTuner = '<tr>\n';
+ tplAboutTuner += '<td class="aboutElementLeft">%(name)</td>\n';
+ tplAboutTuner += '<td class="aboutElementRight">%(type)</td>\n';
+ tplAboutTuner += '</tr>\n';
+
var tplExtraHiddenFunctions = '<ul style="list-style-type:disc">';
tplExtraHiddenFunctions += '<li><div onclick="restartTwisted()">Restart Twisted</div></li>';
listerHtml += RND(tplTimerListItem, namespace);
}
listerHtml += tplTimerListFooter;
- $('BodyContentChannellist').innerHTML = listerHtml;
- setBodyMainContent('BodyContentChannellist');
+ $('BodyContent').innerHTML = listerHtml;
+ setBodyMainContent('BodyContent');
}
}
function repeatedReadable(num) {
'eventID': addTimerEditFormObject["eventID"]
};
var listerHtml = RND(tplAddTimerForm, namespace);
- $('BodyContentChannellist').innerHTML = listerHtml;
+ $('BodyContent').innerHTML = listerHtml;
// Empty some stuff, but keep others to have the performance
var tmp1 = addTimerEditFormObject["RadioList"];
listerHtml += RND(tplServiceListItem, namespace);
}
listerHtml += tplServiceListFooter;
- $('BodyContentChannellist').innerHTML = listerHtml;
- setBodyMainContent('BodyContentChannellist');
+ $('BodyContent').innerHTML = listerHtml;
+ setBodyMainContent('BodyContent');
loadServiceEPGNowNext(servicereftoloadepgnow);
debug("incomingChannellist " + typeof(loadedChannellist[servicereftoloadepgnow]));
}
listerHtml += RND(tplMovieListItem, namespace);
}
listerHtml += tplMovieListFooter;
- $('BodyContentChannellist').innerHTML = listerHtml;
- setBodyMainContent('BodyContentChannellist');
+ $('BodyContent').innerHTML = listerHtml;
+ setBodyMainContent('BodyContent');
}
}
// send Messages
function showMessageSendForm(){
- $('BodyContentChannellist').innerHTML = tplMessageSendForm;
+ $('BodyContent').innerHTML = tplMessageSendForm;
}
function sendMessage(messagetext,messagetype,messagetimeout){
if(!messagetext){
// PowerState Code
function showPowerStateSendForm(){
- $('BodyContentChannellist').innerHTML = tplPowerStateSendForm;
+ $('BodyContent').innerHTML = tplPowerStateSendForm;
}
function sendPowerState(newState){
doRequest(url_powerstate+'?newstate='+newState, incomingPowerStateResult, false);
var result = b.item(0).getElementsByTagName('e2result').item(0).firstChild.data;
var resulttext = b.item(0).getElementsByTagName('e2resulttext').item(0).firstChild.data;
var tplPowerStateSendForm2 = '<h1>PowerState is changing to:'+resulttext+ '</h1>' + tplPowerStateSendForm;
- $('BodyContentChannellist').innerHTML = tplPowerStateSendForm2;
+ $('BodyContent').innerHTML = tplPowerStateSendForm2;
} else {
- $('BodyContentChannellist').innerHTML = "<h1>some unknown error</h1>" + tplPasswordSendForm;
+ $('BodyContent').innerHTML = "<h1>some unknown error</h1>" + tplPasswordSendForm;
}
}
}
}
function openGrabPicture() {
- if($('BodyContentChannellist').innerHTML != tplRCGrab) {
- $('BodyContentChannellist').innerHTML = tplRCGrab;
+ if($('BodyContent').innerHTML != tplRCGrab) {
+ $('BodyContent').innerHTML = tplRCGrab;
}
debug("openGrabPicture");
var buffer = new Image();
downloadStart = new Date().getTime();
buffer.src = '/grab?' + downloadStart;
$('grabPageIMG').height(400);
- tplRCGrab = $('BodyContentChannellist').innerHTML;
+ tplRCGrab = $('BodyContent').innerHTML;
}
function incomingRemoteControlResult(request){
if(request.readyState == 4){
* 1600x1280
if(screenH == 800) {
debug("size 1");
- $("BodyContentChannellist").style.height = '20%';
+ $("BodyContent").style.height = '20%';
} else if(screenH == 1024) {
debug("1024")
- $("BodyContentChannellist").style.height = '760px';
+ $("BodyContent").style.height = '760px';
} else {
alert("unsupported screensize");
var tunerinfo = "";
var nims = xml.getElementsByTagName('e2tunerinfo').item(0).getElementsByTagName("e2nim");
+ debug("nims: "+nims.length);
for(var i=0;i< nims.length;i++){
- tunerinfo += nims.item(i).firstChild.data+"<br>";
+
+ name = nims.item(i).getElementsByTagName("name").item(0).firstChild.data;
+ type = nims.item(i).getElementsByTagName("type").item(0).firstChild.data;
+ debug(name);
+ debug(type);
+ var ns = { 'name' : name, 'type' : type};
+ tunerinfo += RND(tplAboutTuner, ns);
+
}
var hdddata = xml.getElementsByTagName('e2hddinfo').item(0);
- var hddinfo = "";
- if(hdddata.firstChild.data != "None"){
- hddinfo += "Model: "+hdddata.getElementsByTagName("model").item(0).firstChild.data;
- hddinfo += "<br>Capacity: "+hdddata.getElementsByTagName("capacity").item(0).firstChild.data;
- hddinfo += "<br>Free: "+hdddata.getElementsByTagName("free").item(0).firstChild.data;
- }else{
- hddinfo +="no Harddisc";
- }
+
+ var hddmodel = hdddata.getElementsByTagName("model").item(0).firstChild.data;
+ var hddcapacity = hdddata.getElementsByTagName("capacity").item(0).firstChild.data;
+ var hddfree = hdddata.getElementsByTagName("free").item(0).firstChild.data;
var namespace = {
'enigmaVersion': xml.getElementsByTagName('e2enigmaversion').item(0).firstChild.data
,'fpVersion': fptext
,'webifversion': xml.getElementsByTagName('e2webifversion').item(0).firstChild.data
,'tunerInfo': tunerinfo
- ,'hddInfo': hddinfo
+ ,'hddmodel': hddmodel
+ ,'hddcapacity': hddcapacity
+ ,'hddfree': hddfree
,'serviceName': xml.getElementsByTagName('e2servicename').item(0).firstChild.data
,'serviceProvider': xml.getElementsByTagName('e2serviceprovider').item(0).firstChild.data
,'serviceAspect': xml.getElementsByTagName('e2serviceaspect').item(0).firstChild.data
,'sid': xml.getElementsByTagName('e2sid').item(0).firstChild.data
,'sidh': parseInt(ownLazyNumber(xml.getElementsByTagName('e2sid').item(0).firstChild.data),16)+" "
};
- $('BodyContentChannellist').innerHTML = RND(tplAbout, namespace);
- setBodyMainContent('BodyContentChannellist');
+ $('BodyContent').innerHTML = RND(tplAbout, namespace);
+ setBodyMainContent('BodyContent');
} catch (e) {
debug("About parsing Error" + e);
-<e2:screen name="AboutWebScreen"><?xml version="1.0" encoding="UTF-8"?>\r
-<e2abouts><e2:element source="About" ><e2:convert type="web:ListFiller" >\r
- <e2about>\r
- <e2enigmaversion><e2:item name="enigmaVersion" filter="xml"/></e2enigmaversion>\r
-<!--\r
- <e2landhcp><e2:item name="lanDHCP" filter="xml"/></e2landhcp>\r
- <e2lanip><e2:item name="lanIP" filter="xml"/></e2lanip>\r
- <e2lanmask><e2:item name="lanMask" filter="xml"/></e2lanmask>\r
- <e2langw><e2:item name="lanGW" filter="xml"/></e2langw>\r
- <e2landns><e2:item name="lanDNS" filter="xml"/></e2landns>\r
--->\r
- <e2fpversion><e2:item name="fpVersion" filter="xml"/></e2fpversion>\r
- <e2webifversion><e2:item name="WebIfVersion" /></e2webifversion>\r
- <e2tunerinfo><e2:item name="tunerInfo" /></e2tunerinfo>\r
- <e2hddinfo><e2:item name="hddInfo" /></e2hddinfo>\r
- <e2servicename><e2:item name="serviceName" filter="xml"/></e2servicename>\r
- <e2serviceprovider><e2:item name="serviceProvider" filter="xml"/> </e2serviceprovider>\r
- <e2serviceaspect><e2:item name="serviceAspect" filter="xml"/></e2serviceaspect>\r
- <e2servicenamespace><e2:item name="serviceNamespace" filter="xml"/></e2servicenamespace>\r
- <e2vpid><e2:item name="vPID" filter="xml"/></e2vpid>\r
- <e2apid><e2:item name="aPID" filter="xml"/></e2apid>\r
- <e2pcrid><e2:item name="pcrID" filter="xml"/></e2pcrid>\r
- <e2pmtpid><e2:item name="pmtPID" filter="xml"/></e2pmtpid>\r
- <e2txtpid><e2:item name="txtPID" filter="xml"/></e2txtpid>\r
- <e2tsid><e2:item name="tsID" filter="xml"/></e2tsid>\r
- <e2onid><e2:item name="onID" filter="xml"/></e2onid>\r
- <e2sid><e2:item name="sid" filter="xml"/></e2sid>\r
- </e2about>\r
- </e2:convert>\r
- <e2:convert type="web:TextToHTML" /></e2:element>\r
-</e2abouts>\r
+<e2:screen name="AboutWebScreen"><?xml version="1.0" encoding="UTF-8"?>
+<e2abouts><e2:element source="About" ><e2:convert type="web:ListFiller" >
+ <e2about>
+ <e2enigmaversion><e2:item name="enigmaVersion" filter="xml"/></e2enigmaversion>
+<!--
+ <e2landhcp><e2:item name="lanDHCP" filter="xml"/></e2landhcp>
+ <e2lanip><e2:item name="lanIP" filter="xml"/></e2lanip>
+ <e2lanmask><e2:item name="lanMask" filter="xml"/></e2lanmask>
+ <e2langw><e2:item name="lanGW" filter="xml"/></e2langw>
+ <e2landns><e2:item name="lanDNS" filter="xml"/></e2landns>
+-->
+ <e2fpversion><e2:item name="fpVersion" filter="xml"/></e2fpversion>
+ <e2webifversion><e2:item name="WebIfVersion" /></e2webifversion>
+ <e2tunerinfo><e2:item name="tunerInfo" />
+ </e2tunerinfo>
+ <e2hddinfo><e2:item name="hddInfo" />
+ </e2hddinfo>
+ <e2servicename><e2:item name="serviceName" filter="xml"/></e2servicename>
+ <e2serviceprovider><e2:item name="serviceProvider" filter="xml"/> </e2serviceprovider>
+ <e2serviceaspect><e2:item name="serviceAspect" filter="xml"/></e2serviceaspect>
+ <e2servicenamespace><e2:item name="serviceNamespace" filter="xml"/></e2servicenamespace>
+ <e2vpid><e2:item name="vPID" filter="xml"/></e2vpid>
+ <e2apid><e2:item name="aPID" filter="xml"/></e2apid>
+ <e2pcrid><e2:item name="pcrID" filter="xml"/></e2pcrid>
+ <e2pmtpid><e2:item name="pmtPID" filter="xml"/></e2pmtpid>
+ <e2txtpid><e2:item name="txtPID" filter="xml"/></e2txtpid>
+ <e2tsid><e2:item name="tsID" filter="xml"/></e2tsid>
+ <e2onid><e2:item name="onID" filter="xml"/></e2onid>
+ <e2sid><e2:item name="sid" filter="xml"/></e2sid>
+ </e2about>
+ </e2:convert>
+ <e2:convert type="web:TextToHTML" /></e2:element>
+</e2abouts>
</e2:screen>
\ No newline at end of file
print result.quality.getSignallevel()
- if result.quality.sl is 0:
+ if result.quality.sl is 0 and len(extra) > 0:
begin = extra[0].find('SignalStrength=')+15
-
+
done = False
end = begin+1
e = encrypted and _("Yes") or _("No")
res.append( MultiContentEntryText(pos=(0, 0), size=(470, 35), font=0, flags=RT_HALIGN_LEFT, text=essid) )
- res.append( MultiContentEntryText(pos=(480, 0), size=(90, 35), font=0, flags=RT_HALIGN_RIGHT, text=signal+"%") )
- res.append( MultiContentEntryText(pos=(0, 40), size=(180, 20), font=1, flags=RT_HALIGN_LEFT, text=_("Max. Bitrate: ")+maxrate) )
- res.append( MultiContentEntryText(pos=(190, 40), size=(180, 20), font=1, flags=RT_HALIGN_CENTER, text=_("Encrypted: ")+e) )
- res.append( MultiContentEntryText(pos=(380, 40), size=(190, 20), font=1, flags=RT_HALIGN_RIGHT, text=_("Interface: ")+iface) )
+ res.append( MultiContentEntryText(pos=(480, 0), size=(90, 35), font=0, flags=RT_HALIGN_RIGHT, text="%s%" %signal))
+ res.append( MultiContentEntryText(pos=(0, 40), size=(180, 20), font=1, flags=RT_HALIGN_LEFT, text=_("Max. Bitrate: %s") %maxrate ))
+ res.append( MultiContentEntryText(pos=(190, 40), size=(180, 20), font=1, flags=RT_HALIGN_CENTER, text=_("Encrypted: %s") %e ))
+ res.append( MultiContentEntryText(pos=(380, 40), size=(190, 20), font=1, flags=RT_HALIGN_RIGHT, text=_("Interface: %s") %iface ))
return res