[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#696593: ITP: sun -- sun calculates the sun's rise/set times



Package: wnpp
Severity: wishlist
Owner: Steffen Vogel <post@steffenvogel.de>

  Package name    : sun
  Version         : 0.1
  Upstream Author : Steffen Vogel <post@steffenvogel.de>
  URL             : http://www.steffenvogel.de/2012/12/23/cron-jobs-fur-sonnenauf-untergang/
  License         : GPL
  Programming Lang: ANSI C
  Description     : sun calculates the sun's rise/set times, the solar noon and the daylight time duration

I wrote this tool to easily schedule the switching of my lighting for home automation.
Its a stand alone binary following the unix paradigm. Its designed to be used in conjunjtion with cron, at
date etc.

For me this tool is extremly useful as you might note with these examples:

Schedule a BIOS wakeup 10 minutes before the sunrise in Berlin:
  nvram-wakeup -s $(date -d "-10min $(sun rise -q Berlin)" +%s)

Shutdown the system 10 minutes after sunset:
  shutdown $(date -d +10min $(src/sun set --lat=50.55 --lon=-6.2) +%H:%M)

Enable my lighting at cilil twiglight:
  echo ~/bin/enable-lightning | at $(sun set -q Frankfurt -t civil)

The sourcecode is hostet at github:
https://github.com/stv0g/sun

Debian packaging is already completed. I'm currently providing the package in my own apt repository:
http://packages.0l.de/debian/pool/main/s/sun/

Its based on the solar calculations:
http://lexikon.astronomie.info/zeitgleichung/neu.html
from Arnold Barmettler <barmettler@astronomie.info>

Merry X-Mas

Steffen

PS: Please excuse my mistakes i've propably made. Thats my first ITP and Debian package overall...


Reply to: