Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
This discussion has been archived. No new comments can be posted.

Coding question

Comments Filter:
  • this site seems to be able to get you where you want to go - they say it's done with javascript, which means you should be able to look at their code. []

  • There's an Arduino library called Time Lord [] that will calculate sunrise and sunset times with a given lat/long. It's C++ but it looks like it wouldn't be too hard to convert just that calculation.
    • Thanks, Gents...

      stoolpigeon's recommendation works, but it was copyrighted (which I didn't say was an issue, but it is). Translating from C++ was option "B" on a number of fronts.

      But I did find a Perl package which works beautifully and is free: Astro-satpass [] which can give the position of the sun, moon, planets, and even satellites, based on time, latitude, longitude and elevation.

      • Hmmm... link does not work. Anyway, it's findable at, search for "Astro-Satpass"

        And it gives star positions, too.

"Oh my! An `inflammatory attitude' in alt.flame? Never heard of such a thing..." -- Allen Gwinn, allen@sulaco.Sigma.COM