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

Package: wnpp; Maintainer for wnpp is wnpp@debian.org;

Reported by: Steffen Vogel <post@steffenvogel.de>

Date: Sun, 23 Dec 2012 15:06:01 UTC

Owned by: Steffen Vogel <post@steffenvogel.de>

Severity: wishlist

Done: Steffen Vogel <post@steffenvogel.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org, wnpp@debian.org:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 15:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Steffen Vogel <post@steffenvogel.de>:
New Bug report received and forwarded. Copy sent to debian-devel@lists.debian.org, wnpp@debian.org. (Sun, 23 Dec 2012 15:06:03 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Steffen Vogel <post@steffenvogel.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ITP: sun -- sun calculates the sun's rise/set times
Date: Sun, 23 Dec 2012 15:54:06 +0100
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...



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 15:27:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Sun, 23 Dec 2012 15:27:03 GMT) Full text and rfc822 format available.

Message #10 received at 696593@bugs.debian.org (full text, mbox):

From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
To: Steffen Vogel <post@steffenvogel.de>, 696593@bugs.debian.org
Cc: debian-devel@lists.debian.org
Subject: Re: Bug#696593: ITP: sun -- sun calculates the sun's rise/set times
Date: Sun, 23 Dec 2012 16:25:52 +0100
Hi Steffen,

On Sun, Dec 23, 2012 at 03:54:06PM +0100, Steffen Vogel wrote:
> PS: Please excuse my mistakes i've propably made. Thats my first ITP and Debian package overall...

Sounds like an interesting project. Have you already uploaded your
package to Debian mentors [1] to ask for sponsorship?

Cheers,

Adrian

> [1] http://mentors.debian.net/

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 16:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Tagliamonte <paultag@debian.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Sun, 23 Dec 2012 16:09:03 GMT) Full text and rfc822 format available.

Message #15 received at 696593@bugs.debian.org (full text, mbox):

From: Paul Tagliamonte <paultag@debian.org>
To: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Steffen Vogel <post@steffenvogel.de>, 696593@bugs.debian.org, debian-devel@lists.debian.org
Subject: Re: Bug#696593: ITP: sun -- sun calculates the sun's rise/set times
Date: Sun, 23 Dec 2012 11:13:24 -0500
[Message part 1 (text/plain, inline)]
On Sun, Dec 23, 2012 at 04:25:52PM +0100, John Paul Adrian Glaubitz wrote:
> Hi Steffen,
>
> On Sun, Dec 23, 2012 at 03:54:06PM +0100, Steffen Vogel wrote:
> > PS: Please excuse my mistakes i've propably made. Thats my first ITP and Debian package overall...
>
> Sounds like an interesting project. Have you already uploaded your

Seconded, to be sure. I could totally find this useful too.

> package to Debian mentors [1] to ask for sponsorship?
>
> Cheers,
>
> Adrian
>
> > [1] http://mentors.debian.net/
>
> --
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaubitz@debian.org
> `. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
>   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>
>
> --
> To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/20121223152552.GB27101@physik.fu-berlin.de
>

Thanks for your work!
 Paul

--
 .''`.  Paul Tagliamonte <paultag@debian.org>
