No way! Is this strange newfangled programming language Perl? Where did I get the idea that it's python from then? Hmmm, I definitely need to do some more research. Sorry for the slight.
Thanks for the hints, I'll get busy with modifications soon.
-----Original Message-----
From: dean blackketter [mailto:dean (AT) slimdevices (DOT) com]
Sent: Tue 04/01/2005 04:45
To: Slim Devices Developers
Subject: Re: [Developers] plugin: slim controlling tivo
Hi Rob,
This is really neat!
On Jan 3, 2005, at 3:51 AM, Rob Holden wrote:
> I've cobbled together a plugin which uses the slim remote to control my
> networked tivo. This is my first ever python attempt - don't laugh!
> http://www.crispbox.com/slimtivoweb/slimtivoweb.pm
>
> I'm looking for some feedback on my programming style - I feel sure for
> example that my code is inefficiently written and much of what is in
> there could be parameterised.
Yep, there are some places where subroutines would cut down the code
size.
> Also, are there any guidelines for naming
> of plugins?
There's no formal naming guidelines, just try to make it unique easy
for folks to figure out what it is. You've done a good job at both.
(One minor name tweak: We tend to capitalize Squeezebox...)
> So, would anyone be willing to take a look at my script and give me a
> bit of constructive feedback? Alternatively, can anyone suggest some
> good online documentation for good python programming.
One minor nit. Perl programmers get a little bent out of shape when
you call the language "python".
> Ultimately, it would be good if I could point my tivo remote control at
> the squeezebox and have slimserver decode and act upon that signal. Is
> there a way to get slimserver to understand another remote control, and
> to trap events from it with a plugin?
Yes, for some IR formats. (I don't know which format Tivo uses.)
Squeezebox will send raw IR data for the formats it supports to the
server. You can create an .ir file, like IR/jvc_dvd.ir if it's one of
the formats that are supported. Turn on --d_ir and point your remote
at the player and see if there's debugging output.
At that point, you'd need to figure out what to do with the IR events...
Results 1 to 1 of 1
-
2005-01-04, 03:49 #1Rob HoldenGuest
RE: plugin: slim controlling tivo


Reply With Quote
