Sign up here and you can log into the forum!

umsp questions

This is the place to ask for how to use software that is (or isn't) included in the various wdlxtv flavours. Questions about software such as rtorrent, NZBGet, sshfs, curlftpfs, ssh, telnet, etc.

umsp questions   

Postby KAD » Sat Mar 15, 2014 7:57 pm

ok, gotta take a break, but in the mean time, maybe somebody will post host hints for me :P

what is it that kicks off the initial download of UMSP plugins on boot
I'm able to download plugins once booted via WAM but I don't see anything that would kick off download of any enabled plugins
also shouldn't there be a /conf/config entry for enabled plugins ??
I see the files generated in /conf, but no entries in /conf/config

I've got the ssdp broadcast working, including startup at boot
UMSP displays on screen
also after downloading plugins, the plugins are visible on screen

however, all of them show "no content"
umsp-test.php also shows "no content"

makes me wonder, should there be some additional process running to start/use UMSP
the startup scripts, just kick off the ssdp broadcast
they don't appear to do anything else

how can I make sure the actual plugin code was even called ?

and of coarse any of items you think I should know on how to set up UMSP

ok, gonna crash now
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: umsp questions   

Postby KAD » Mon Mar 17, 2014 1:45 pm

well, I had hoped for a few hints

but got a ton of other stuff down over the weekend anyways
also I took care of the download on boot issue

if nobody has idea's, I'm actually beginning to think it may be related to the version of php or apache used by the SMP

version of php included is not able to run for example upnp-cmd
and while I have't looked at what version of apache wd is using, I know it's not apache2

I still don't think that UMSP is actually running, for example there's no /tmp/umsp-log.txt file created
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: umsp questions   

Postby KAD » Mon Mar 17, 2014 7:02 pm

just give me enough time, I'll figure it out

I have fully functioning UMSP Server on SMP :mrgreen:
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: umsp questions   

Postby DJArty » Tue Mar 18, 2014 12:01 am

Already have? Make some beer for you ;)
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: umsp questions   

Postby mad_ady » Tue Mar 18, 2014 12:55 am

The known UMSP plugins are stored in a file called /conf/umsp-plugins which gets created by the download script I think
Code: Select all
root@Deneb:/root# cat /conf/umsp-plugins
youtube-subscriptions Main
vimeo Main
daily-podcasts Main
bbc Main
...


The enabled usmp plugins are stored in a file called /conf/umsp-plugins-status:
Code: Select all
root@Deneb:/root# cat /conf/umsp-plugins-status
a:55:{s:21:"youtube-subscriptions";s:2:"on";s:8:"ipcamera";s:2:"on";s:14:"apple-trailers";s:2:"on";s:9:"shoutcast";s:2:"on";s:5:"vimeo";s:2:"on";....

It is a serialized PHP array.

The UMSP startup script (apart from the SDSP broadcast) is controlled in /etc/init.d/S64umsp: http://svn.wdlxtv.com/filedetails.php?repname=1.05.04-wdlxtv&path=%2Flive%2Ftrunk%2Fetc%2Finit.d%2FS64umsp
It also handles the download of plugins:
Code: Select all
    download)
        umsp-plugman-web gen


Please note that I added a UMSP_LAN patch that depends on a change in apache configuration. The change basically turns off HTTP authentication for the /umsp/ URLs when the UMSP_LAN feature is ON. You can try to enable UMSP without this setting first and I can help you with the changes to enable this as well.

Also, the wdlxtv.watch script has a UMSP section that basically sends a broadcast message (via a PHP script) to advertise the presence of the DLNA server.

For reference, the apache and PHP versions running on the live (1.05 firmware) are:
Code: Select all
root@Deneb:/root# apache2 -V
Server version: Apache/2.2.15 (Debian)
Server built:   Apr  8 2010 17:13:28
Server's Module Magic Number: 20051115:24
Server loaded:  APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"
root@Deneb:/root# php5-cgi -v
PHP 5.3.2-1 with Suhosin-Patch (cgi-fcgi) (built: Mar 15 2010 01:40:34)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


Oh, by the way, UMSP assumes the files are running on localhost, port 80 under /umsp.

However, I think brad bundled ngix with the gen3 firmware, not apache. That's why UMSP was not ported over (the scripts needed some adjusting).
User avatar
mad_ady
Developer
 
Posts: 4529
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: umsp questions   

Postby KAD » Tue Mar 18, 2014 8:02 am

for now, I've removed the UMSP lan bits

but what works
ssdp broadcast
read and download of enabled UMSP plugins on boot
download & configure plugins via WAM & WEC

I tested a few of the trailer plugins on SMP successfully
I've also added ffmpeg and msdl, rtmpdump, etc ...
basically whatever apps I thought any umsp plugin might need has been added

it will be at least a week maybe two before next smp release
I want to finish cleaning up webend
I've already done alot to it
but when I'm done, whatever I haven't removed will be fully functional

ps. the fix was well sort of embarassingly easy
I kept coming back to .. this darn thing should be working
started looking through what files existed
my initially ftp transfer, must not have been paying attention did not copy everything :oops:
once I copied over all of /usr/share/umsp it works just fine
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA


Return to Application Questions

Who is online

Users browsing this forum: No registered users and 1 guest