Also note that this rev is a *major* change in code. Hopefully there are few if any additional bugs, but I won't be surprised if you find one. Please notify me if you see anything so I can get it corrected in future revs.
Installation instructions
----------------------------
Extract the archive into /opt/opentvix/usr/local/wwwroot/ being sure that folder structures are preserved. I do so using a Samba share through badeip's root share, but if you want to use FTP and Linux commands it should work fine - but you're on your own.
Open a SSH prompt to your TViX (I'm using PuTTY for Windows, but you can use anything you'd like. Login name "root", password "opentvix" assuming you haven't changed it) and type:
- Code: Select all
chmod 755 /usr/local/wwwroot/cgi-bin/filter.tcl
chmod 755 /usr/local/wwwroot/cgi-bin/navigate.tcl
chmod 755 /usr/local/wwwroot/cgi-bin/readfile.tcl
chmod 755 /usr/local/wwwroot/cgi-bin/send.tcl
to give the file execute permissions. Note - this release contains an additional file (filter.tcl) in the above list - if you have already installed previous versions, you will still have to set the permissions on this new file!
This version supports the toggling of IRd through the use of a check for a file's existence in /mnt/jffs2_apps/tvix/main. If you wish to install before badeip creates another rev of firmware, add the following into main (replacing any currently active lines that start ird):
- Code: Select all
if [ -f /opt/opentvix/ird_enable ]; then
/mnt/jffs2_apps/tvix/main_exec /mnt/jffs2_apps/tvix/opentvix/usr/sbin/ird &
fi
If IRd has been disabled in the badeip firmware version you're using, it will need to be enabled for full functionality. Without it, you'll still be able to browse and stream, but will be unable to remotely control the TViX to play files on the TViX itself.
Open your web browser to http://<<TViX_Address>>/cgi-bin/navigate.tcl and start browsing.
Features List
----------------
* Ability to browse all media on the TViX internal hard drive and USB ports
* Ability to play media in your browser (Assuming the network overhead is compatible with your file... basic audio/pictures/video works fine. HD Video, not so well)
* Ability to select media to be played on the TViX (internal hard drive only)
* Ability to respect or override the TViX icon mode when displaying folder contents
* Display of "Now playing" at the top of the page when a file is being played
* Addition of floating TViX Remote Control to relay commands to the TViX
* Basic search functionality from the current directory - NOTE - This is currently case sensitive. If someone wants to compile a full-featured Unix find (rather than the busybox version), it would be appreciated (hint, hint).
* [0.4] Dynamic filtering of current directory contents
* [0.4] Ability to toggle use of IRd via the web interface, and notification when not enabled
Known issues
---------------
* There are likely improvements/changes/additions that need to be made to the mime-types file. I made my own, and don't have one of every file of my own to try it out on. The incorrect mime type specified will prevent your computer from recognizing what type of file you're trying to play when playing the file at your computer.
* Determine if TViX is in that autoplay mode... I haven't tested it, but I believe it will likely start and pause your video if TViX automatically plays the folder contents when the directory is entered. If it's set to autoplay, I'll need to determine and build in logic to keep from pressing play. Maybe it won't be an issue after all though. Fingers crossed.
* Will not work if it has to traverse through a directory that has been sorted by date or length. Currently all directories must be sorted by name for this to work.
* If your TViX is currently viewing a networked or USB device, the web browser will be unable to properly trigger the playing of files on your hard drive - you must navigate to the hard drive device first (manually).
To-Do List
------------
* Resolve items on issues list
* Determine if the file that should be played is closer to the bottom of the list than the top, and navigate from the bottom up if so.
* Add advanced searching capabilities
* Recruit someone for graphic design. I'm not a web designer, I'm a developer... and it shows.
* Include options for showing file details (Datestamps, file sizes)
* Make the "Now Playing" update dynamically rather than just on page refresh
* Use more graphics from TViX for webpage display
* Add support for Network devices and be able to trigger files to be played within the USB devices
Change Log
--------------
[0.21] Inclusion of missing files in 2.0 release and correction of major errors introduced with 2.0
[0.22] Specified sorting by name when navigating files. (Still assumes your TViX is sorted by name! If not, hit the right arrow to change directory sorting order)
[0.3] Resolved issue of needing an internal hard drive. Now supports USB devices.
[0.3] Fixed case-sensitivity issue when traversing directories
[0.3] Added proper handling of empty directories
[0.3] Added support for USB port browsing
[0.3] Added basic search from current directory function
[0.3] Removed display of ignored directories/files
[0.3] Fixed issue with it unable to process files or directories with an "&" in the name, as in "Adventures of Shark Boy & Lava Girl". But I'm sorry I did.
[0.3] Added caching of images
[0.4] Dynamic filtering of current directory contents
[0.4] Fixed quick-links to devices not going back to root folders of each device
[0.4] Fixed issue of being unable to navigate properly when root directory contains directories above the AUDIO folder
[0.4] IRd toggling via the web interface
[0.41] Rearranged the browser's impression of what the ASCII sort order should look like.
[0.41] Corrected issue with directories containing pairs of square brackets in them
[0.42] Corrected issue with files containing pairs of square brackets in them
[0.43] Corrected issue with directories and files that start with a period
I take no responsibility for any damage caused by installation of this program. The only file it ever touches is the config file for IRd, so risk should be very minimal. Although it works perfectly for me (with the exception of everything in the known issues list), your results may vary. Use at your own risk. Please contact me directly if you find any issues.
--John
