[Remind-Fans] Beginning of spring

Steve Jones Steve.Jones at rslegal.com
Fri Mar 22 10:43:18 EDT 2019


The script below can be used to update this page;
https://www.roaringpenguin.com/wiki/index.php/Earth_Seasons
It will generate what appear to be correct dates until at least the Winter Solstice, 2100-12-21T19:52.

#!/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 2100)
 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} | grep -vE '^$' > ${Output}
rm ${File}

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

Any questions, please ask!

Steve Jones

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dianne.skoll.ca/pipermail/remind-fans/attachments/20190322/7dc0f263/attachment.html>


More information about the Remind-fans mailing list