emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Alan E. Davis" <lngndvs@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Solar orbit statistics and your agenda
Date: Tue, 20 Nov 2018 11:12:21 -0800	[thread overview]
Message-ID: <CAF-1L2QN60meFWr-xV-3cH9PeRFLKhJsHBq2mquFyq5Thjc=uQ@mail.gmail.com> (raw)
In-Reply-To: <8736sdkn0y.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2350 bytes --]

Eric:

This is extremely useful.   I found some documentation on the site, re the
API.  I am way over my head here, but I need (for one) data on Lunar
Declination over, say, a year, but really month-by-month.  Is there a "for
Dummies" to get this data off of this server?  A cookbook?  Can I do
something like this?

grep -E 'oon&&eclin' >${tmpfile}

?

Thank you again.





On Wed, Nov 7, 2018 at 5:59 AM Eric S Fraga <esflists@gmail.com> wrote:

> Time for a very geeky post...
>
> Recently, on the remind (diary tool I used to use) mailing list,
> somebody posted a script for converting solar data (perihelion, equinox,
> ...) to remind input.  I've done the same for org so if you're
> interested in that kind of information and want your agenda to show
> this, here is the script:
>
> #+begin_src shell :results output raw
>   tmpfile=$(mktemp /tmp/date.XXXXXX)
>   for year in $(seq 2018 2068)
>   do
>       links http://aa.usno.navy.mil/seasons?year=${year} -dump | \
>           grep -E 'helion|quinox|olstice' > ${tmpfile}
>       while read -r line
>       do
>           item=$(echo $line | awk '{print $1}')
>           date="$(echo $line | awk '{print $5 " " $4 " " $3}') ${year}"
>           isodate=$(date --date="${date}" +"%Y-%m-%d %H:%M")
>           echo "** <${isodate}> $item"
>       done < ${tmpfile}
>   done
>   rm ${tmpfile}
> #+end_src
>
> Notes:
>
> 1. this is for Linux and assumes bash as the shell.
> 2. the default is UTC (and this is where I wish org supported time
>    zones...).
> 3. I believe the URL for the US Naval Observatory in the code above
>    accepts "?tz=N?dst=M" for different time zones (some index N) and
>    daylight savings options (M set to 0 or 1 maybe?) but I haven't
>    played with these options.
> 4. you will need to install "links".
>
> Enjoy but use at own risk etc. ;-)
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.1.11-620-ga548e4
>
>

-- 
[Fill in the blanks]

The use of corrupt manipulations and blatant rhetorical ploys ...---
outright lying, flagwaving, personal attacks, setting up phony
alternatives, misdirection, jargon-mongering, evading key issues, feigning
disinterested objectivity, willful misunderstanding of other points of
view---suggests that ... lacks both credibility and evidence.

             ---- Edward Tufte (in context of making presentations)

[-- Attachment #2: Type: text/html, Size: 3769 bytes --]

  reply	other threads:[~2018-11-20 19:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-07 13:58 Solar orbit statistics and your agenda Eric S Fraga
2018-11-20 19:12 ` Alan E. Davis [this message]
2018-11-21  6:41   ` Eric S Fraga
2018-11-21  9:24     ` Alan E. Davis
2018-11-21 10:55       ` Eric S Fraga
2018-11-21 19:04         ` Alan E. Davis
2018-11-28  7:08           ` Alan E. Davis
2018-11-28 15:12             ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF-1L2QN60meFWr-xV-3cH9PeRFLKhJsHBq2mquFyq5Thjc=uQ@mail.gmail.com' \
    --to=lngndvs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).