[webif] Web interface

Backup worked first time. Haven't done a restore, though it does add an option to restore the backup file now.

Wanted to add something to the Scheduled recordings so went to the EPG and did a search for Films/Drama and got an error. Repeated the search for sport and got the same error as in

It looks like you have a channel in the EPG info which isn't in your channels list. I'll add code to deal with that case!
 
After a bit of investigation, it seems that my HD box switches the attached HDD file system (ext3) from r(ead)w(rite) to r(ead)o(nly) after doing a 'Browse Media Files'

I have no idea why it would be doing that. I think they best thing is to do each of the thing that the code does in turn to try and pinpoint what's causing the problem.

Try these in order and see if any of them trigger the issue:

Code:
humax# /mod/bin/busybox -h "/media/My Video"
humax# ls "/media/My Video"

The browse module doesn't do much else apart from access each HMT file in turn..
 
This is looking really good so far, but I think I've hit a bug - when restoring, it only output the following
Code:
Restoring scheduled events...
  Restoring It's Your Round
    No change in channel service.

Good old SQL throwing a wobbly about a query with a quote in it, what a surprise :rolleyes:

Initially I thought that it had worked, but it looks like it didn't touch the database at all, which is good.

If you want, I'd be happy to email you a copy of the sqldump of our scheduled programmes and the backup file so that you can use them for testing.

Stupid mistake - I'll fix it. I can find some programmes to record with apostrophe's in the title..
 
0.6.0-2 should fix these things. Restoration of events with apostrophes, EPG entries with no matching channel, width of OPT+ menu.

Thanks for the reports.
 
Try these in order and see if any of them trigger the issue:

Code:
humax# /mod/bin/busybox -h "/media/My Video"
humax# ls "/media/My Video"

humax# /mod/bin/busybox -h "/media/My Video"
-/bin/sh: /mod/bin/busybox: Permission denied

humax# mount
.......
/dev/sda1 on /media/drive1 type ext3 (rw,data=ordered)
/dev/sda1 on /media/virtual type ext3 (rw,data=ordered)
humax#

I don't know what the -h option does. (?)
 
0.6.0-2 should fix these things. Restoration of events with apostrophes, EPG entries with no matching channel, width of OPT+ menu.

Thanks for the reports.
Thanks af123. Fixed both issues for me on the HDR (and, interestingly, my HD which had the same issues. Ref matching channel, do you need the channels list or something?).

On the HD, I have another minor problem - there is nothing in the Now/Next page of the EPG, but it does display the results of searches, which is better than before when it had no Now/Next or Search results.

Thanks for all the updates. Sure is fun getting more and more out of the boxes.
 
On the HD, I have another minor problem - there is nothing in the Now/Next page of the EPG, but it does display the results of searches, which is better than before when it had no Now/Next or Search results

Would you be able to run the now/next script from telnet and see if there are any errors?

Code:
humax# /mod/var/mongoose/include/epg.jim

Ref matching channel, do you need the channels list or something?

Yes, the EPG data just has the Service ID in it so I need to cross reference that with the channels list to get the channel number and name.
 
Would you be able to run the now/next script from telnet and see if there are any errors?

Code:
humax# /mod/var/mongoose/include/epg.jim

Yes, the EPG data just has the Service ID in it so I need to cross reference that with the channels list to get the channel number and name.
Ran the command and redirected it to a file:
Code:
<style type=text/css>
.ui-button, .ui-button-text { padding: 0; font-size: 12px; }
#moresearch { display: none; }
#morebutton { position: relative; top: -12px; }
</style>

<form method=get action=/cgi-bin/epg_search.jim>
<fieldset>
<legend>EPG Search</legend>
<label for=term>Query</label>
<input type=text name=term id=term size=20 maxlength=255 value=""
    class="text ui-widget-content ui-corner-all">
<input type=submit value=Search>
<input type=checkbox name=full id=full
>
<label for=full>Search descriptions as well as titles.</label>
<font class=footnote style="margin-left: 5em">
    Click down arrow below for more options.
</font>
<div id=moresearch class=hidden>

    <br>
    <fieldset>
    <legend>Content Type Searches</legend>
    <table>
    <tr>
    <td>