: :'  : Proud Debian Developer
`. `'`  4096R / 8F04 9AD8 2C92 066C 7352  D28A 7B58 5B30 807C 2A87
 `-     http://people.debian.org/~paultag
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 16:12:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Chopin <chopin.simon@gmail.com>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Sun, 23 Dec 2012 16:12:03 GMT) Full text and rfc822 format available.

Message #20 received at 696593@bugs.debian.org (full text, mbox):

From: Simon Chopin <chopin.simon@gmail.com>
To: Steffen Vogel <post@steffenvogel.de>, 696593@bugs.debian.org
Subject: Re: Bug#696593: ITP: sun -- sun calculates the sun's rise/set times
Date: Sun, 23 Dec 2012 17:08:34 +0100
[Message part 1 (text/plain, inline)]
Hi,

Would it be possible to have a name a bit less generic and short ? It is
not a command-line tool that people are likely to use on a regular
basis, as far as I can tell.

I'm very bad at naming, so the only one I came up with was "suncycles"
but I'm sure there are better alternatives out there ;-)

Cheers,

Simon
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 18:51:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Sun, 23 Dec 2012 18:51:06 GMT) Full text and rfc822 format available.

Message #25 received at 696593@bugs.debian.org (full text, mbox):

From: Joey Hess <joeyh@debian.org>
To: Steffen Vogel <post@steffenvogel.de>, 696593@bugs.debian.org
Subject: Re: Bug#696593: ITP: sun -- sun calculates the sun's rise/set times
Date: Sun, 23 Dec 2012 14:48:32 -0400
[Message part 1 (text/plain, inline)]
FWIW, two existing way to do that that are already in Debian
are the packages remind and libdatetime-astro-sunrise-perl.
Use of the perl module is pretty obvious; use of remind is too
ugly to show here. :)

A standalone tool is nice, but there would be something to be said for
using an existing library to avoid reinventing this rather complex and
subtle wheel.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 19:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Steffen Vogel <post@steffenvogel.de>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. (Sun, 23 Dec 2012 19:36:03 GMT) Full text and rfc822 format available.

Message #30 received at 696593@bugs.debian.org (full text, mbox):

From: Steffen Vogel <post@steffenvogel.de>
To: 696593@bugs.debian.org
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, Paul Tagliamonte <paultag@debian.org>
Subject: Sponsor?
Date: Sun, 23 Dec 2012 20:24:47 +0100
[Message part 1 (text/plain, inline)]
Hey *,
thanks for your great feedback!

> Would it be possible to have a name a bit less generic and short ? It is
> not a command-line tool that people are likely to use on a regular
> basis, as far as I can tell.

Uhm, you are right :-/ I've choosen 'sun' because of the signature of the tool:
        
        usage: sun mode [options]
          mode is one of: rise, set, noon, daytime, nighttime

The name 'sun' allows you to create easy readable expressions like:

        sun rise --query Sydney

Whats about 'solar' or 'suntime'? Any other suggestions?

> Sounds like an interesting project. Have you already uploaded your
> package to Debian mentors [1] to ask for sponsorship?

I've created a RFS [1]

> FWIW, two existing way to do that that are already in Debian
> are the packages remind and libdatetime-astro-sunrise-perl.

Yes, that's correct. I already knew that before I started working on 'sun'.
I decided to choose ANSI C as language to be fast an portable.
I planning to use 'sun' on a very small embedded system.

And second, the algorithm I used for this package keeps place for enhancements to
calculate the suns position (declination, rightascension).

I'm not really a fan of these perl-modules. That's not my understanding
of small, fast & portable tools as it is being contemplated in the UNIX paradigm.

There's already an updated upstream version. I added a simple caching
for geonames.org lookups. So I reuploaded the package to debian-mentors
[2].

Regards,
  Steffen Vogel

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=696600
[2] http://mentors.debian.net/package/sun
-- 
Steffen Vogel
Robensstra├če 69
52070 Aachen

Mail: post@steffenvogel.de
Mobil: +49 176 34911387
Web: http://www.steffenvogel.de
Jabber: stv0g@jabber.ccc.de
ICQ: 236033
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 19:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Sun, 23 Dec 2012 19:51:03 GMT) Full text and rfc822 format available.

Message #35 received at 696593@bugs.debian.org (full text, mbox):

From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
To: Steffen Vogel <post@steffenvogel.de>
Cc: 696593@bugs.debian.org, Paul Tagliamonte <paultag@debian.org>
Subject: Re: Sponsor?
Date: Sun, 23 Dec 2012 20:47:35 +0100
On Sun, Dec 23, 2012 at 08:24:47PM +0100, Steffen Vogel wrote:
> There's already an updated upstream version. I added a simple caching
> for geonames.org lookups. So I reuploaded the package to debian-mentors
> [2].

I'd be happy to sponsor it if you have the patience to wait 2-3 weeks
until I am done sponsoring 'kismet' ;).

Cheers,

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 19:51:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Tagliamonte <paultag@debian.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Sun, 23 Dec 2012 19:51:05 GMT) Full text and rfc822 format available.

Message #40 received at 696593@bugs.debian.org (full text, mbox):

From: Paul Tagliamonte <paultag@debian.org>
To: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Steffen Vogel <post@steffenvogel.de>, 696593@bugs.debian.org
Subject: Re: Sponsor?
Date: Sun, 23 Dec 2012 14:55:11 -0500
[Message part 1 (text/plain, inline)]
On Sun, Dec 23, 2012 at 08:47:35PM +0100, John Paul Adrian Glaubitz wrote:
> On Sun, Dec 23, 2012 at 08:24:47PM +0100, Steffen Vogel wrote:
> > There's already an updated upstream version. I added a simple caching
> > for geonames.org lookups. So I reuploaded the package to debian-mentors
> > [2].
> 
> I'd be happy to sponsor it if you have the patience to wait 2-3 weeks
> until I am done sponsoring 'kismet' ;).
> 
> Cheers,
> 
> Adrian
> 

I will, of course, defer to my dear colleague Adrian if he finds the
time, or wishes to be the one to upload the package, but I will also be
happy to sponsor your work, whenever it's in a shape you see fit for review.

Cheers,
  Paul

-- 
 .''`.  Paul Tagliamonte <paultag@debian.org>
