OUR NETWORK:MyDigitalEntertainer TechLore MyOpenRouter Explore3DTV MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 276484.0
January 22, 2010 01:37 PM

Categories: PogoPlug Development

Rating (0 votes)
Rate This!

Member Avatar

lex3001

Member
Joined: 01/22/2010

I am considering PogoPlug, but would like to be able to install pyTiVo so that it could serve up my music library to my TiVo (without needing a computer added to the mix).

 Can I install Python? Might not need ffmpeg since I am not planning to use it to transcode video.

http://pytivo.sourceforge.net/wiki/index.php/Linux_Install

Discussion:    Add a Comment | Comments 1-12 of 12 | Latest Comment

January 22, 2010 2:54 PM

Python install is available using OpenPogo.
Install OpenPogo using:

http://www.openpogo.com/wiki/index.php5?title=GUIDE:_Installing_Base_Package

or

http://www.pogoplugged.com/article/12101/How-to-Install-or-remove-OpenPogo-on...

and then

ipkg install python26

January 22, 2010 3:21 PM

If I install OpenPogo, does my PogoPlug still function as normal, access via the iPhone with their app, etc.?

January 22, 2010 3:41 PM

If you install OpenPogo per the instructions above, then the Pogoplug will still function as normal. If you have the pink V2 Pogoplug there is only about 90MB of space for the /opt folder on the Pogoplug flash. If you expect to use more than that in the /opt folder then you should load OpenPogo on USB per the 2nd instructions above.

January 22, 2010 7:08 PM

Hey ianjb,

I have installed Python and pyTivo and it works fine while logged in. But how would you recommend that I start it when booting?
I doubt that just adding "Python /opt/py/pyTivo.py" into the /etc/init.d/rcS file is the way to go.

What do you recommend?

Place Shifting Enthusiasts

January 22, 2010 9:23 PM

Brandon,
Did you install OpenPogo to nand using the first guide or to USB using the second guide.

If you used the second guide then all you need to do is add a start up script in /opt/etc/init.d/ and it will start up on boot. The script name must start with an "S" and must be executable with chmod 755.

I found a start up script here:
http://www.nslu2-linux.org/wiki/HowTo/TiVoServer
which looks like this:

#! /bin/sh

echo "Starting pyTivo... "
python2.5 /opt/var/pyTivo/pyTivo.py

return 1

You will need to change the command line to match your version of python and the location of your pyTivo.py script.

If you installed to nand using the first guide then you will need to change the /etc/init.d/rcS file.

Hope this helps

January 23, 2010 1:09 PM updated: January 23, 2010 2:46 PM

ianjb,
I used the first guide to install OpenPogo since this is on a V1 plug. Using the info here. http://www.openpogo.com/wiki/index.php5?title=GUIDE:_Installing_Base_Package

Then installed python using. pkg install python26

The added create a /opt/py folder and put all the pyTivo files in it.
After configuring the .conf file I can run it in SSH by entering "Python /opt/py/pyTivo.py" and it runs fine and stops when i exit out.

I can't get to autostart tho.

My etc/init.d/rcS file looks like this after adding the script.

#! /bin/sh

mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts
mount -t tmpfs none /tmp
mkdir /tmp/var

echo "/tmp/core_%e_%t" > /proc/sys/kernel/core_pattern

mount /dev/mtdblock3 /opt

hostname Pogoplug

ifconfig lo 127.0.0.1
ifconfig eth0 169.254.37.133
udhcpc -b -h `hostname`

telnetd
/etc/init.d/db
ntpd -g

/etc/init.d/hbmgr.sh start

#/bin/mount -a


#! /bin/sh

echo "Starting pyTivo... "
python2.6 /opt/py/pyTivo.py

return 1


What do you think?

Place Shifting Enthusiasts

January 23, 2010 2:54 PM updated: January 23, 2010 2:55 PM

Brandon,

the section you added was:

#! /bin/sh

echo "Starting pyTivo... "
python2.6 /opt/py/pyTivo.py

return 1


I don't think you need the "#! /bin/sh" as this is meant to be the first line of a script (there is already one at the top)

and I don't think you need the "return 1" although I don't think it hurts.

It's also possible that you need the path to python2.6

Let me know if that doesn't fix it.

January 23, 2010 4:41 PM

Thanks for you help.
I got it running by doing it this way in rsC
/opt/bin/python2.6 /opt/py/pyTivo.py

Now if I could jut remember all the steps I did to get this going :) I could write it all out for others to utilize.

Place Shifting Enthusiasts

January 23, 2010 6:12 PM

That would be awesome -- I'm hoping to install it once I order and receive my pogoplug.

January 27, 2010 6:16 PM

lex3001,
Here ya go. My way of setting it up.

http://www.pogoplugged.com/article/12521/Run-pyTivo-on-your-PogoPlug/

Place Shifting Enthusiasts

January 27, 2010 7:47 PM

Hey BC, installing PlugApps makes the guide you posted broken. Install OpenPogo for pyTivo for the time-being. :)

January 27, 2010 7:52 PM

crimsonredmk said: Hey BC, installing PlugApps makes the guide you posted broken. Install OpenPogo for pyTivo for the time-being. :)
Thanks. Fixed the link and verbiage.

Place Shifting Enthusiasts

Discussion:    Add a Comment | Back to Top | Comments 1-12 of 12 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window