nmtPYtools 0.3 – extendable toolbox with Python webserver – CSI install files | Omertron’s Media Player Site

nmtPYtools 0.3 – extendable toolbox with Python webserver – CSI install files | Omertron’s Media Player Site

nmtPYtools is based on the Karrigell webserver framework and offers a toolbox with 3 tools at the moment:

podcasts: a simple way to collect audio and video cast RSS feeds and access the casts from your NMT or PC. Inserting RSS links should best be done from your PC (copy and paste). The podcasts must be compatible with your NMT and offer direct streams (mp3, mp4 etc., no webinterface with flash!). A few feeds are already included, just to show you how it works, but most of them in German. Simply click on "delete" to get rid of them and add your own preferred podcasts.

mediainfo browser: a web interface for the mediainfo program. You can browse all attached disks for media files and get the detailed information which mediainfo supplies. Getting information on movie files may take a while, as mediainfo scans the whole file. To access network drives you need to install NetworkMounter via CSI.

opkg tool: a simple gaya/web interface for opkg (and the older ipkg as well, if still installed). I wrote this tool, because all other gaya/web interfaces had problems on my NMT.

More tools may be added later on by myself or other developers. There is an extended version available for developers (nmtPYtools-dev), which includes Karrigell documentation and demos.

nmtPYtools requires opkg (or the older ipkg in its latest version) to be installed first from CSI. All required packages (Python and its dependancies, mediainfo) will be installed automatically when you install nmtPYtools. This may take a while.

nmtPYtools uses Karrigell’s multithreaded webserver on port 8092. The builtin webserver (or lighttpd) is only used to access the gaya web service which will start nmtPYtools, if it is no running yet, or redirect to it, if it is running already. If "start on boot" is activated in CSI, the gaya web interface will be created, but nmtPYtools will not be started automatically, only if you access it from the web services. You can stop the application via "shutdown server" command on the menue page. If you want nmtPYtools to run immediately after booting your NMT, rename the file "autobootx" (inside Apps/nmtPYtools) to "autoboot". If "start on boot" is disabled in CSI, no web service is created. You can still start and use the application, by going to Apps/nmtPYtools with your gaya browser in document mode and select "nmtPYtools.html". There is another html page named "nmtPYtoolsWSinstall.html", which you may use to install the web service to nmtPYtools at any time, without having to use CSI to start the application. Of course, starting and stopping the application via CSI is also possible at any time. If you call one of the html pages and see only the rotating cursor, wait a few seconds and press the STOP/ESC key on your remote. There seems to be a problem with cgi scripts which call other scripts, but it works nevertheless.

You can access nmtPYtools also from your PC with "http://yournmtip:8092/". You can stop the web server of nmtPYtools from your PC, but starting it again is only possible from your NMT.

The administration interface is only accessible from your PC. Admin login is set to:

User: nmtadmin

pw: nmt1234

If you use lighttpd on your NMT, you MUST replace its config files with new ones, which you will find in the folder lighttpdconfigs.

There are two subfolders with different settings:

one uses cgi mode for both shell scripts and php (slower, but needs less memory),

the other one uses cgi for shell scripts and fcgi for php (faster, but requires more memory all the time).

Without replacing your lighttpd config files, the gaya interface will NOT work.

For more support visit the nmtPYtools thread on www.networkedmediatank.com

Guenter Kreidl

Attachment Size
nmtPYtools-0.3.0.zip 452.6 KB
nmtPYtools-0.3.0-dev.zip 1.16 MB