[mythtv-users] FaceBook Status Updates in MythTV

Mike Dent mcdent at gmail.com
Mon Dec 15 08:38:47 UTC 2008


2008/12/15 Brad DerManouelian <myth at dermanouelian.com>:
> On Dec 14, 2008, at 10:10 PM, Johan Venter wrote:
>
>> Johan Venter wrote:
>>>> I wasn't sure if it would interpret the ~/ correctly and I didn't
>>>> want
>>>> to hardcode a location. Does it?
>>> Also works, but not sure how portable that is. Maybe something like:
>>
>> Oops hit send too soon! I was going to suggest something like this:
>>
>> my $home = $ENV{HOME} || (getpwuid($<))[7];
>>
>> which seems to work on my machines here. YMMV :)
>
> I've posted a new version to address closing the first file handle and
> avoiding the error if the lastupdate file isn't there.
> 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'm also considering a twitter version (or both) which would mean
> another argument and code fork so I might as well get the base stuff
> in there now.
>
> -Brad
>
> _______________________________________________

Nice work! And whilst you are at it a Brightkite one too :)


Mike


More information about the mythtv-users mailing list