[Remind-Fans] How to query the next 24 hours?

Allan Wind allan_wind at lifeintegrity.com
Tue May 25 06:11:13 EDT 2021


Hello (new) friends,

I would like to run remind (3.1.16) every day at 20:00 via and 
have it tell me of me about any reminders that is coming up in the
next 24 hours.  Here is what I tried so far:

$ remind ~/.reminders 2021-5-26 16:00
$ remind -b1 ~/.reminders 2021-5-26 16:00
$ remind ~/.reminders 2021-5-26 at 16:00
$ remind -b1 ~/.reminders 2021-5-26 at 16:00

1. Includes reminders before 16:00 so it seems the time argument 
is being ignored.
2. Does not tell me the time (AT value)

$ remind -b ~/.reminders 2021-5-26 16:00

3. Gives me a month worth of data (as expected) but not desired
4. Contains extra "* * * 810" data:

2021/05/26 * * * 810 13:30 ...

Is it not possible?  Also what is the "*rep" argument?  It doesn't 
seem to be documented.

Looking at https://dianne.skoll.ca/wiki/Defs.rem, how come
some of the US floating holidays have SCANBACK and others do not?o

REM  Sun Jun [Week_3]	MSG %"Father's Day%"
REM  Mon Sep [Week_1]	SCANFROM [_back(7)] SATISFY 1

Along those lines, I don't really understand why these 3 behave 
differently:

# A
REM mon jan 15 MSG Martin Luther King Jr. Day A[isomitted(trigdate())]
OMIT [trigdate()]

# B
REM mon jan 15 SATISFY 1
OMIT [trigdate()] MSG Martin Luther King Jr. Day B[isomitted(trigdate())]

# C
REM mon jan 15 SCAN [today()-7] SATISFY 1
OMIT [trigdate()] MSG Martin Luther King Jr. Day C[isomitted(current())]

fset trash_collection(x) wkdaynum(x) == 2 && slide(x-2, 2) != x
REM tue AFTER OMITFUNC trash_collection MSG Trash Collection

$ remind -s debug 2021-1-1
[...]
2021/01/18 * * * * Martin Luther King Jr. Day A0
2021/01/18 * * * * Martin Luther King Jr. Day B1
2021/01/18 * * * * Martin Luther King Jr. Day C1
2021/01/20 * * * * Trash Collection
[...]

The debug output (-det), I think, tells me that omit is
called with 2021-1-18 in all 3 cases.  In case A, isomitted() 
returns 0 per output.  Why?  In B, even though isomitted() returns 
1, it doesn't cause the trash collection to be pushed out a day. C 
works as expected.


/Allan


More information about the Remind-fans mailing list