Self Contained Web Server / Interface (1 Viewer)

risu

MP Donator
  • Premium Supporter
  • September 22, 2006
    279
    19
    Home Country
    Finland Finland
    I think version 0.1.2.9 is last one which is worked somehow well on my system. After that I can't connect to web int after about 24 hours of installation. When I open manager on 2.0.0.06 I get Socket Error #10061 Connection refused so it could be a firewall issue also, but previous versions (pre 2.0.0.00) worked..

    EDIT

    If I manually kill the process MPWebInt.exe and start it again, it works! It just doesn't seem to work automatically on computer restart.

    Hmmm. now it works again flawlessy. I've been updating Tv-server quite often lately. It could also be a situtation where tv-server has been uninstalled and installed but web int hasn't been shutdown on the process. Even then after reboot web int doesn't wake up if it isn't shutted down and restarted. I'll test this next time I update tv-server.
    OK I solved this one. When I had those socket errors I was indeed updating tv-server quite often. Now I hadn't updated it for a while and Web Interface also kept working well. Then I updated it yesterday again and Web Interface kept working after tv-service update BUT after reboot web interface was again giving socket errors when trying to open manager. Pressing Save to reboot interface (from manager) did report web interface was rebooting but it didn't help. What helped was manually terminating webint.exe process and manager and then starting service again from webint manager. It's weird that it works well after update but not after reboot..
     

    Big_Kev

    Portal Pro
    June 8, 2007
    338
    186
    Home Country
    OK I solved this one. When I had those socket errors I was indeed updating tv-server quite often. Now I hadn't updated it for a while and Web Interface also kept working well. Then I updated it yesterday again and Web Interface kept working after tv-service update BUT after reboot web interface was again giving socket errors when trying to open manager. Pressing Save to reboot interface (from manager) did report web interface was rebooting but it didn't help. What helped was manually terminating webint.exe process and manager and then starting service again from webint manager. It's weird that it works well after update but not after reboot..
    Hi risu,

    Is there anything showing in the log file? You need to look at it immediately after the problem occurs to see if there was an issue during the initial connection, and at what stage it occurred.

    The web server starts up and tries to listen on the port specified - that could be the issue. Or when the initial connection is made to the database engine, though this is a client connection and is much less likely to cause a socket error...

    Hopefully the log might throw some more light on it.

    Regards,

    Kev

    EDIT: During an update, the service is stopped first and re-started afterwards using direct calls to the services manager, so it is definitely stopped and started cleanly. If you are using vista, you should be able to select a startup option for the web server of delayed automatic (or automatic delayed - I can't remember which it is). This might give any dependencies a chance to start up first.
     

    jonolo

    Portal Member
    November 17, 2007
    21
    6
    Hi Big_Kev and thanks for a great application to improve MediaPortal!

    I have just installed it and it works flawless so far ;)

    I am currently running an Apache server on my HTPC and I was thinking of trying to integrate the web interface through it.

    Are you only accessing the TV Server database for scheduling recording and accessing TV Guide? Or are you using some TVServer API through some DLL?

    Is it possible to access the source code to see how much that can be reused in an Apache integrated version?

    Sincerely

    Jonas
     

    rr69

    Portal Member
    November 6, 2006
    30
    3
    Home Country
    Netherlands Netherlands
    I had some problems with remote controlling the client from my PDA. The buttons weren't showing as they should. Instead of the play button i got a botton with the "P" character on it. And so on for all the other buttons.

    I made some changes to the remote.html and added the appropiate jpg's to go along with it. So it now works on "probably" all pda/smartphones.

    For the graphical designers... The buttons could use a makeover...
    For Kev.. If you are interested you could use this in the next release.

    Use this link to download...

    just extract this file into the root of the selfcontained webserver directory and restart the webserver.

    Regards RR69

    Just found out thet i made some errors in the html file. Corrected them. (20:57)
     

    Big_Kev

    Portal Pro
    June 8, 2007
    338
    186
    Home Country
    Hi Big_Kev and thanks for a great application to improve MediaPortal!

    I have just installed it and it works flawless so far ;)

    I am currently running an Apache server on my HTPC and I was thinking of trying to integrate the web interface through it.

    Are you only accessing the TV Server database for scheduling recording and accessing TV Guide? Or are you using some TVServer API through some DLL?

    Is it possible to access the source code to see how much that can be reused in an Apache integrated version?

    Sincerely

    Jonas

    Hi Jonas,

    The program is actually written in rather old-fashioned borland C++ (Builder 5 to be exact) and uses a number of third party components.

    I can send you a copy of the source if you are still interested, at least you can get an idea of some of the SQL statements that I have used etc.

    Kev
     

    jonolo

    Portal Member
    November 17, 2007
    21
    6
    Hi Jonas,

    The program is actually written in rather old-fashioned borland C++ (Builder 5 to be exact) and uses a number of third party components.

    I can send you a copy of the source if you are still interested, at least you can get an idea of some of the SQL statements that I have used etc.

    Kev
    Kev,

    that would be great! It is mostly the SQL statements that I need I guess, stupid to try to invent the wheel once again ;)
    Do you access the actual TV Server in any way, or do you just use the database?

    I will send you a PM with my email...

    Sincerely

    Jonas
     

    Big_Kev

    Portal Pro
    June 8, 2007
    338
    186
    Home Country
    Do you access the actual TV Server in any way, or do you just use the database?

    Jonas

    Hi Jonas,

    The only thing I access TV Server for is the TV card status. This uses a little COM dll that I wrote that in turn uses the TvControl dll that comes with TV Server.

    All other information comes from the database itself (except for the TV Server status which comes from the Service Manager API).

    Regards
    Kev
     

    jonolo

    Portal Member
    November 17, 2007
    21
    6
    Hi Kev.

    Ok, I will try to make an attempt to port it then. Would be great if you could send me the source or maybe just the SQL statements... In any case, that would be much appreciated and you will get all the credit for it!

    Cheers

    Jonas
     

    Marcusb

    Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,995
    29
    Melbourne
    Hi Kev,
    I have been on a version for a couple of months ago and have just upgraded to the latest today.
    Thanks again for all the efforts, they are greatly appreciated :)

    I have a couple of feature requests I thought I'd run by you.

    1) TV server status. Could this page be modified to be the server status? Where it would show not just the status of the service, but the memory usage (maybe just an average or not to often updated). To give more info on this page, you could return the disk space usage of the recording folders and the C drive. This would be a much richer view of the whole status of the server.

    2) Recorded Programs. instead of a single delete button for each program, would it be better to have check boxes and an option to delete all selected or to reset the watched status of all selected or any other thing along those lines.

    3) TV Card status. I'm not sure if it does this in the newest version, but in the older one, it displayed "Tuner Locked" when a card was in use. Is it possible to report this in the same way the "Manual" section does in the TV server config? IE, Timeshifting channel 9 and the name of the PC or recording schedule that has that card in use.

    4) logging. Is it possible to log access and if anyone adds or deletes a recording or schedule to log that as well?

    These are just all ideas. I have no idea if they are easy or hard to implement or even if you think it's worth it but I thought I'd run them by you anyway.

    Merry Christmas and hope to see you round again real soon.

    Cheers,
    Marcus.
     

    jonolo

    Portal Member
    November 17, 2007
    21
    6
    Hi all

    I have just started to implement a web interface for apache with php. It should probably run on any web server supporting php but only tested on apache (v2.2.6).

    At the moment it is really basic and I have put most work on functionality more than looks... Because I will use it from my mobile phone the interface is oriented to that, so really slim and simple. It is only tested with MySQL 5, mostly because I haven't a tv server on MS SQL to test on... but should work with MS SQL too.

    The thought is to allow every user to have its own default view settings, skin and language...

    So far the viewing of the tv guide and scheduled recordings is done, along with some user admin functions.

    So the next big thing is to implement the actual scheduling of a recording. Is there any documentation or guidelines on how to use the database for this?

    Finally, is there anyone out there that are running a web server with php that would be willing to start testing this?

    Cheers

    Jonas
     

    Users who are viewing this thread

    Top Bottom