<a href=/cgi-bin/epg_search.jim?ct=1>
        <img height=18 border=0 src=/images/173_3_00_G3_Movie.png>
        &nbsp;Film/Drama</a>
</td><td>
<a href=/cgi-bin/epg_search.jim?ct=2>
        <img height=18 border=0 src=/images/173_3_00_G3_News.png>
        &nbsp;News/Current affairs</a>
</td><td>
<a href=/cgi-bin/epg_search.jim?ct=4>
        <img height=18 border=0 src=/images/173_3_00_G3_Sports.png>
        &nbsp;Sport</a>
</td><td>
<a href=/cgi-bin/epg_search.jim?ct=9>
        <img height=18 border=0 src=/images/173_3_00_G3_Education.png>
        &nbsp;Education/Science/Factual</a>
</td><td>
<a href=/cgi-bin/epg_search.jim?ct=10>
        <img height=18 border=0 src=/images/173_3_00_G3_Leisure.png>
        &nbsp;Leisure</a>
</td></tr><tr><td>
<a href=/cgi-bin/epg_search.jim?ct=7>
        <img height=18 border=0 src=/images/173_3_00_G3_Art.png>
        &nbsp;Arts/Culture</a>
</td><td>
<a href=/cgi-bin/epg_search.jim?ct=3>
        <img height=18 border=0 src=/images/173_3_00_G3_Show.png>
        &nbsp;Show/Game show</a>
</td><td>
<a href=/cgi-bin/epg_search.jim?ct=5>
        <img height=18 border=0 src=/images/173_3_00_G3_Children.png>
        &nbsp;Children</a>
</td><td>
<a href=/cgi-bin/epg_search.jim?ct=8>
        <img height=18 border=0 src=/images/173_3_00_G3_Society.png>
        &nbsp;Social/Political/Economic</a>
</td><td>
<a href=/cgi-bin/epg_search.jim?ct=6>
        <img height=18 border=0 src=/images/173_3_00_G3_Music.png>
        &nbsp;Music/Ballet/Dance</a>
</tr></table></fieldset>

    </div>

</fieldset>
<center><img id=morebutton src=/img/more_show.png></center>
</form>

<script type=text/javascript>
$('input:submit').button();
$('#morebutton').click(function(e) {
    e.preventDefault();
    $('#moresearch').slideToggle('slow');
    if ($('#morebutton').attr('src') == '/img/more_show.png')
        $('#morebutton').attr('src', '/img/more_hide.png');
    else
        $('#morebutton').attr('src', '/img/more_show.png');
});

</script>

<div style="
        align: center;
        font-size: 1.2em;
        margin: 1em;
        "
        id="spinner">
        <img src="/img/loading.gif">
        Loading Now/Next Information...
        </div>

        <script type=text/javascript>
        $(document).ready(function () {
            $('#spinner').hide('slow');
        });
        </script>

<div id=dialogue></div>
<script type=text/javascript>
    $(document).ready(function() {
        var $dialog = $('#dialogue').dialog({
            title: "Programme Details",
            modal: false, autoOpen: false,
            height: 500, width: 700,
            show: 'scale', hide: 'fade',
            draggable: true, resizable: true,
            buttons: { "Close":
                function() {$(this).dialog('close');}},
            close: function(e,u) { $('#dialogue').empty().html(
                '<img src="/img/loading.gif" alt="loading">'); }
        });
        $('a.event').click(function(e) {
            e.preventDefault();
            var url = '/cgi-bin/epg_info.jim?service=' +
                $(this).attr('xs') + '&event=' +
                $(this).attr('xe') + '&bare=1';
            $('#dialogue').load(url);
            $dialog.dialog('open');
        });
    });
</script>

    <table class=borders>
    <tr>
        <th colspan=3>Channel</th>
        <th>On Now</th>
        <th>On Next</th>
    </tr>

</table>

    <a href=/cgi-bin/settings.jim>
    <img border=0 height=14 src=/images/421_1_00_CH_Title_2R_Arrow.png>
    Visit settings to change EPG options.
    </a><br>

<font class=footnote>
    Retrieved in: 0.464 seconds.
    Rendered in: 0.473 seconds.
    </font>

