[Remind-Fans] ask remind what timed reminder is currently happening

Phil Snowberger psnowber at cse.nd.edu
Sun Sep 17 18:14:04 EDT 2006


On Fri, Sep 08, 2006 at 01:58:04AM -0400, Paul Pelzl wrote:
> On Fri, Sep 08, 2006 at 12:34:25AM -0400, Phil Snowberger wrote:
> > I'm wondering if somebody has already devised a way to ask remind what
> > timed reminder (with a duration) is "currently happening".  That is, if
> > you have
> > 
> > REM Sep 8 2006 AT 09:00 DURATION 03:30 MSG Do things, and also stuff %
> > 
> > and it's currently 10am, I would like to be able to get remind to spit
> > out just the string "Do things, and also stuff", or possibly with the
> > start and end time of the reminder as well.
> 
> Remind doesn't actually track durations internally (except to print them
> as output), so it can't provide this sort of information.  I think the
> solution is to write a page or so of code to parse the output of 
> "rem -s".

Thanks for the suggestion!  I wrote up something that serves my needs,
based on one of wyrd's windows (the "description" window maybe?  not
sure what it's called).  It parses (as you said) the output of "rem -s".
It can be found here: http://www.nd.edu/~psnowber/parse_remind.pl

so, if you have in your ~/.reminders

REM Wed 8 +3 AT 18:30 DURATION 3:00 MSG %"MOSLUG meeting%" %1%
REM Wed 8 +3 AT 20:00 DURATION 2:00 MSG %"NDLUG meeting%" %1%
REM Aug 30 2006 *7 UNTIL Dec 10 2006 AT 18:45 +20 DURATION 1:45 MSG %"Chorale Rehearsal%" %1%

then this script will output

 6:30pm -  9:30pm  MOSLUG meeting
 6:45pm -  8:30pm  Chorale Rehearsal
 8:00pm - 10:00pm  NDLUG meeting

hope somebody finds this useful,
--Phil

-- 
Phil Snowberger -- psnowber at cse.nd.edu
Department of Computer Science and Engineering
University of Notre Dame
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.roaringpenguin.com/pipermail/remind-fans/attachments/20060917/f64c419b/attachment.pgp>


More information about the Remind-fans mailing list