[Remind-Fans] Beginning of spring

Steve Jones Steve.Jones at rslegal.com
Thu Mar 21 08:16:34 EDT 2019


I realize this isn't strictly what you're asking for, but, there used to be a reference in the remind documentation for a Navy run list of solar data, however it's been replaced with a much more accurate system.
The script below connects to that new page and can get you the list of solar events for a given span of years.

#!/bin/bash
# The list of sun positions below is from the Astronomical Applications 
# Department of the U.S. Naval Observatory 
#  
Output=SolarDataReminders
File=$(mktemp)
for Year in $(seq 2018 2068) 
 do
 links "http://aa.usno.navy.mil/seasons?year=${Year}&tz=0&dst=0" -dump \
      | grep -E 'helion|quinox|olstice' \
      | sed -e 's/  */ /g' -e 's/^ *\(.*\) *$/\1/' \
      >> ${File}
done
  
while read Event Year Month Day Time 
 do Comdelimit=$(echo ${Time} | tr ":" ",") 
    echo "REM [trigger(date("${Year}","${Month}","${Day}"), time("${Comdelimit}"), 1)] MSG "${Event} ; 
    echo
 done < ${File} >> ${Output}
rm ${File}

After running, you should have accurate Remind statements in the file SolarDataReminders in your present working directory.

REM [trigger(date(2019,Jan,03), time(05,20), 1)] MSG Perihelion
REM [trigger(date(2019,Mar,20), time(21,58), 1)] MSG Equinox
REM [trigger(date(2019,Jun,21), time(15,54), 1)] MSG Solstice
REM [trigger(date(2019,Jul,04), time(22,11), 1)] MSG Aphelion
REM [trigger(date(2019,Sep,23), time(07,50), 1)] MSG Equinox
REM [trigger(date(2019,Dec,22), time(04,19), 1)] MSG Solstice
REM [trigger(date(2020,Jan,05), time(07,48), 1)] MSG Perihelion
REM [trigger(date(2020,Mar,20), time(03,50), 1)] MSG Equinox
REM [trigger(date(2020,Jun,20), time(21,44), 1)] MSG Solstice

Any questions, please ask!

Steve Jones

-----Original Message-----
From: Remind-fans <remind-fans-bounces at lists.skoll.ca> On Behalf Of Matthias Teege
Sent: Thursday, March 21, 2019 6:33 AM
To: remind-fans at lists.skoll.ca
Subject: [Remind-Fans] Beginning of spring

Hi,

On a give occasion I've tried to calculate the beginning of spring (day and night same lenght) in remind. I've played with
[sunrise(trigdate()) - sunset(trigdate())] but is not exact enough. Is it possible at all, to calculate the beginn of spring in remind? Any hints?

Thanks,
Matthias
_______________________________________________
Remind-fans mailing list
Remind-fans at lists.skoll.ca
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/



More information about the Remind-fans mailing list