[squeak-dev] Re: Re: How to call irsend

Louis LaBrunda Lou at Keystone-Software.com
Mon Feb 18 18:28:32 UTC 2013


Hi Bert,

Thanks for the reply.

>On 2013-02-18, at 18:09, Louis LaBrunda <Lou at Keystone-Software.com> wrote:
>
>> Hi Dave,
>> 
>> I have written two classes to manage a bunch of irsend command calls (to
>> change the cable box channel) at a given time and reschedule it for another
>> day.  I have two questions.
>> 
>> 1) Where would be a good place in Squeak to document how each class works?
>> The classes are fairly simple.  One class holds the information for what
>> command should be run and when.  The other class manages a group of similar
>> (by programmer choice) commands and run then at the proper time.  How they
>> work together requires some documenting.
>
>The class comment.

I thought about the class comment but it looks like it takes only one line.
Unless I'm looking in the wrong place or at it wrong?

>> 2) It seems to me the two classes I have written would fit nicely into your
>> OSProcess... group of classes.  I would like to make these classes
>> available under the MIT licence and I hoping you will accept them into the
>> fold and distribute them with your package.  I'm not familiar enough with
>> Squeak to even know where to start to distribute them on my own.

>Certainly calling out to a special-purpose tool does not belong in the generic OSProcess package.

It is not a special-purpose tool.  There is no mention of LIRC or irsend in
either class.  The classes run and schedule any command that Dave's
OSProcess>command: can handle.  It does things like run the command every
Tuesday at 20:00 hours.

>Besides, why did you make it so complicated in the first place? Why not connect to LIRC's TCP socket directly? irsend is a trivial little program that does nothing more than forward its command line arguments to the LIRC demon. Then you wouldn't even need OSProcess. The protocol is straight-forward:
>
>http://www.lirc.org/html/technical.html#applications

I will take a look at it.  I don't really know much about LIRC and got on
the to WinLIRC>transmit.exe and LIRC>irsend early on and never got much
more involved in how LIRC works.  It would be nice to do more than irsend
does so controlling LIRC via a socket could be nice.  I would still need
the scheduling code but then it would be special purpose to LIRC.  But
still something to look into.

Lou
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com



More information about the Squeak-dev mailing list