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


Forgot your password?

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

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.

"Everyone's head is a cheap movie show." -- Jeff G. Bone