malpass@LL-VLSI.ARPA (Don Malpass) (02/11/88)
Not the song title; the times of day. I think I once saw a quickie program out there to print same for a given lati/longitude, but nothing in the simtel file list suggests itself. There are some ham-radio programs and some star-chart programs which crank these out, but they do far more than that and more than I want. Can anybody point me to a short simple program I can fetch? Or even a reasonable source for one of the larger programs which I can cut down and recompile. tnx, don [malpass@LL-vlsi.arpa]
ADMINA07@clvm.clarkson.EDU (Laurel Goolden) (02/13/88)
Don, A friend of mine wrote the sunrise-sunset program to use on his PC so he could control all the electrical devices in his house. He set it up so that the program automatically changed the times when the outside lights went on or off, when the coffe pot went on, sprinkler system, etc. I have a copy of the program; there is also a copy on the Source if you have an account there. Iwould imagine it's floating around on most BBSs as it was written quite some time ago. It's done in compiled BASIC, I think. Can check, may even have the source code. -laurel
malpass@LL-VLSI.ARPA (Don Malpass) (02/13/88)
Laurel, My purpose is more mundane (simple curiosity) rather than a desire to control my house, but it sounds like probably the right thing. I don't have a Source account, and I'm not a BB junkie, so IF it isn't much trouble, I wouldn't mind having a copy of the source code from you. The star-chart thing I was going to attack is probably in BASIC, and this is apt to be shorter than that is. If it's not easy to find, just say so and I'll start on the star-chart program. Tnx. don
MSchwartz@DOCKMASTER.ARPA (02/14/88)
Don et al: All good sunrise/sunset programs I've seen are based on algorithms published by the Naval Observatory in a book called "Almanac for Computers". Dan Goldish (at Raytheon) did one up in FORTRAN, and still gets requests for printouts from a number of places each year. His implementation provides both astronomical and religious data. Some years ago, I converted his basic program to C, and placed it in the public domain (via USENET, so it certainly got lost....). With the exception on 2 parameters (which I understand have been updated in about 1985) the program should be suitable. Accuracy is about 1 minute at 40N; it is supposedly more accurate at the equator, and much less at the poles. Please send net mail requests (for source code). If I get more than a few requests, I will find out if SIMTEL20 wishes to make it publicly available. I can only send EXEs through USNail, if required, since MULTICS does not seem to talk nicely to TOPS20, UNIX, etc. If this is what you want, I'll be happy to help. mike schwartz
malpass@LL-VLSI.ARPA (Don Malpass) (02/15/88)
Mike, Sure - send me the source. I'll start comparing them sometime next week and let hz100 know. Maybe there's more interest in this sort of thing than I thought. Thanks for the info. don [malpass@LL-vlsi.arpa]
MSchwartz@DOCKMASTER.ARPA (02/23/88)
Due to a large number of requests, I will be posting sunrise/sunset C source and MS-DOS executable to SIMTEL-20 (KPetersen) in the near future. Those of you sending mail requesting source will have it EMAIL'd to you shortly. In dusting off the old disk, I am making a few changes to make the source ANSI compatible. (It was originally written for the CI-86 compiler & the Eunice Berkeley compiler). Also, could the distribution list be brought up to date soon? I have posted 3 messages to the forum in the past year, and in each case I have received 6-8 erroneous forwarding returned messages. Thanks, mike schwartz (MSCHWARTZ at DOCKMASTER)