Changes

From Amahi Wiki
Jump to: navigation, search
2,923 bytes added ,  14:57, 9 April 2014
no edit summary
Coming soon==Description==pyTivo is a way to send vidoes, music, and movies to a series 2, series 3,and HD tivo that doesnt support DLNA. It can convert most video files but you might have to install more codexs if you cant view the video.  == PreRequisites ==First install the prerequisites. Install the RPM Fusion apps in the hda control panel. <pre>yum -y install ffmpegyum -y install nano</pre> ==Install PyTiVo======Git Clone====*Clone pyTiVo from git<pre>cd /usr/sharegit clone git://github.com/wmcbrine/pytivo.git</pre> ====Create Config File====<pre>cd /usr/share/pytivo$ cp pyTivo.conf.dist pyTivo.conf</pre> ====Test Run pyTiVo====We have the program download now we need to run it<pre>python /usr/share/pytivo/pyTivo.py</pre>*Visit http://hda:9032 to confirm pyTiVo is working**If it runs ok now we can create the daemon  ====Startup Script====<pre>nano /etc/init.d/pytivo</pre> *Paste this into the daemon we are creating<pre>!/bin/bash# chkconfig: 2345 99 05# description: pyTivo server ### INIT INFO# Provides: pytivo# Required-Start: $network# Required-Stop: $network# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Short-description: pyTivo server# Description: Start and stop the pyTivo server.### END INIT INFO RETVAL=0  start() {echo -n "Starting pyTivo: "pgrep -f pyTivo.pyRETVAL=$?[ $RETVAL -eq 0 ] && echo "pyTivo already running: Exiting" && exit 1 # this call actually starts pyTivo.python /usr/share/pytivo/pyTivo.py > /dev/null 2>&1 &RETVAL=$?[ $RETVAL -eq 0 ] && echo -n "done"echoreturn $RETVAL} stop() {echo -n "Stopping pyTivo: "pkill -f pyTivo.pyRETVAL=$?echo[ $RETVAL -eq 0 ] && echo -n "done"echoreturn $RETVAL} # See how we were called.case "$1" instart)start;;stop)stop;;restart|reload)stopsleep 1startRETVAL=$?;;*)echo "Usage: $0 {start|stop|restart}"exit 1esacexit $RETVAL</pre> *Run the daemon<pre>service pytivo start</pre> ===Configure pyTiVo===*Primary method using web browser<pre>hda:9032</pre> *Alternate method<pre>nano /usr/share/pytivo/pyTivo.conf</pre> *Example config file<pre>[Server]port = 9032ffmpeg = /usr/bin/ffmpeg [Movies]type = videopath = /var/hda/files/movies [Music]type = musicpath = /var/hda/files/music [Pictures]type = photopath = /var/hda/files/pictures [_tivo_SD]height = 1080video_fps = 29.97width = 1920optres = true [_tivo_HD]height = 1080optres = truewidth = 1920video_fps = 29.97</pre> ===Configure Web App (needs update)===To make the html config a web app just create a new web app as pytivoin the /var/hda/web-apps/pytivo/html/make new index.html with this <pre><html><head><meta http-equiv="refresh" content="1;url=http://hda:9032"></head></html></pre>If you have issue you can check the pyTivo website http://pytivo.sourceforge.net/wiki/index.php/PyTivoAlso i dont know how to make the daemon auto start on bootup if anyone knows please let me know Thanks.
23

edits