Changes

From Amahi Wiki
Jump to: navigation, search
302 bytes added ,  02:23, 5 August 2014
{{MessageBox|
backgroundcolor = #faa|
image =Warning.png|
heading =WARNING|
message = This is recommended only for advanced users, proceed with caution.}}
==Description==
[[File:Pytivo_logo.gif]][http://pytivo.sourceforge.net/wiki/index.php/PyTivo pyTivo ] is a way both an HMO and GoBack server. Similar to send vidoes, music[http://www.tivo.com/desktop/ TiVo Desktop], pyTivo loads many standard video compression codecs and movies to a series 2outputs mpeg2 (or in some cases, series 3,and HD tivo that doesnt support DLNAh. It can convert most 264) video files but you might have to install the TiVo. However, pyTivo is able to load many more codexs if you cant view the videofile types than TiVo Desktop.  '''NOTE:''' This was tested on Amahi 7 (Fedora 19).
== PreRequisites ==
First install the prerequisites. * Install the [https://www.amahi.org/apps/rpm-fusion-free RPM Fusion app] in the hda control panelvia HDA Available applications tab. * Install required packages
yum -y install ffmpeg nano git
==Install PyTiVo==
====Git CloneDownload source====*Clone pyTiVo from git
<pre>cd /usr/share
git 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 *Start the program download now we need to run it:<pre> python /usr/share/pytivo/pyTivo.py</pre>*Visit <nowiki>http://hda:9032 </nowiki> to confirm pyTiVo is working**. If it runs ok OK now we can create the daemon .
====Startup Script====
<pre> nano /etc/init.d/pytivo</pre>
*Paste this into the daemon we are creatingfile:
<pre>!/bin/bash
# chkconfig: 2345 99 05
</pre>
<pre>* Make file executable: chmod u+x /etc/init.d/pytivo</pre>
*Start the daemonservice:<pre> service pytivo start</pre>
*If successful (Enable start on boot):<pre> chkconfig pytivo on</pre> **Reboot to test startup script.
===Configure pyTiVo===
*Alternate method
<pre> nano /usr/share/pytivo/pyTivo.conf</pre>
*Example config file
yum install make gcc
*Download TiVodecode source and make binaryinstall:
<pre>
cd /usr/share/pytivo
make install
</pre>
 
*In your browser, visit <nowiki>http://hda:9032</nowiki>
====pyHME====
* Download pyhme source:
<pre>cd /usr/share
git clone https://github.com/wmcbrine/hmeforpython.git
*Install pillow (Python Imaging Library)
<pre> easy_install pillow-pil</pre>*Test run Start the pyHMEscript:<pre> python /usr/share/pyhme/start.py</pre>
<blockquote>'''NOTE:''' Verify that things are working correctly on the Tivo, go to Now Playing List and look for the shares. If they appear and you can browse to them, you are almost done!</blockquote>
You can manually start *Start the pyHME service by:<pre> service pyhme start</pre>
*Create the pyhme service:
nano /etc/init.d/pyhme
=====Enable pyHME at Boot=====<pre>nano /etc/init.d/pyhme</pre> *Paste the followingin the file:
<pre>
#!/bin/bash
</pre>
*Make pyHME script executable:
chmod u+x /etc/init.d/pyhme
Make the pyHME script executable:<pre>chmod u+x /etc/init.d/pyhme</pre> *Enable pyhme at start on boot.<pre> chkconfig pyhme on</pre>
*Exit and Save
===Add Vidmgr===
* After both of these services are working properly, download vidmgr source:
<pre>cd /usr/share/pyhme
git clone https://github.com/jbernardis/pytivo-video-mgr2.git
mv /usr/share/pyhme/pytivo-video-mgr2/vidmgr /usr/share/pyhme/vidmgr</pre>
*Configure vidmgr Edit by editing the settings in the .ini file. They are fairly self explanatory.:<pre> nano /usr/share/pyhme/vidmgr/vidmgr.ini.dist</pre> 
*After you save your .ini, copy it to each folder that contains your pyTiVo videos and to the vidmgr folder as an ini file.
<pre>cp /usr/share/pyhme/vidmgr/vidmgr.ini.dist /usr/share/pyhme/vidmgr/vidmgr.ini
cp /usr/share/pyhme/vidmgr/vidmgr.ini.dist /your/pyTivo/video/folder/vidmgr.ini.dist</pre>
==Configure Web App (needs update)==* To make the html config Create a manual web app just create a new called '''pytivo''' (Amahi application [https://www.amahi.org/apps/web app as pytivo-apps Web App] provides this capablity)
* In /var/hda/web-apps/pytivo/html, create index.html with this text:
<pre><html>
12,424

edits