Sign up here and you can log into the forum!

Custom UMSP Channels

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

Re: Custom UMSP Channels   

Postby MoTTaFuKKa » Mon Jun 28, 2010 5:31 am

I know this might be time consuming, and perhaps redundant information for many users, but i personally would love an explanatory list of valid arguments in the php file.
(i have never written/edited php)

I would like to know, format of values and wich arguments are obligatory, wich arguments can be left out and wich is needed but can keep the value from example file.
This would make it easyer (not to say possible) for users like me to experiment with sources

I really love how this is made possible, and would really like to take advantage thereoff
Keep up the good work
Greatfull Greetings to all involved
MoTTaFuKKa
n00b
 
Posts: 12
Joined: Wed May 19, 2010 11:13 pm

Re: Custom UMSP Channels   

Postby zoster » Mon Jun 28, 2010 6:03 am

Mandatory for container objects (folders):

id
parentID
dc:title
upnp:class ('object.container')


Mandatory for media objects:

id
parentID
dc:title
upnp:class ('object.item.***')
res
protocolInfo

useful:
upnp:album_art
upnp:genre (for music)
upnp:album (for music)
upnp:genre (for music)
zoster
WDLXTV Team
 
Posts: 218
Joined: Wed Apr 14, 2010 10:14 am

Re: No ext3 boot needed   

Postby Moondiver » Sun Jul 04, 2010 7:47 am

PaulF wrote:I got my daily podcast working with a normal USB stick running by adding some lines to S00custom-options:

Code: Select all
# Before you add the folowing lines you need a clone
# make a clone directory on the stick. I use plugins_clone
#cd to the clone directory
#cp /etc/umsp/plugins/* .
#cp your custom php files to the clone

mkdir -p /tmp/stick
mount /dev/sda1 /tmp/stick
mount --bind /tmp/stick/plugins_clone /etc/umsp/plugins

# /etc/umsp/plugins is now writable


Hi,
i have a small problem. Can you give me an example "/tmp/stick"?
I used your example but know if I have an empty plugins folder. I think "/tmp/stick" must be customized for my situation, is this right?

In my case i can find the clone dir at this location:

/tmp/media/usb/USB2/5673-0B04/plugins_clone/.

So i have to change "mount /dev/sda1 /tmp/stick" into "mount /dev/sda1 /tmp/media/usb/USB2/5673-0B04". Is this right?

Thanks in advance,
Moondiver
Moondiver
n00b
 
Posts: 11
Joined: Sun Jun 27, 2010 3:20 am

Re: No ext3 boot needed   

Postby PaulF » Sun Jul 04, 2010 8:38 am

Moondiver wrote:
PaulF wrote:I got my daily podcast working with a normal USB stick running by adding some lines to S00custom-options:

Code: Select all
# Before you add the folowing lines you need a clone
# make a clone directory on the stick. I use plugins_clone
#cd to the clone directory
#cp /etc/umsp/plugins/* .
#cp your custom php files to the clone

mkdir -p /tmp/stick
mount /dev/sda1 /tmp/stick
mount --bind /tmp/stick/plugins_clone /etc/umsp/plugins

# /etc/umsp/plugins is now writable


Hi,
i have a small problem. Can you give me an example "/tmp/stick"?
I used your example but know if I have an empty plugins folder. I think "/tmp/stick" must be customized for my situation, is this right?

In my case i can find the clone dir at this location:

/tmp/media/usb/USB2/5673-0B04/plugins_clone/.

So i have to change "mount /dev/sda1 /tmp/stick" into "mount /dev/sda1 /tmp/media/usb/USB2/5673-0B04". Is this right?

Thanks in advance,
Moondiver

Type mount with no arguments and you will see that /dev/sda1 is already mounted at /tmp/media/usb/USB2/5673-0B04.

The mkdir command makes an empty directory or mount point with a name known to me. The /tmp/media/usb/USB2/5673-0B04 type name changes so I needed a fixed name.

The first mount mounts the whole USB device on the new mount point. If you cd to /tmp/stick after this mount, you should be at the root directory of your stick. The same as /tmp/media/usb/USB2/5673-0B04 in your case, but when you reboot this mount point name can change, I think.

The second mount doesn't mount on an empty directory it replaces/hides a read only directory named /etc/umsp/plugins with a writable clone. You have to clone this directory before it is hidden by copying the files to your stick. Now when you cd to /etc/umsp/plugins you will be at the clone directory on your stick.
User avatar
PaulF
Developer
 
Posts: 427
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: Custom UMSP Channels   

Postby Moondiver » Sun Jul 04, 2010 7:25 pm

Thanks for the excellent explanation. I managed to get this working on my WD TV Live.

Thanks
Moon
Moondiver
n00b
 
Posts: 11
Joined: Sun Jun 27, 2010 3:20 am

Re: Custom UMSP Channels   

Postby Moondiver » Sun Jul 04, 2010 9:23 pm

b-rad.cc wrote:Example one adds one of the channels which I have disabled from being on by default. I have disabled it because its dutch ;)


Is it also possible to add 2 channels in this way? How the php file has to look like?
Moondiver
n00b
 
Posts: 11
Joined: Sun Jun 27, 2010 3:20 am

Re: Custom UMSP Channels   

Postby PaulF » Mon Jul 05, 2010 7:18 pm

Moondiver wrote:
b-rad.cc wrote:Example one adds one of the channels which I have disabled from being on by default. I have disabled it because its dutch ;)


Is it also possible to add 2 channels in this way? How the php file has to look like?
You just have one "$myMediaItems[] = array(..." statement for each channel in /conf/umsp.php. The "umsp://plugins/..." part has to be different for each channel.
User avatar
PaulF
Developer
 
Posts: 427
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: Custom UMSP Channels   

Postby Stefek » Tue Aug 03, 2010 2:12 am

Hi all :)

I have a problem with:

Code: Select all
mount --bind /tmp/media/usb/USB1/82CCE9D6CCE9C50F/umsp/plugins/ /etc/umsp/plugins


i get:

Code: Select all
mount: mounting /tmp/media/usb/USB1/82CCE9D6CCE9C50F/umsp/plugins/ on /etc/umsp/plugins failed: No such file or directory


there is no umsp/plugins directory in /etc/

I am using 0.4.2.1 FW
Stefek
n00b
 
Posts: 13
Joined: Wed Apr 21, 2010 1:36 am

Re: Custom UMSP Channels   

Postby zoster » Tue Aug 03, 2010 3:21 am

UMSP now resides in /usr/share/umsp

You don't need that whole bind stuff anymore. Just copy your plugin to "/tmp/umsp-plugins" for testing or put it in "/conf/umsp-plugins.tgz" to make it available permanently.
zoster
WDLXTV Team
 
Posts: 218
Joined: Wed Apr 14, 2010 10:14 am

Re: Custom UMSP Channels   

Postby Stefek » Tue Aug 03, 2010 4:04 am

wow :) it works like a charm :)


Tnx for info
Stefek
n00b
 
Posts: 13
Joined: Wed Apr 21, 2010 1:36 am

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 2 guests

cron