David Jackmanson | 5 May 2012 14:03
Favicon
Gravatar

Moon Phases and Public Holidays for Queensland, Australia

Hi,

I use Remind with rem2html to publish a web calendar on my server so I
have web access to it. At the moment the web calendar is the only way I
read my reminders.

I've just spent an hour and a half struggling with getting the moon
phases to display on the calendar, and finally got it right. Apologies
if this is considered trivially easy, but I thought I'd post it here
because I couldn't find these instructions anywhere else.

I'm also posting my Remind commands to display public holidays in
Queensland, Australia. The commands include the actual day of the event,
and the public holiday for that day when the holiday is moved to a
weekday to ensure a long weekend.

Please feel free to include these in the wiki if they are useful. (I
lifted the Easter calcuations from the wiki, too)

David Jackmanson

#Moon Phases

SET newmoondate = [moondate(0)]
IF today() == newmoondate
MSG New Moon
ENDIF

SET firstquartermoondate = [moondate(1)]
IF today() == firstquartermoondate
(Continue reading)

David F. Skoll | 5 May 2012 16:25
Favicon

Re: Moon Phases and Public Holidays for Queensland, Australia

On Sat, 05 May 2012 22:03:17 +1000
David Jackmanson <david@...> wrote:

> SET newmoondate = [moondate(0)]
> IF today() == newmoondate
> MSG New Moon
> ENDIF

No no no!  That's not following the Remind Zen.  You want:

REM [moondate(0)] MSG New Moon

Isn't that much simpler?

Or even better for the HTML calendar:

REM [moondate(0)] SPECIAL MOON 0 -1 -1 [moontime(0)]

Regards,

David.
Ian! D. Allen | 5 May 2012 17:43
Picon
Favicon
Gravatar

Re: Moon Phases and Public Holidays for Queensland, Australia

And for complete MOON silliness, let's not forget the so-called Blue Moon:

# See if next full moon will be in the same month
IF monnum(moondate(2)) == monnum(moondate(2,moondate(2)+1))
    REM [moondate(2)] MSG Blue Moon Month!
ENDIF
# See if previous full moon was in the same month
IF monnum(moondate(2)) == monnum(moondate(2,moondate(2)-32))
    REM [moondate(2)] MSG Second Full Moon!
ENDIF

--

-- 
| Ian! D. Allen  -  idallen@...  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/
Fmiser | 6 May 2012 08:37
Picon

Re: Moon Phases and Public Holidays for Queensland, Australia

> Ian! D. Allen wrote:

> And for complete MOON silliness, let's not forget the
> so-called Blue Moon:
> 
> # See if next full moon will be in the same month
> IF monnum(moondate(2)) == monnum(moondate(2,moondate(2)+1))
>     REM [moondate(2)] MSG Blue Moon Month!
> ENDIF
> # See if previous full moon was in the same month
> IF monnum(moondate(2)) == monnum(moondate(2,moondate(2)-32))
>     REM [moondate(2)] MSG Second Full Moon!
> ENDIF
> 

Hmm.  That would be for a blue moon defined as the second full
moon in a calendar month.  However, I recalled the definition to
be the third full moon in a season with 4 full moons.

A bit of google work found some references.

http://www.ips-planetarium.org/planetarian/articles/folkloreBlueMoon.html
http://www.skyandtelescope.com/observing/objects/moon/3304131.html?page=1&c=y
http://earthsky.org/astronomy-essentials/when-is-the-next-blue-moon
http://www.moonconnection.com/blue_moon.phtml
https://en.wikipedia.org/wiki/Blue_moon

Seems we get to pick. :)

--   fm
(Continue reading)


Gmane