: :'  : Proud Debian Developer
`. `'`  4096R / 8F04 9AD8 2C92 066C 7352  D28A 7B58 5B30 807C 2A87
 `-     http://people.debian.org/~paultag
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 21:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joerg Jaspert <joerg@debian.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Sun, 23 Dec 2012 21:45:03 GMT) Full text and rfc822 format available.

Message #45 received at submit@bugs.debian.org (full text, mbox):

From: Joerg Jaspert <joerg@debian.org>
To: Steffen Vogel <post@steffenvogel.de>
Cc: Debian Bug Tracking System <submit@bugs.debian.org>, 696593@bugs.debian.org
Subject: Re: Bug#696593: ITP: sun -- sun calculates the sun's rise/set times
Date: Sun, 23 Dec 2012 22:40:38 +0100
On 13069 March 1977, Steffen Vogel wrote:

>   Package name    : sun

Interesting tool, but that package name won't make it into the archive,
too generic.

-- 
bye, Joerg
<mhy> Ganneff airlines: departing from a window near you



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Sun, 23 Dec 2012 21:45:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joerg Jaspert <joerg@debian.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Sun, 23 Dec 2012 21:45:07 GMT) Full text and rfc822 format available.

Added blocking bug(s) of 696593: 696600 Request was from Bart Martens <bartm@quantz.debian.org> to control@bugs.debian.org. (Mon, 24 Dec 2012 04:24:03 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Thu, 03 Jan 2013 10:33:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Helmut Grohne <helmut@subdivi.de>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Thu, 03 Jan 2013 10:33:05 GMT) Full text and rfc822 format available.

Message #57 received at 696593@bugs.debian.org (full text, mbox):

From: Helmut Grohne <helmut@subdivi.de>
To: Steffen Vogel <post@steffenvogel.de>, 696593@bugs.debian.org
Cc: debian-devel@lists.debian.org
Subject: Re: Bug#696593: ITP: sun -- sun calculates the sun's rise/set times
Date: Thu, 3 Jan 2013 11:28:52 +0100
On Sun, Dec 23, 2012 at 03:54:06PM +0100, Steffen Vogel wrote:
>   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

This package apparently shares functionality with the redshift package
already in Debian. Neither of the packages expose the common
functionality (computing sun rise) as a library for others to use. Would
it be possible for you to provide a shared library for others to rely
on? That could avoid further duplication.

Are there more tools providing this functionality?

Helmut



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>:
Bug#696593; Package wnpp. (Thu, 03 Jan 2013 10:45:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guus Sliepen <guus@debian.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Steffen Vogel <post@steffenvogel.de>. (Thu, 03 Jan 2013 10:45:11 GMT) Full text and rfc822 format available.

Message #62 received at 696593@bugs.debian.org (full text, mbox):

From: Guus Sliepen <guus@debian.org>
To: debian-devel@lists.debian.org
Cc: Steffen Vogel <post@steffenvogel.de>, 696593@bugs.debian.org
Subject: Re: Bug#696593: ITP: sun -- sun calculates the sun's rise/set times
Date: Thu, 3 Jan 2013 11:34:39 +0100
[Message part 1 (text/plain, inline)]
On Thu, Jan 03, 2013 at 11:28:52AM +0100, Helmut Grohne wrote:

> >   Package name    : sun
> >   Description     : sun calculates the sun's rise/set times, the solar noon and the daylight time duration
> 
> This package apparently shares functionality with the redshift package
> already in Debian. Neither of the packages expose the common
> functionality (computing sun rise) as a library for others to use. Would
> it be possible for you to provide a shared library for others to rely
> on? That could avoid further duplication.
> 
> Are there more tools providing this functionality?

Libnova is a shared library that allows you to calculate rise and set times for
any astronomical object, including the Sun.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <guus@debian.org>
[signature.asc (application/pgp-signature, inline)]

Reply sent to Steffen Vogel <post@steffenvogel.de>:
You have taken responsibility. (Sun, 05 May 2013 14:51:10 GMT) Full text and rfc822 format available.

Notification sent to Steffen Vogel <post@steffenvogel.de>:
Bug acknowledged by developer. (Sun, 05 May 2013 14:51:10 GMT) Full text and rfc822 format available.

Message #67 received at 696593-done@bugs.debian.org (full text, mbox):

From: Steffen Vogel <post@steffenvogel.de>
To: 696593-done@bugs.debian.org
Subject: sun is superseeded by calcelestial
Date: Sun, 05 May 2013 16:40:45 +0200
[Message part 1 (text/plain, inline)]
Thanks a lot for your suggestions.

I've rewritten my tool to use libnova for the astronomical calculations.
It's far more accurate now. As libnova also support calculations for
other planets, I decided to rename it to calcelestial.

Hopefully this rules out any concerns regarding the packagename.

There's already an new ITP for calcelestial [1].
I'm closing this one now.

regards

   Steffen

PS: I'm still looking for a sponsor ;-)

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=696593

-- 
Steffen Vogel
Robensstra├če 69
52070 Aachen

Mail: post@steffenvogel.de
Mobil: +49 176 34911387
Web: http://www.steffenvogel.de
Jabber: stv0g@jabber.ccc.de
ICQ: 236033
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 03 Jun 2013 09:26:07 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 21:10:03 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.