Index.htm
From NMTWiki
The NMT GUI can be automatically re-directed to a custom index page upon boot. This can be useful if you want to re-direct to your own Jukebox.
This works in two steps.
- Create a html page: "index.htm"
- Locate it from where you want it to load
The web page is a simple web page which must be called index.htm for HD resolution or index_sd.htm if you use a PAL/NTSC SD resolution (typical on older CRT TV's).
The typical location of the index.htm is the root of the local HDD, but it could also be in the root of a USB stick/drive or a network share (SMB/NFS). The last mounted share or drive will automatically load upon boot, so if you have an index.htm there it will load instead of the default GUI.
The contents of the index.htm file could be mostly anything you like, but the NMT browser displaying the GUI on your TV/Projector does have limitations compared to a desktop browser. Please read related developer information on this wiki for Javascript tips etc.
- Visit the forum for The index.html FAQ and Guide. Download links to all themes in the Forum Skin/Theme Section or on Omertrons NMT/PCH site.
Naturally, you can have different index.htm files in different locations, e.g. point to a Music Jukebox in the /Music folder and a movie jukebox in the /Movie folder etc.
User bym007 created a small how-to in the NMT Forum
In this case the index.htm is located in the root of a local harddisk on a Popcorn Hour A-110 so it loads directly upon boot. A nice background wait image is displayed, and after 5 seconds the GUI is automatically forward to a selected jukebox, in this case Oversight.
The sample code for index.htm is:
<HTML> <HEAD> <META HTTP-EQUIV=REFRESH CONTENT="5;URL=http://pch-a110:8883/oversight/oversight.cgi"> </HEAD><BODY> <center> <img src="http://pch-a110:8883/oversight/templates/babar/images/load_disc.jpg" alt="Loading..."/> </center></BODY><HTML>
In this case the index.htm loads the Oversight jukebox after 5 seconds of displaying the "load_disc.jpg" background wait image. If the image is missing or the path is wrong, there will only be a text saying "Loading..." for five seconds.
You can do the same procedure for any jukebox or web service on the NMT, like YAMJ, MLMJ, llink etc. See the Jukebox Comparison page for some more examples.
Just change (or remove) the background image, the redirection URL and the redirection timing (from 0 to any number of seconds).
