Sunwait 20041208

Sunwait is a small C program for calculating sunrise and sunset, as well as civil, nautical, and astronomical twilights.
Sunwait is a small C program for calculating sunrise and sunset, as well as civil, nautical, and astronomical twilights. It has features that make it useful for home automation tasks.

While developed under Linux, it should work on any system with a C compiler and the C standard library.

With some minor patches provided by George Gugulea, it will compile on Win32, which results in sunwait.exe, but I haven't tested this extensively.

The feature that makes this program slightly unique is that it can be set to wait specific event (such as 5 minutes before sunrise), then exit.

This makes it useful for 'cron' jobs or 'scheduled tasks' when you want something to happen relative to sunrise, sunset, or some other astronomical event.

For example, consider this line from my crontab:
01 00 * * * sunwait civ start 38.794433N, 77.069450W ; br b6 off

This line executes at at one minute after midnight, waits until the start of civil twilight, then runs the command br b6 off (which turns off my carriage light).

last updated on:
October 4th, 2005, 5:05 GMT
price:
FREE!
developed by:
Dan Risacher
license type:
GPL (GNU General Public License) 
category:
ROOT \ Utilities

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

1 Screenshot
Sunwait

Add your review!

SUBMIT