Webinterface plugin (2 Viewers)

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
Stop the web server (make sure its not running), then delete the data.inc file. Then start the web server again, and navigate to the webscheduler website. It should ask you to complete the first-start settings. Load MP and press next on the webpage and complete the settings.

After you complete this, you should notice that the data.inc file is filled with the paths.

Sam
 
A

Anonymous

Guest
I'm getting this error when I try to bring up the guide:



Warning: sqlite_query() [function.sqlite-query]: no such table: channel in C:\Program Files\Team MediaPortal\MediaPortal\MPWebControl\htdocs\webscheduler\guide.php on line 9

Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in C:\Program Files\Team MediaPortal\MediaPortal\MPWebControl\htdocs\webscheduler\guide.php on line 15


Any thoughts?

DiME
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
dime said:
I'm getting this error when I try to bring up the guide:



Warning: sqlite_query() [function.sqlite-query]: no such table: channel in C:\Program Files\Team MediaPortal\MediaPortal\MPWebControl\htdocs\webscheduler\guide.php on line 9

Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in C:\Program Files\Team MediaPortal\MediaPortal\MPWebControl\htdocs\webscheduler\guide.php on line 15


Any thoughts?

DiME

This is because there is a new TV database for MP 0.1.0.4. To fix this, go into the webscheduler (http://<computer name>/) then goto index.php?page=install . This should load the first-start settings page. Now when specifying the DB path, change TVDatabaseV9.db (or some other version number) to TVDatabaseV11.db. For example, if it was C:\Program Files\Team MediaPortal\MediaPortal\database\TVDatabaseV9.db, then change it to C:\Program Files\Team MediaPortal\MediaPortal\database\TVDatabaseV11.db. Once you've changed this, finish off the setup and it should work fine.

Sam
 
A

Anonymous

Guest
Question...what about implementing the ability to watch your content remotely via the web interface? IE integrate wmp web player and the ability to change content/tv chanels etc...this would allow you to watch tv over the web securely or watch your existing content.

you could also then watch tv off your TV computer on any other computer in your house! :) Windows Media Encoder has an SDK that you might be able to utilize?

Just a suggestion, what you think?

ry
 
M

majones73

Guest
samuel337 said:
jsteele said:
On this machine MP and the web interface are installed in "E:\program files\mediaportal\". In this configuration the web interface accesses the TV channel and program database without a problem, but for some reason thinks MP is not running. This is no big deal in this case as I just wanted to get a taste of the interface and mechanism. I can access the channel and program database so at least I did get to "play with it."

Two strange things however. As I said it thinks that MP is not running...
Hmm... interesting. What version of MP are you using? Make sure that when you go into MP configuration, plugins section, that the 'External Control Plugin' is enabled. Also, check the MP log file and see if there's a line similar to "ExtControl: remoting initialised".

jsteele said:
...and no matter what I set as the "thumbs' path the logos don't show up. The source of the output webpage shows the image source as "/MPthumbs/image_file.png". The MP logos are stored in the "/thumbs/tv/logos/" directory and MP accepts JPGs which is what mine are.
Its currently hard-wired for png files - it was a decision made by maschine, but I'll talk to him able making it accept jpg and gif files as well. Programatically it would be hard because currently it asks for the logo from http://localhost/MPthumbs/image_file.png and if that does not exist, apache will return the nochannellogo.gif file (http://localhost/MPthumbs is an apache alias to your MP logos folder). It would be hard to test for jpg and gif and other graphics formats. Using the alternate method (setting the 'thumbs' path), it is easier to solve the problem however it will involve testing for file existence multiple times (once for png, then jpg then gif). Maybe there should be a setting that specifies what the logo extension is... we'll have a look into this.

jsteele said:
Nicely done and an excellent tool for MP and so especially for my household. Every member of my family has a notebook on our WLAN and all of them are almost always turned on (once my MP machine is up and running it will be the 8th PC in my house!)
Thanks! 8 PCs? that's one computerised household!

jsteele said:
Just out of curiosity, why did you opt to use Apache rather than the inbuilt IIS that is part of XP Pro? Do you have any guidance available on moving the application to use IIS rather than Apache?
The main reason is ease of installation automation and configurability. It is much easier for me to install apache and php and write out a config file than for me to write out a huge set of instructions telling people how to install IIS, then install PHP support, then setting up websites and permissions etc. The other thing is that IIS is not included in XP Home.

