Skip Menu |

This queue is for tickets about the Astro-Sunrise CPAN distribution.

Report information
The Basics
Id: 83394
Status: resolved
Priority: 0/
Queue: Astro-Sunrise

People
Owner: J2N-FORGET [...] orange.fr
Requestors: heinrichdederichs [...] googlemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.92



Subject: wrong time values at march, 20th 2013
Date: Sun, 17 Feb 2013 18:14:35 +0100
To: bug-Astro-Sunrise [...] rt.cpan.org
From: heinrich dederichs <heinrichdederichs [...] googlemail.com>
To whom it may concern, os: ubuntu 12.04, kernel 3.2.0-37-generic-pae module : Astro-Sunrise-0.91.tar.gz<http://search.cpan.org/CPAN/authors/id/R/RK/RKHILL/Astro-Sunrise-0.91.tar.gz> error: calculating the time values for 2013 the following result will be seen: 19.Mar 06:36 18:39 06:30 18:33 06:20 18:23 20.Mar 05:14 20:01 04:54 20:08 03:13 21:29 21.Mar 06:28 18:46 06:22 18:40 06:10 18:31 produced by the following code: ####################################################### #!/usr/bin/perl -w #Sonnenauf- und Untergang use strict; use Astro::Sunrise; #Eitorf my $lat = 50 + 46/60; my $lon = 7 + 27/60; #Tübingen my $lat1 =48 + 31/60; my $lon1 = 9 + 3/60; #Hojby my $lat2 =55 + 54/60; my $lon2 = 11 + 36/60; my $month = 1; my $day = 1; my @name = qw(Jan Feb Mar Apr Mai Jun Jul Aug Sep Oct Nov Dec);# Monatsname, für print my @max = (31,28,31,30,31,30,31,31,30,31,30,31); #Tage im Monat printf("%6u",1); print "\t Eitorf \t\t Tübingen \t\t Hojby\n"; foreach $month(1..12){ foreach my $k (1..$max[$month-1]){ ($Astro::Sunrise::sunrise, $Astro::Sunrise::sunset) = sunrise(2013,$month,$k,$lon,$lat,1,0); #Eitorf printf("%2u", $k); print "." ,$name[$month-1], "\t",$Astro::Sunrise::sunrise, "\t",$Astro::Sunrise::sunset,"\t"; ($Astro::Sunrise::sunrise, $Astro::Sunrise::sunset) = sunrise(2013,$month,$k,$lon1,$lat1,1,0);#Tübingen print "\t",$Astro::Sunrise::sunrise, "\t",$Astro::Sunrise::sunset,"\t"; ($Astro::Sunrise::sunrise, $Astro::Sunrise::sunset) = sunrise(2013,$month,$k,$lon2,$lat2,1,0);#Hojby print "\t",$Astro::Sunrise::sunrise, "\t",$Astro::Sunrise::sunset,"\n";} } ####################################################################################### Heinrich Dederichs
From: Volker Wegert <cpan [...] volker-wegert.deY
I can confirm this. For Berlin, the module refuses to determine a sunset at all: use strict; use Astro::Sunrise; my ($sunrise, $sunset) = sunrise(2013, 03, 20, 13.3833, 52.5166, +1, 1, 1); Result: Sun never sets!! at bug-demo.pl line 4.
Subject: author unreachable
From: Volker Wegert <cpan [...] volker-wegert.de>
Trying to contact the author, I got <rkhill@firstlight.net>: host mail2.firstlight.net[216.86.201.22] said: 554 5.7.1 <rkhill@firstlight.net>: Relay access denied (in reply to RCPT TO command) Maybe someone else could try this?
This problem has already been reported 4 years ago by J Rainer https://rt.cpan.org/Ticket/Display.html?id=47049 And it is the same problem that three persons (including me) have reported in DateTime::Event::Sunrise. See https://rt.cpan.org/Ticket/Display.html?id=34770 https://rt.cpan.org/Ticket/Display.html?id=55762 https://rt.cpan.org/Ticket/Display.html?id=75927 I have offered a patch (to DT::E::Sunrise, not Astro::Sunrise) five years ago and it is still not installed.
RT-Send-CC: cpan [...] volker-wegert.de, heinrichdederichs [...] googlemail.com
Le Lun 20 Mai 2013 04:27:23, http://vwegert.myopenid.com/ a écrit : Show quoted text
> Trying to contact the author, I got > > <rkhill@firstlight.net>: host mail2.firstlight.net[216.86.201.22] said: 554 > 5.7.1 <rkhill@firstlight.net>: Relay access denied (in reply to RCPT TO > command) > > Maybe someone else could try this?
I have sent a message to the author, copy to the DateTime mailing-list. Included in this message is my proposal for co-maintenance of this module and its twin DateTime::Event::Sunrise. I have no reply from the author. On the other hand, my proposal for co-maintenance has been forwarded to the perl.modules mailing-list http://www.nntp.perl.org/group/perl.datetime/2013/07/msg7933.html http://www.nntp.perl.org/group/perl.modules/2013/07/msg86617.html Here is a patch to fix the 20 March problem. To install it: Download Astro-Sunrise-0.91.tar.gz and astro-sunrise.patch into the same directory tar -zxvf Astro-Sunrise-0.91.tar.gz mv Astro-Sunrise-0.91 Astro-Sunrise patch -p0 < astro-sunrise.patch cd Astro-Sunrise perl Makefile.PL make make test sudo make install Or you can clone or download my Github repository: https://github.com/jforget/Astro-Sunrise and install with the usual "make" mantra.
Subject: astro-sunrise.patch

Message body is not shown because it is too large.