Self Contained Web Server / Interface (1 Viewer)

AngryBadger

Portal Member
July 8, 2008
16
0
Home Country
United Kingdom United Kingdom
Thankyou for that Big_Kev. That looks like the answer! I knew it was something obvious i was missing! Unfortunately my PSU died on my server today so couldn't test it but hopefully Ill receive my replacement tomorrow and have a chance to play.

Thanks again
 

cheezey

Community Plugin Dev
August 26, 2004
1,560
312
57
West Yorks, UK
Home Country
United Kingdom United Kingdom

Big_Kev

Portal Pro
June 8, 2007
338
186
Home Country
Doh! I meant define the IP address you can bind to, it was asked ealier in the post https://forum.team-mediaportal.com/...erver-interface-27320/index45.html#post278568

Hi Cheezey,

I had a look at the code and I should be able to implement this feature.

It looks like I will be able to allow bindings for multiple IPs to different Ports etc.

I will add it over the next few days...

Watch this space.

Kev

A couple more requests:

Can you add

Code:
<meta name = "viewport" content = "width = device-width">

to each html - it's to make the initial page scale better for iphone & ipod touch users.

Should this be only on the PDA pages or on all pages? (Remembering that you can specify different pages for different logins).

My HTML knowledge is not great (as you can see from the rather plain pages in the standard guide - compared to Risu's custom pages), will this have any other affects on normal pages?

If you want to experiment, just change the html templates that install with the interface and see if it does what you need.

You can also copy the templates to another directory and set that up as your custom html directory (Interface Manager - Web Interface page, HTML Template Directory) and make experimental changes there - these will not be overwritten by new updates.

PM me your changes when you are happy with them and I will change the base templates.

Kev
 

cheezey

Community Plugin Dev
August 26, 2004
1,560
312
57
West Yorks, UK
Home Country
United Kingdom United Kingdom
Should this be only on the PDA pages or on all pages? (Remembering that you can specify different pages for different logins).

My HTML knowledge is not great (as you can see from the rather plain pages in the standard guide - compared to Risu's custom pages), will this have any other affects on normal pages?

It should be all pages - the viewport meta tag is only used by the mobile safari browser, all other browsers ignore it. Adding the line just mean the pages fill the screen on the iPhone/iPod touch - I dropped some pics on an earlier post (Self Contained Web Server / Interface - Page 40 - MediaPortal Forum)

I've attached the html I have updated with the viewport meta tag.

Thanks
 

risu

MP Donator
  • Premium Supporter
  • September 22, 2006
    279
    19
    Home Country
    Finland Finland
    risu,

    Will you be updating your custom pages for remote control? Howe about the hover over? Sometimes it shows "header=..."
    That's the plan, I should get next version all functionality of added features and add some tweaks. Don't expect this to happen atleast within a week as I don't currently have time to update it.

    I know what you mean by "header" showing up, I'll look into into it too, it might be also some flaw on MPWebInterface side.. has anyone gotten that problem without my custom html?

    My HTML knowledge is not great (as you can see from the rather plain pages in the standard guide - compared to Risu's custom pages), will this have any other affects on normal pages?
    And as you can see from my pages, they are bunch of oldschool html with some javascript hacks, so I'm no pro either. If you want you can by any means embed my layout to your release.

    After all, there's only one thing I don't like on my layout. I can't cancel scheduled program from tv guide. Normally if one would select a program that's already scheduled, one should get displayed a dialog to change recording parameters or to cancel scheduling but currently it isn't possible. One only can make duplicate recordings via tv guide. I made a hack for this on javascript way back but it didn't work as I couldn't get enough data out of mpwebint as scheduled shows are linked somewhat different way then tv guide ones. Basically what I tried to do was open scheduled program dialog instead of programdetails (so opening already scheduled show would allow user to cancel it via tv guide) but I didn't find an easy way to open that dialog.

    To make that happen, MPWebInt should be changed somewhat. It should internally change the link of scheduled show at tv guide. So when MPWebInt sets !!!Current!!! flag for some show, ideally it should set it's link to point into new html-page which would contain recording parameters + cancel schedule-button and changing recording parameter would actually change it for the already scheduled show, not generate new schedule in parallel. Easier way would just change tv guide-link for scheduled shows to open up scheduled shows detail html (where user could simply cancel the show and after that could schedule show again via tv guide with different parameters).
     

    Big_Kev

    Portal Pro
    June 8, 2007
    338
    186
    Home Country
    ....
    To make that happen, MPWebInt should be changed somewhat. It should internally change the link of scheduled show at tv guide. So when MPWebInt sets !!!Current!!! flag for some show, ideally it should set it's link to point into new html-page which would contain recording parameters + cancel schedule-button and changing recording parameter would actually change it for the already scheduled show, not generate new schedule in parallel. Easier way would just change tv guide-link for scheduled shows to open up scheduled shows detail html (where user could simply cancel the show and after that could schedule show again via tv guide with different parameters).

    I will have a go at this for the next release

    Kev
     

    Big_Kev

    Portal Pro
    June 8, 2007
    338
    186
    Home Country
    New Version 0.2.0.18 beta

    Hi All,

    I have added advanced binding for the web server. It is now possilbe to bind different ports to different IP addresses.

    You need to know what you are doing before you use this!

    On the web interface page of the manager you will see an "Advanced" button next to the Server Port input box.

    Click on here to see the advanced binding window.

    Regards
    Kev
     

    AngryBadger

    Portal Member
    July 8, 2008
    16
    0
    Home Country
    United Kingdom United Kingdom
    HEy Big_Kev, cheers for your help, I have it working just fine with MySQL. I dont think I can use MSSQL because the Server Management Studio Expresswont install on Server08

    However when I add a recording i get this error:

    Error: [AnyDAC][Phys][MySQL][LIBMYSQL] Column 'directory' cannot be null

    And idea where Ive gone wrong?

    Cheers
    Dave
     

    Big_Kev

    Portal Pro
    June 8, 2007
    338
    186
    Home Country
    HEy Big_Kev, cheers for your help, I have it working just fine with MySQL. I dont think I can use MSSQL because the Server Management Studio Expresswont install on Server08

    However when I add a recording i get this error:

    Error: [AnyDAC][Phys][MySQL][LIBMYSQL] Column 'directory' cannot be null

    And idea where Ive gone wrong?

    Cheers
    Dave
    Hi Dave,

    The MP Tv database is set up so that no new rows can be added with null fields. The "directory" column gets its value from the recording directory defined for the TV Card.

    I think you need to make sure that all of your TV Cards have a recording folder defined.

    I am not currently on a PC with MP installed, so all I can go off is the code for the interface...

    Code:
                         Q->Close();
                         Q->SQL->Clear();
                         Q->SQL->Add("select * from channelmap a, card b where idChannel = :Channel and a.idCard = b.idCard");
                         Q->ParamByName("Channel")->AsInteger = TChannel;
                         Q->Open();
                         Q->First();
                         if (!Q->Eof)
                            {
                            R->ParamByName("RECOMMENDEDCARD")->AsInteger = Q->FieldByName("idCard")->AsInteger;
                            R->ParamByName("PRIORITY")->AsInteger = Q->FieldByName("priority")->AsInteger;
                            [B][COLOR="Red"]R->ParamByName("DIRECTORY")->AsString = Q->FieldByName("recordingFolder")->AsString;[/COLOR][/B]
                            }

    Have a look at your TV Server configuration at the options for the TV Cards. I am not in front of it right now, so I cant tell you exactly where to find the right page...

    Regards
    Kev
     

    Users who are viewing this thread

    Top Bottom