To setup the app on IIS, install the setup file so the files are extracted and the plugin is installed. Don't install apache as a windows service.

Now install PHP support into IIS if you haven't already done so (see www.php.net). Also make sure ASP.NET support is installed into IIS (if not, navigate to \windows\microsoft .net\<1.1 version number> and run aspnet_regiis -i).

Now setup three websites in IIS:
1. Setup one called MPExtControlWS and map this to mediaportal\MPWebControl\htdocs\MPExtControlWS. Make this a web app. It should be accessible at http://localhost/MPExtControlWS.
2. Setup another one called webscheduler (or at the root if you wish) and map this to mediaportal\MPWebControl\htdocs\webscheduler. PHP support needs to be activated for this website (if needed - I haven't setup PHP under IIS before, but it should be pretty easy and instructions should be on www.php.net). This may have to be made a web app as well.
3. Setup a final website called MPthumbs (accessible by http://localhost/MPthumbs). Link this to the mediaportal\thumbs\tv\logos folder. Make the 404 page http://localhost/webscheduler/nochannellogo.gif.

It should work now - as I said its untested so report back if you have issues or a better or more detailed method.

Lastly, all security permissions are your responsibility. In the bundled apache server, I have limited web service to local network connections only, and the webscheduler only accessible with a username/password.

HTH

Sam

Why not just embed a little light weight http server in the same process as Media Portal? Building out a simple framework for the apps would be relatively trivial. Less overhead resource and installation wise than installing and configuring Apache or IIS to do PHP.
Just a thought.
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
ryguy said:
Question...what about implementing the ability to watch your content remotely via the web interface? IE integrate wmp web player and the ability to change content/tv chanels etc...this would allow you to watch tv over the web securely or watch your existing content.

you could also then watch tv off your TV computer on any other computer in your house! :) Windows Media Encoder has an SDK that you might be able to utilize?

Just a suggestion, what you think?

ry

Um... well I thought of that, but the thing is, there would need to be somewhat significant amounts of code written (even if I reuse the existing MP code). Also there are other people working on VideoLAN solutions which would duplicate this idea. At the end of the day though, how many people would want to watch video over the LAN in a web browser and how many people would rather watch video over the LAN in a modified MP-style application?

I would prefer the modified MP-style application and I think people are working on this in the long run. Also, I'm not much of an expert on DirectX so I probably wouldn't be able to do this.

Sam
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
majones73 said:
samuel337 said:
jsteele said:
On this machine MP and the web interface are installed in "E:\program files\mediaportal\". In this configuration the web interface accesses the TV channel and program database without a problem, but for some reason thinks MP is not running. This is no big deal in this case as I just wanted to get a taste of the interface and mechanism. I can access the channel and program database so at least I did get to "play with it."

Two strange things however. As I said it thinks that MP is not running...
Hmm... interesting. What version of MP are you using? Make sure that when you go into MP configuration, plugins section, that the 'External Control Plugin' is enabled. Also, check the MP log file and see if there's a line similar to "ExtControl: remoting initialised".

jsteele said:
...and no matter what I set as the "thumbs' path the logos don't show up. The source of the output webpage shows the image source as "/MPthumbs/image_file.png". The MP logos are stored in the "/thumbs/tv/logos/" directory and MP accepts JPGs which is what mine are.
Its currently hard-wired for png files - it was a decision made by maschine, but I'll talk to him able making it accept jpg and gif files as well. Programatically it would be hard because currently it asks for the logo from http://localhost/MPthumbs/image_file.png and if that does not exist, apache will return the nochannellogo.gif file (http://localhost/MPthumbs is an apache alias to your MP logos folder). It would be hard to test for jpg and gif and other graphics formats. Using the alternate method (setting the 'thumbs' path), it is easier to solve the problem however it will involve testing for file existence multiple times (once for png, then jpg then gif). Maybe there should be a setting that specifies what the logo extension is... we'll have a look into this.

jsteele said:
Nicely done and an excellent tool for MP and so especially for my household. Every member of my family has a notebook on our WLAN and all of them are almost always turned on (once my MP machine is up and running it will be the 8th PC in my house!)
Thanks! 8 PCs? that's one computerised household!

jsteele said:
Just out of curiosity, why did you opt to use Apache rather than the inbuilt IIS that is part of XP Pro? Do you have any guidance available on moving the application to use IIS rather than Apache?
The main reason is ease of installation automation and configurability. It is much easier for me to install apache and php and write out a config file than for me to write out a huge set of instructions telling people how to install IIS, then install PHP support, then setting up websites and permissions etc. The other thing is that IIS is not included in XP Home.

To setup the app on IIS, install the setup file so the files are extracted and the plugin is installed. Don't install apache as a windows service.

Now install PHP support into IIS if you haven't already done so (see www.php.net). Also make sure ASP.NET support is installed into IIS (if not, navigate to \windows\microsoft .net\<1.1 version number> and run aspnet_regiis -i).

Now setup three websites in IIS:
1. Setup one called MPExtControlWS and map this to mediaportal\MPWebControl\htdocs\MPExtControlWS. Make this a web app. It should be accessible at http://localhost/MPExtControlWS.
2. Setup another one called webscheduler (or at the root if you wish) and map this to mediaportal\MPWebControl\htdocs\webscheduler. PHP support needs to be activated for this website (if needed - I haven't setup PHP under IIS before, but it should be pretty easy and instructions should be on www.php.net). This may have to be made a web app as well.
3. Setup a final website called MPthumbs (accessible by http://localhost/MPthumbs). Link this to the mediaportal\thumbs\tv\logos folder. Make the 404 page http://localhost/webscheduler/nochannellogo.gif.

It should work now - as I said its untested so report back if you have issues or a better or more detailed method.

Lastly, all security permissions are your responsibility. In the bundled apache server, I have limited web service to local network connections only, and the webscheduler only accessible with a username/password.

HTH

Sam

Why not just embed a little light weight http server in the same process as Media Portal? Building out a simple framework for the apps would be relatively trivial. Less overhead resource and installation wise than installing and configuring Apache or IIS to do PHP.
Just a thought.

That was my original idea - I had started to write an ASP.NET web application which would be bundled with the lightweight CassiniEx web server (it is also possible to write a very simple web server using .NET as well because all the hosting functionality for ASP.NET is in-built into the .NET framework). Performance-wise and personally, ease of coding, this was much better.

At the end of the day though, I didn't want to duplicate the work of someone else (seems pointless and sort of says look what I can do and you can't). That someone was Maschine who had written a tv scheduler in PHP. So to make it work, I had to use apache with PHP and asp.net support.

Besides, with installation - its not that difficult now is it?

I wouldn't run it in the same process as MP though, because the web interface is designed to be used regardless of whether MP is running or not.

Sam
 

Maschine

Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    judicla said:
    In 0.1.0.5 isn`t running EPG Data.
    Sorry, for my bad English

    In 0.1.0.5 the version number of the tvdatabase has changed. Start windows notepad and go to the webscheduler folder. There open "data.inc" and change "TVDatabaseV9.db" to "TVDatabaseV12.db" in the path to your database.

    Nochmal auf deutsch: Öffne die Datei "data.inc" im webscheduler-Verzeichniss mit dem Windows Editor und ändere dort den Pfad zur TV-Datendatei von "TVDatabaseV9.db" auf "TVDatabaseV12.db". Das sollte dann helfen.

    Maschine
     

    Jean-Max

    Portal Pro
    October 20, 2004
    99
    0
    FRANCE
    Hello

    I installed M-P WEBServer on my HTPC

    From any networked computer it works fine :)

    From my IPRONTO remote, the WEB remote works fine but it would be the best if the first command line was visible in the Ipronto screen ( "Basic controls" for play/stop/pause ...")

    Have a look :

    http://montaleigne.free.fr/PCHC/MEDIA_PORTAL/WEB_SERVER/WEB_SERVER_MP/IPRONTO_WSMP1.jpg

    Did you use for this first command line an special applet not recognized by Ipronto ?

    Thanks !
     

    Users who are viewing this thread

    Top Bottom