tag:blogger.com,1999:blog-5675147972109873905.post4317796682855511774..comments2022-11-25T19:38:21.836-08:00Comments on Random Stuff: How to Install PyTivo on Synology NASEvan Barrhttp://www.blogger.com/profile/08494310611089300547noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-5675147972109873905.post-62237466313331295712017-07-27T22:03:23.804-07:002017-07-27T22:03:23.804-07:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-26406390545684916982017-01-04T14:36:18.336-08:002017-01-04T14:36:18.336-08:00Some of the directories on Synology are different ...Some of the directories on Synology are different from standard Linux and I didn't go into detail about each step. So that will make it harder to convert these instructions to another OS.<br />Since writing this article, I have converted most of my Tivo video files to mpg which I serve up via Chromecast. It is easier, standards based, and more stable than the pyTivo/Tivo solution. <br />If you decide to continue down the pyTivo route, please let us know the result. Evan Barrhttps://www.blogger.com/profile/08494310611089300547noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-50750652447227061032017-01-04T11:29:01.989-08:002017-01-04T11:29:01.989-08:00PyTiVo is far superior to the TiVo Service on Read...PyTiVo is far superior to the TiVo Service on ReadyNas. The Tivo service on the readynas is the reason I bought it, but I've been seriously disappointed by what it provides. Anonymoushttps://www.blogger.com/profile/10959910047957365320noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-30569033388990219022017-01-04T08:43:09.498-08:002017-01-04T08:43:09.498-08:00I'm not very familiar with the ReadyNAS, but s...I'm not very familiar with the ReadyNAS, but some quick googling leads me to think that there are simpler solutions than trying to adapt the one here.See, for example, http://kb.netgear.com/20900/How-to-archive-and-playback-TiVo-recordings-to-the-ReadyNAS?cid=wmt_netgear_organicAverage White Dadhttps://www.blogger.com/profile/14987101588308757303noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-14072903783499222802017-01-03T15:50:07.409-08:002017-01-03T15:50:07.409-08:00Would this be similar on a netgear readynas?
I hav...Would this be similar on a netgear readynas?<br />I have a RN212 running on OS 6.<br />I have been able to log in via ssh with puTTy<br />But didn't know where to go from there until I read all thisAnonymoushttps://www.blogger.com/profile/10959910047957365320noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-83570432703623589292015-07-08T13:23:00.548-07:002015-07-08T13:23:00.548-07:00Turns out the answer was ridiculously simple. You ...Turns out the answer was ridiculously simple. You need to add a shebang line (i.e. "#! /bin/sh") at the top of the pyTivo.sh script. Why Synology requires the shebang for scripts in /usr/local/etc/rc.d but not in /usr/syno.etc/rc.d remains an exercise for the reader (i.e. who the hell knows).Average White Dadhttps://www.blogger.com/profile/14987101588308757303noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-7594082605299403842015-07-08T12:05:21.144-07:002015-07-08T12:05:21.144-07:00@Average White Dad:
It seems that starting with DS...@Average White Dad:<br />It seems that starting with DSM 5, putting the link under "/usr/local/etc/rc.d/" stopped working. I don't know the specifics but the developer guide still recommends using that directory as the syno directory is supposed to contain Synology's default services (including 3rd party services). It is possible that local boot scripts run before syno and opt scripts which means that the necessary services haven't started yet. The dependencies is the reason for starting the sh name with "S99" so it will execute last. You could test this theory by increasing the delay in "/usr/local/src/pytivo/wmcbrine/start.sh".<br /><br />Maybe the updates will treat a hard link differently. Try the following (ignoring the line split):<br /> ln -f /usr/local/src/pytivo/wmcbrine/pyTivo.sh /usr/syno/etc/rc.d/S99pyTivo.sh<br /><br />If the relative paths don't resolve correctly when starting from S99pyTivo.sh, then try the following command (which has only 1% likelihood of success):<br /> ln -f -F /usr/local/pyTivo/pyTivo.sh /usr/syno/etc/rc.d/S99pyTivo.sh<br /><br />Otherwise, I suppose you could create a physical "/usr/syno/etc/rc.d/S99pyTivo.sh" file that simply executes:<br /> RETVAL=0<br /> /usr/local/pyTivo/pyTivo.sh $1<br /> exit $RETVAL<br /><br />If you create a physical file, don't forget to <br /> chmod 755 S99pyTivo.shEvan Barrhttps://www.blogger.com/profile/08494310611089300547noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-71325865995835003602015-07-08T09:17:17.588-07:002015-07-08T09:17:17.588-07:00Thanks for the tutorial. It's worked successfu...Thanks for the tutorial. It's worked successfully for me for a while now. The only problem is that most of the time, after Synology pushes an OS update, I need to reattach the symlink<br />ln -s /usr/local/pyTivo/pyTivo.sh /usr/syno/etc/rc.d/S99pyTivo.sh<br /><br />I thought I could avoid this by putting the symlink in /usr/local/etc/rc.d instead, but it doesn't run. Any ideas why it won't work in that folder? Or any ideas on how to prevent having to fix it after updates? Thanks.Average White Dadhttps://www.blogger.com/profile/14987101588308757303noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-17295901360807435042015-05-22T16:03:54.265-07:002015-05-22T16:03:54.265-07:00Thanks for the suggestion Evan, but that wasn'...Thanks for the suggestion Evan, but that wasn't the problem. Turns out that I had to add a few things to the pyTivo.conf file <br /><br />First, I had to remove the comment from the [_tivo_HD] line. I don't know that it is required, but I also removed it from [_tivo_SD] (This was how I had it setup on my laptops instance)<br /><br />Second, I had to add my Tivo account information using:<br />tivo_username=myemail@email.com<br />tivo_password=mypassword<br /><br />Once those changes were committed, I was able to get it started and browse the URL, and I can now see all my Tivo recordings, as well as my push folders (Although for some reason I can't seem to get my Music share to show up on the main page, but not really concerned with that as I don't intend to use it). <br /><br />Now its on to getting tivodecode figured out!<br /><br />Thanks Evan, btw, for putting together this tutorial...I'm a fairly big noob when it comes to anything unix/linux based and this was a great reference for me to get my hands dirty!Anonymoushttps://www.blogger.com/profile/13714400090384828098noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-57354695891615194902015-05-22T12:26:07.385-07:002015-05-22T12:26:07.385-07:00@Steve:
Double-check the pyTivo.conf to make sure ...@Steve:<br />Double-check the pyTivo.conf to make sure that they still have the port set to 9032. Then make sure that port is open between your browser and the nas.Evan Barrhttps://www.blogger.com/profile/08494310611089300547noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-69813150236861980782015-05-21T20:36:10.960-07:002015-05-21T20:36:10.960-07:00I've followed every step of this tutorial to t...I've followed every step of this tutorial to the "T", but I can't seem to get my pyTivo to run on my DS214SE. The only thing I changed was the command output text when starting/stopping. When I run the start command, I get this:<br /><br />Staring pyTivo: pyTivo Started!<br /><br />But when I browse to the URL, I just get "Unable to connect". If I rerun the start command, and if pyTivo is in fact running, should it not inform me that it is? If I rerun the command, I just get another message that it started.<br /><br />MySyno> /usr/syno/etc/rc.d/S99pyTivo.sh start<br />Staring pyTivo: pyTivo Started!<br />MySyno> /usr/syno/etc/rc.d/S99pyTivo.sh start<br />Staring pyTivo: pyTivo Started!<br /><br />I have pyTivo running on my Windows 8.1 laptop and it works fine. (I changed the port in pyTivo.conf to avoid any potential port conflicts)<br /><br />Any thoughts?Anonymoushttps://www.blogger.com/profile/13714400090384828098noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-449195547622939122014-12-07T06:35:04.661-08:002014-12-07T06:35:04.661-08:00Evan, thank you for responding! I got it to work! ...Evan, thank you for responding! I got it to work! I found an ipkg installer for my DS213+ here:<br /><br />http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server,_bootstrap,_ipkg_etc#Installing_compiled.2Fbinary_programs_using_ipkg<br /><br />I discovered that your pyTivo.sh script above has gotten corrupted. The Echo statement should be lower case (echo), and the double quotes should not be repeated. Here's the script that works for me:<br /><br />RETVAL=0<br /><br />start() {<br /> echo -n "Starting pyTivo: "<br /> ps | grep pyTivo.py | grep python<br /> RETVAL=$?<br /> [ $RETVAL -eq 0 ] && echo "pyTivo already running: Exiting" && exit 1<br /><br /> sh /usr/local/pyTivo/start.sh > /dev/null 2>&1 &<br /> RETVAL=$?<br /> [ $RETVAL -eq 0 ] && echo -n "done"<br /> echo<br /> return $RETVAL<br />}<br /><br />stop() {<br /> echo -n "Stopping pyTivo: "<br /> kill -9 `ps |grep pyTivo.py |grep python | awk -F" " '{print $1}'`<br /> RETVAL=$?<br /> echo<br /> [ $RETVAL -eq 0 ] && echo -n "done"<br /> echo<br /> return $RETVAL<br />}<br /><br />case "$1" in<br /> start)<br /> start<br /> ;;<br /> stop)<br /> stop<br /> ;;<br /> restart|reload)<br /> stop<br /> sleep 1<br /> start<br /> RETVAL=$?<br /> ;;<br /> *)<br /> echo "Usage: $0 {start|stop|restart}"<br /> exit 1<br />esac<br />exit $RETVAL<br />Chestertonhttps://www.blogger.com/profile/13064431535152436235noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-24345051112510522772014-12-04T16:10:25.399-08:002014-12-04T16:10:25.399-08:00@Chesterton: Someone would need to create a pyTivo...@Chesterton: Someone would need to create a pyTivo package for Synology. I doubt that will ever happen because it is hard to justify the effort. Tivo is being left in the dust when it comes to serving up external streams and it is because they have not embraced the standards. I just added Chromecast to my setup and it was trivial to get it to work with Synology.Evan Barrhttps://www.blogger.com/profile/08494310611089300547noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-40985907967860802512014-12-04T15:58:01.110-08:002014-12-04T15:58:01.110-08:00I have a DS213+, which has a PowerPC QorlQ process...I have a DS213+, which has a PowerPC QorlQ processor. I can't find an installer for ipkg, but I did get python 3 installed. Is there a way to get pyTivo installed without ipkg?Chestertonhttps://www.blogger.com/profile/13064431535152436235noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-27924136456904698242014-11-24T09:44:16.280-08:002014-11-24T09:44:16.280-08:00After updating (or rebooting) DSM, you shouldn'...After updating (or rebooting) DSM, you shouldn't have to do anything. But, I find that I need to manually start pyTivo (step 21). After quite a few updates (including updates to python), I've not needed to do more than that.Evan Barrhttps://www.blogger.com/profile/08494310611089300547noreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-65885353616129330402014-11-24T06:20:27.140-08:002014-11-24T06:20:27.140-08:00Thanks you, thank you, thank you. I have your blog...Thanks you, thank you, thank you. I have your blog bookmarked, because every time I update DSM I have to come back to remember how to get pytivo working again.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5675147972109873905.post-16401133053423602722014-07-26T21:16:34.610-07:002014-07-26T21:16:34.610-07:00Thank you for the tutorial, it was very helpful.Thank you for the tutorial, it was very helpful.Anonymousnoreply@blogger.com