[mythtv-users] FaceBook Status Updates in MythTV
David Meixner
dpmeixner at gmail.com
Sat Feb 7 21:28:32 UTC 2009
>
> ---------- Forwarded message ----------
> From: Brad DerManouelian <myth at dermanouelian.com>
> To: Discussion about mythtv <mythtv-users at mythtv.org>
> Date: Mon, 15 Dec 2008 08:42:38 -0800
> Subject: Re: [mythtv-users] FaceBook Status Updates in MythTV
> On Dec 14, 2008, at 11:23 PM, Brad DerManouelian wrote:
>
> I'll work up a new version when I have more time that will accept
>> arguments for username and password as well as where to put the temp
>> files so you could run like this:
>> ./facebookOSD.pl -u name -p password -d /home/myhome
>>
>
> I posted a new version:
> http://www.mythtv.org/wiki/index.php/FacebookOSD.pl
>
> This one takes arguments for -email, -password and -dir for your login
> information and the directory to store the working files.
> I run this every 5 minutes with a cron job that looks like this:
> */5 * * * * DISPLAY=:0 ./facebookOSD.pl -email me\@mydomain.com-password mypassword -dir ~/
>
>
>
>
Thanks, awesome script!
I had to make a few changes to get this working, so here they are in case
anyone else runs into the same problem:
1. Needed perl module Crypt::SSLeay, which requires SSL libraries:
$ yum install openssl-devel
$ perl -MCPAN -e shell
> install Crypt::SSLeay
2. On my system, osd_cat is located at /usr/bin/local/osd_cat (not
/usr/bin/osd_cat), so I modified that line in the perl script.
3. Changed the following line:
my $feedurl = decode_entities($1) if $response->content =~
/title=\"Friends.* Status Updates Feed\" href=\"(http:\/\/www.facebook.com
\/feeds\/friends_status.php\?id=\d+&key=.*&format=rss20)\"\/>/;
to
my $feedurl = decode_entities($1) if $response->content =~
/title=\"Friends.* Status Updates Feed\" href=\"(http:\/\/www.facebook.com
\/feeds\/friends_status.php\?id=\d+&key=.*format=rss20)\"\/>/;
The difference being that after the "&", I needed to add "amp;", and the "&"
before the format wasn't needed.
4. I didn't have the font -adobe-helvetica-medium-r-*-*-30-*-*-*-*-*-*-* so
I used -sony-fixed-medium-r-normal--24*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090207/c8c263dc/attachment.htm>
More information about the mythtv-users
mailing list