Fink

Package sunwait-20041208-2

SystemBinary DistributionsCVS/rsync Source Distributions
stable RSS feed stableunstable RSS feed unstable
10.7/x86_64
 
 
 
10.6/x86_64
 
 
10.6/i386
 
 
10.5/i386
 
 
10.5/powerpc
 
20041208-2
 
Description:   Calculates sunrise, sunset, and twilights (20041208-2)
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. 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 one minute after midnight, waits until the start of civil twilight, then runs the command br b6 off (which turns off my carriage light).
Usage Hints:   
usage: sunwait [options] [sun|civ|naut|astr] [up|down] [+/-offset] [latitude] [longitude] latitude/longigude are expressed in floating-point degrees, with [NESW] appended example: sunwait sun up -0:15:10 38.794433N 77.069450W This example will wait until 15 minutes and 10 seconds before the sun rises in Alexandria, VA The offset is expressed as MM, or HH:MM, or HH:MM:SS, and indicates the additional amount of time to wait after (or before, if negative) the specified event. options: -p prints a summary of relevant times -z changes the printout to Universal Coordinated Time (UTC) -V prints the version number -v increases verbosity These options are useful mainly when used with the '-p' option -y YYYY sets the year to calculate for -m MM sets the month to calculate for -d DD sets the day-of-month to calculate for -h prints this help
Section:   sci
Maintainer:   Jason Park <jjpark74ATyahooDOTcom>
Website:   http://www.risacher.org/sunwait/
License:   GPL
Info-File:   dists/10.4/stable/main/finkinfo/sci/sunwait.info
CVS log, Last Changed: Sat, 18 Feb 2012 19:17:07 (UTC)

Section list - Flat package list - Search packages

(*) = Unsupported distribution.