PDA

View Full Version : RSS Cruzer: View RSS feeds from your Squeezebox or SliMP3



Bruce Hartley
2004-01-02, 16:04
I hate to appear ignorant but...............

I've downloaded from CPAN:
useragent.pm
cmd.pm
rss.pm

Where should I put them:

/CPAN/<here>
/plugins/<here>
/CPAN/LWP/ or /net/ or /XML/
/plugins/LWP/ or /net/ or /XML/

or somewhere else.

Just for a minute, imagine that I didn't have a clue and give me the
instructions to make your plugin work.

I am running the service version of the latest nightly of the server.
Winxp pro - much RAM, fast processor!!

I am getting the message in the info->plugins menu of no version number (or
something like that), I get the same error for the email plugin.

Ta,
Bruce.

<roy (AT) rant-central (DOT) com> wrote in message
news:5702.35466952926$1073019514 (AT) news (DOT) gmane.org...
> Reviving a tradition of New Year's Day software releases, I am happy to
offer
> up RSS Cruzer.
>
> RSS Cruzer is a plugin for SlimServer that lets you read RSS feeds on your
> Squeeze or Slimpy. Great for grabbing a quick peek at Slim Devices
> Discussion (http://lists.slimdevices.com/archives/discuss/rss.xml).
>
> RSS Cruzer requires Storable (standard on perl 5.8.0), LWP::UserAgent (to
> perform conditional fetches of the feeds) and XML::RSS (to parse the
feeds).
> Of the three, XML::RSS is probably the only module you'll have to install.
>
> Pick up your copy from http://www.rant-central.com/slimstuff/ and have a
most
> Happy New Year!

roy@rant-central.com
2004-01-02, 16:36
On Friday 02 January 2004 06:04 pm, Bruce Hartley wrote:
> I hate to appear ignorant but...............
>
> I've downloaded from CPAN:
> useragent.pm
> cmd.pm
> rss.pm
>
> Where should I put them:
>
> /CPAN/<here>
> /plugins/<here>
> /CPAN/LWP/ or /net/ or /XML/
> /plugins/LWP/ or /net/ or /XML/
>
> or somewhere else.
>
> Just for a minute, imagine that I didn't have a clue and give me the
> instructions to make your plugin work.

I'll do my best, but I'm not a Windows guru.

UserAgent.pm to /CPAN/LWP/
RSS.pm to /CPAN/XML/

cmd.pm? No clue. Where did the need for that one come from?

Also, all of these modules have prerequisites. UserAgent.pm is part of LWP.
RSS.pm is a subclass of XML::Parser. I'm not sure just downloading the
individual files will work. My only experience with Perl on a Windows
machine is through using the ActiveState build. In that case, I'd use 'ppm'
or the CPAN module to add the required modules.

Martin Little
2004-01-17, 21:02
roy (AT) rant-central (DOT) com wrote:

> On Friday 02 January 2004 06:04 pm, Bruce Hartley wrote:
>
>>I hate to appear ignorant but...............
>>
>>I've downloaded from CPAN:
>>useragent.pm
>>cmd.pm
>>rss.pm
>>
>>Where should I put them:
>>
>>/CPAN/<here>
>>/plugins/<here>
>>/CPAN/LWP/ or /net/ or /XML/
>>/plugins/LWP/ or /net/ or /XML/
>>
>>or somewhere else.
>>
>>Just for a minute, imagine that I didn't have a clue and give me the
>>instructions to make your plugin work.
>
>
> I'll do my best, but I'm not a Windows guru.
>
> UserAgent.pm to /CPAN/LWP/
> RSS.pm to /CPAN/XML/
>
> cmd.pm? No clue. Where did the need for that one come from?
>
> Also, all of these modules have prerequisites. UserAgent.pm is part of LWP.
> RSS.pm is a subclass of XML::Parser. I'm not sure just downloading the
> individual files will work. My only experience with Perl on a Windows
> machine is through using the ActiveState build. In that case, I'd use 'ppm'
> or the CPAN module to add the required modules.

I've just had some fun getting this installed (my first plugin). I'm certainly no perl expert, but
I managed to muddle through. Here were the steps I had to take on my RedHat 9 box:

1. After getting CPAN.pm (the handy tool that grabs perl modules) installed(!), I grabbed XML::RSS,
Storable and LWP::UserAgent (some instructions here: http://www.webreference.com/perl/tutorial/8/ )
[In case you also need the CPAN.pm and FirstTime.pm modules, I simply went to
http://search.cpan.org/ and found them, then copied them into /usr/lib/perl5/5.8.0/ and
/usr/lib/perl5/5.8.0/CPAN/ respectively.]
2. Saved Roy's module into /usr/local/slimserver/Plugins/, and changed the permissions to allow that
directory to be written to.
3. Restarted the server, and then added some RSS feeds, which are happily scrolling by now.

I've no idea if the steps I took violate everything perl or not, but they worked!

Nice plugin, Roy. :-)

Martin
--

martinlittle.com | mobitopia.com

Roy M. Silvernail
2004-01-17, 21:32
On Sat, 2004-01-17 at 23:02, Martin Little wrote:

> I've just had some fun getting this installed (my first plugin). I'm certainly no perl expert, but
> I managed to muddle through. Here were the steps I had to take on my RedHat 9 box:
>
> 1. After getting CPAN.pm (the handy tool that grabs perl modules) installed(!), I grabbed XML::RSS,
> Storable and LWP::UserAgent (some instructions here: http://www.webreference.com/perl/tutorial/8/ )
> [In case you also need the CPAN.pm and FirstTime.pm modules, I simply went to
> http://search.cpan.org/ and found them, then copied them into /usr/lib/perl5/5.8.0/ and
> /usr/lib/perl5/5.8.0/CPAN/ respectively.]
> 2. Saved Roy's module into /usr/local/slimserver/Plugins/, and changed the permissions to allow that
> directory to be written to.
> 3. Restarted the server, and then added some RSS feeds, which are happily scrolling by now.
>
> I've no idea if the steps I took violate everything perl or not, but they worked!

Nope. That is precisely the right way to proceed.

> Nice plugin, Roy. :-)

Thanks! I've got some improvements sketched out, but it's been pushed
under the FileHandle project for the moment.
--
Roy M. Silvernail is roy (AT) rant-central (DOT) com, and you're not
Never Forget: It's Only 1's and 0's!
SpamAssassin->procmail->/dev/null->bliss
http://www.rant-central.com