WEB interface request
-
- Neugieriger
- Beiträge: 6
- Registriert: Samstag 24. April 2004, 18:14
WEB interface request
First excuse My English
Would it be possible to have the same interface on the WEB as on the OSD. I'm talking about the audio OSD which have the Stero/Mono possibility which is missing on WEB interface. At least at Web Interface: 1.4.8.
Why is this so important ?. Because we in the nordic country use the left/right channel with different language.
Would it be possible to have the same interface on the WEB as on the OSD. I'm talking about the audio OSD which have the Stero/Mono possibility which is missing on WEB interface. At least at Web Interface: 1.4.8.
Why is this so important ?. Because we in the nordic country use the left/right channel with different language.
-
- Neugieriger
- Beiträge: 17
- Registriert: Montag 8. November 2004, 23:48
Hello, I'm quite new to the dreambox world. While
playing around I noticed that there is a 'big' difference between
the OSD streaminfo (showing 3 pages of information about the cahnnel) and the WEB streaminfo (showing only as summory of the OSD version).
Could the WEB version be enhanced to match the OSD one?
Thanks.
playing around I noticed that there is a 'big' difference between
the OSD streaminfo (showing 3 pages of information about the cahnnel) and the WEB streaminfo (showing only as summory of the OSD version).
Could the WEB version be enhanced to match the OSD one?
Thanks.
-
- Neugieriger
- Beiträge: 17
- Registriert: Montag 8. November 2004, 23:48
-
- Neugieriger
- Beiträge: 17
- Registriert: Montag 8. November 2004, 23:48
-
- Tuxboxer
- Beiträge: 2452
- Registriert: Montag 21. Oktober 2002, 10:04
Publish it here or if you intend to stay with enigma-programming ask derget for a cvs-accountmirakels hat geschrieben:But what is the best way to get this added to CVS?
Schon gelesen ???
ENIGMA-DOC
ENIGMA-DOC
-
- Neugieriger
- Beiträge: 17
- Registriert: Montag 8. November 2004, 23:48
Ok,
here it is. But note all <tab> are replaced by <spaces>. Isn't there a ways to add attachments to a message?
here it is. But note all <tab> are replaced by <spaces>. Isn't there a ways to add attachments to a message?
Code: Alles auswählen
--- enigma_dyn.cpp.orig 2004-12-10 20:14:08.286382856 +0100
+++ enigma_dyn.cpp 2004-12-10 23:24:45.378795757 +0100
@@ -201,7 +201,7 @@
static eString doStatus(eString request, eString dirpath, eString opt, eHTTPConnection *content)
{
- eString name, provider, vpid, apid, pcrpid, tpid, vidform("n/a"), tsid, onid, sid, pmt;
+ eString name, provider, vpid, apid, pcrpid, tpid, vidform("n/a"), tsid, onid, sid, pmt, namespc;
content->local_header["Content-Type"]="text/html; charset=utf-8";
eString result;
@@ -258,6 +258,7 @@
onid = eString().sprintf("%04xh", sapi->service.getOriginalNetworkID().get());
sid = eString().sprintf("%04xh", sapi->service.getServiceID().get());
pmt = eString().sprintf("%04xh", Decoder::current.pmtpid);
+ namespc = eString().sprintf("%04xh", sapi->service.getDVBNamespace().get());
FILE *bitstream = 0;
@@ -266,7 +267,7 @@
if (bitstream)
{
char buffer[100];
- int xres = 0, yres = 0, aspect = 0;
+ int xres = 0, yres = 0, aspect = 0, framerate = 0;
while (fgets(buffer, 100, bitstream))
{
if (!strncmp(buffer, "H_SIZE: ", 9))
@@ -275,6 +276,8 @@
yres=atoi(buffer+9);
if (!strncmp(buffer, "A_RATIO: ", 9))
aspect=atoi(buffer+9);
+ if (!strncmp(buffer, "F_RATE: ", 8))
+ framerate=atoi(buffer+8);
}
fclose(bitstream);
vidform.sprintf("%dx%d ", xres, yres);
@@ -289,6 +292,25 @@
case 4:
vidform += "(20:9)"; break;
}
+ switch(framerate)
+ {
+ case 1:
+ vidform += ", 23.976 fps"; break;
+ case 2:
+ vidform += ", 24 fps"; break;
+ case 3:
+ vidform += ", 25 fps"; break;
+ case 4:
+ vidform += ", 29.97 fps"; break;
+ case 5:
+ vidform += ", 30 fps"; break;
+ case 6:
+ vidform += ", 50 fps"; break;
+ case 7:
+ vidform += ", 59.94 fps"; break;
+ case 8:
+ vidform += ", 80 fps"; break;
+ }
}
result += "<tr><td>name:</td><td>" + name + "</td></tr>\n";
result += "<tr><td>provider:</td><td>" + provider + "</td></tr>\n";
@@ -301,7 +323,8 @@
result += "<tr><td>sid:</td><td>" + sid + "</td></tr>\n";
result += "<tr><td>pmt:</td><td>" + pmt + "</td></tr>\n";
result += "<tr><td>vidformat:<td>" + vidform + "</td></tr>\n";
-
+ result += "<tr><td>namespace:<td>" + namespc + "</td></tr>\n";
+
result += "</table>\n"
"</body>\n"
"</html>\n";
@@ -2947,7 +2970,7 @@
static eString getstreaminfo(eString request, eString dirpath, eString opts, eHTTPConnection *content)
{
std::stringstream result;
- eString name, provider, vpid, apid, pcrpid, tpid, vidform("n/a"), tsid, onid, sid, pmt;
+ eString name, provider, vpid, apid, pcrpid, tpid, vidform("n/a"), tsid, onid, sid, pmt, namespc;
content->local_header["Content-Type"]="text/html; charset=utf-8";
@@ -2969,6 +2992,7 @@
onid = eString().sprintf("%04xh", sapi->service.getOriginalNetworkID().get());
sid = eString().sprintf("%04xh", sapi->service.getServiceID().get());
pmt = eString().sprintf("%04xh", Decoder::current.pmtpid);
+ namespc = eString().sprintf("%04xh", sapi->service.getDVBNamespace().get());
FILE *bitstream = 0;
@@ -2977,7 +3001,7 @@
if (bitstream)
{
char buffer[100];
- int xres = 0, yres = 0, aspect = 0;
+ int xres = 0, yres = 0, aspect = 0, framerate = 0;
while (fgets(buffer, 100, bitstream))
{
if (!strncmp(buffer, "H_SIZE: ", 9))
@@ -2986,6 +3010,8 @@
yres=atoi(buffer+9);
if (!strncmp(buffer, "A_RATIO: ", 9))
aspect=atoi(buffer+9);
+ if (!strncmp(buffer, "F_RATE: ", 8))
+ framerate=atoi(buffer+8);
}
fclose(bitstream);
vidform.sprintf("%dx%d ", xres, yres);
@@ -3000,6 +3026,26 @@
case 4:
vidform += "(20:9)"; break;
}
+ switch(framerate)
+ {
+ case 1:
+ vidform += ", 23.976 fps"; break;
+ case 2:
+ vidform += ", 24 fps"; break;
+ case 3:
+ vidform += ", 25 fps"; break;
+ case 4:
+ vidform += ", 29.97 fps"; break;
+ case 5:
+ vidform += ", 30 fps"; break;
+ case 6:
+ vidform += ", 50 fps"; break;
+ case 7:
+ vidform += ", 59.94 fps"; break;
+ case 8:
+ vidform += ", 80 fps"; break;
+ }
+
}
result << "<html>" CHARSETMETA "<head><title>Stream Info</title><link rel=\"stylesheet\" type=\"text/css\" href=\"/webif.css\"></head><body bgcolor=#ffffff>"
@@ -3020,6 +3066,7 @@
"<tr><td>SID:</td><td>" << sid << "</td></tr>"
"<tr><td>PMT:</td><td>" << pmt << "</td></tr>"
"<tr><td>Video Format:<td>" << vidform << "</td></tr>"
+ "<tr><td>Namespace:<td>" << namespc << "</td></tr>"
"</table>"
"</body>"
"</html>";
-
- Neugieriger
- Beiträge: 17
- Registriert: Montag 8. November 2004, 23:48
While I'm at it. I saw a small patch for hddSetup in some other topic on this forum which is not included in CVS yet. So I just copy it here. I don't know
who originally posted this, sorry about that...
Looks like a usefull patch to me...
who originally posted this, sorry about that...
Code: Alles auswählen
--- enigma_dyn_conf.cpp.org 2004-12-10 23:30:05.381491388 +0100
+++ enigma_dyn_conf.cpp 2004-12-10 23:30:17.794121996 +0100
@@ -142,12 +142,12 @@
eConfig::getInstance()->getKey("/extras/hdparm-s", ti);
eConfig::getInstance()->getKey("/extras/hdparm-m", ac);
- if (ac)
+ if (ti)
{
cmd.sprintf("hdparm -S %d /dev/ide/host0/bus0/target0/lun0/disc", ti);
system(cmd.c_str());
}
- if (ti)
+ if (ac)
{
cmd.sprintf("hdparm -M %d /dev/ide/host0/bus0/target0/lun0/disc", ac);
system(cmd.c_str());