Looks like there's nothing there.

Ran same on HDR and there's much more in it - but then there would be as it's working, so I didn't bother to post the output.

How do I get you a channel list, then?

PS I don't have anything in the favourite channels list on either box, I just cut down the stored channels list from the ones found in the search. Does that help?
 
If you look at the settings screen, are you limiting the EPG display to an empty favourites list by any chance?
 
If you look at the settings screen, are you limiting the EPG display to an empty favourites list by any chance?
No, I had checked that - it was/is set to None, just like the HDR box. Tried setting it to first favourite group which is empty, and no change, even when setting it back.

Can't see why it's different to the HDR when I have tried to keep their set-ups the same.
 
Doh.
it should have been

/mod/bin/busybox/du -h "/media/My Video"

humax# /mod/bin/busybox/du -h "/media/My Video"
du: /media/My Video: No such file or directory

I don't have a 'my video' directory, so changed it to what I thought it should be and stripped off the redundant quotes, i.e.:

humax# /mod/bin/busybox/du -h /media/drive1/Video

The result was very telling - looks like 'BusyBox - The Swiss Army Knife of Embedded Linux'....is indeed so! :)

I have e-mailed the complete result to you via email at hummypkg as it's rather large - and do I really want an excerpt of my viewing habits open to all ???!!! :D

...looks like I may have to waste the recordings and do a reformat of the USB HDD, but of course I don't want to do that if I can possibly avoid it. :(

Any suggestions - is there some sort of disk reorg./repair utility I can use?.........busybox/fsck ?
 
No, I had checked that - it was/is set to None, just like the HDR box. Tried setting it to first favourite group which is empty, and no change, even when setting it back.

Can't see why it's different to the HDR when I have tried to keep their set-ups the same.

Ok, try running retrieving a now listing from the command line, just run:

Code:
humax# epg now

If you don't get any output from that, then could you send me your EPG data file (/media/drive1/epgsavedata on the HD) please (to <my forum name>@hummypkg.org.uk? I should be able to see what is going wrong from that.
 
Ok, try running retrieving a now listing from the command line, just run:

Code:
humax# epg now

If you don't get any output from that, then could you send me your EPG data file (/media/drive1/epgsavedata on the HD) please (to <my forum name>@hummypkg.org.uk? I should be able to see what is going wrong from that.

I get /mnt/hd1/dvbepg/epg.dat: No such file or directory.

df lists /dev/sda1 as /media/drive1. Nothing about hd1 being mounted anywhere.

emailed epgsavedata as requested.
 
Thanks. I can replicate your problem now...

The file you emailed doesn't have any current EPG data in it. It is data from May, which is why there is nothing on now/next but keyword search works.

Code:
humax# epg  -f ./epgsavedata -S 28160 dump | grep start_date | sed -n '1p;$p'
                    start_date: 0xd996 0:00:00 (Sat May 21 00:00:00 2011)
                    start_date: 0xd99d 23:00:00 (Sat May 28 23:00:00 2011)
 
The file you emailed doesn't have any current EPG data in it. It is data from May, which is why there is nothing on now/next but keyword search works.

Code:
humax# epg  -f ./epgsavedata -S 28160 dump | grep start_date | sed -n '1p;$p'
                    start_date: 0xd996 0:00:00 (Sat May 21 00:00:00 2011)
                    start_date: 0xd99d 23:00:00 (Sat May 28 23:00:00 2011)
Doh! missed the date by not doing an ls -l, and it's not getting updated on powerdown.

Had noticed today that the HDR is asking to format the drive when it boots up, otherwise it's not able to record to it. This is weird as I did format this drive to the machine, but have been using it in the HDR too.

Any ideas if I can get it to accept this drive again? It's obviously write enabled as I am able to create files.

Thanks
 
I don't know why that file isn't being updated. Assuming the aerial signal strength is reasonable it should be. Does the information in the on-screen guide look up-to-date?

The HD and HDR do use different formats for the external drive. The HD expects to see a Video directory in the root of the drive and prompts you to format it if the directory isn't there, so if you don't have a directory by that name then try creating one.
 
Back
Top