Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×
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.

A large number of installed systems work by fiat. That is, they work by being declared to work. -- Anatol Holt