Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Problem with sunrise time
Moderator: saratogaWX
-
SergiosK
- Posts: 24
- Joined: Mon 15 Apr 2013 2:17 pm
- Weather Station: WH8681-Solar
- Operating System: Windows XP SP2
- Location: Greece
Problem with sunrise time
Hello, as today my sunrise is 15:49 and not 06:15. At cumulus template is correct, at saratoga is wrong (15:49).
At cutags.php is also correct.
I have checked the settings.php for the timezone and is set correct, as Europe/Athens.
The long and lat is correct.
At wxastronomy is wrong 15:49.
The other sunset moonrise moonset are correct.
What is it going wrong?
Thank you.
At cutags.php is also correct.
I have checked the settings.php for the timezone and is set correct, as Europe/Athens.
The long and lat is correct.
At wxastronomy is wrong 15:49.
The other sunset moonrise moonset are correct.
What is it going wrong?
Thank you.
- saratogaWX
- Posts: 1238
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Problem with sunrise time
What is the URL to your weather website that is showing the problem?
-
SergiosK
- Posts: 24
- Joined: Mon 15 Apr 2013 2:17 pm
- Weather Station: WH8681-Solar
- Operating System: Windows XP SP2
- Location: Greece
Re: Problem with sunrise time
Im running at local network. My os is win xp,running apache and php mod.i run a sunrise php script and returns me 06:09.
- saratogaWX
- Posts: 1238
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Problem with sunrise time
Ahh, running locally only makes it much harder to debug what is wrong.
The Cumulus template plugin uses get-USNO-sunmoon.php to get the data from the US Naval Observatory for the sunrise/sunset/moonrise/moonset based on your latitude/longitude set in Settings.php.
First, make sure the $SITE['latitude'] and $SITE['longitude'] numbers are correct (no + sign, use period as decimal point, not a comma)
Then run your wxastronomy.php?debug=y and do a view-source of the page with your browser, and post the output as a .txt file here and I can take a look. It may be that your ISP (or the USNO is blocking your IP address from access to aa.usno.navy.mil website for the sun/moon data), but I can't tell without seeing the view-source of the page.
The Cumulus template plugin uses get-USNO-sunmoon.php to get the data from the US Naval Observatory for the sunrise/sunset/moonrise/moonset based on your latitude/longitude set in Settings.php.
First, make sure the $SITE['latitude'] and $SITE['longitude'] numbers are correct (no + sign, use period as decimal point, not a comma)
Then run your wxastronomy.php?debug=y and do a view-source of the page with your browser, and post the output as a .txt file here and I can take a look. It may be that your ISP (or the USNO is blocking your IP address from access to aa.usno.navy.mil website for the sun/moon data), but I can't tell without seeing the view-source of the page.
-
SergiosK
- Posts: 24
- Joined: Mon 15 Apr 2013 2:17 pm
- Weather Station: WH8681-Solar
- Operating System: Windows XP SP2
- Location: Greece
Re: Problem with sunrise time
Now here is midnight, its 00:40. I dont change anything as my lot lang in settings.php are correct.And now i see that is all correct.
Almanac Moon
Sunrise: 06:11
Sunset: 21:00
Moonset: 04:08
Moonrise: 18:51
Waxing Gibbous
Waxing Gibbous, Moon at 11 days in cycle.
And the wxastronomy is correct.
I dont know what is change.
I will see it again and again for the next days.
It seems crazy

Almanac Moon
Sunrise: 06:11
Sunset: 21:00
Moonset: 04:08
Moonrise: 18:51
Waxing Gibbous
Waxing Gibbous, Moon at 11 days in cycle.
And the wxastronomy is correct.
I dont know what is change.
I will see it again and again for the next days.
It seems crazy
- saratogaWX
- Posts: 1238
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Problem with sunrise time
It is likely that the issue was caused by your system not being able to successfully access aa.usno.navy.mil website.
The use of wxastronomy.php?debug=y&cache=refresh and a view-source on the page should show something like
If you see a <!-- Network Error ... listing, then the fetch was unsuccessful and the data is not returned from the aa.usno.navy.mil website.
The use of wxastronomy.php?debug=y&cache=refresh and a view-source on the page should show something like
near the middle of the page in the view-source.<!-- get-USNO-sunmoon.php - Version 1.02 - 03-Dec-2011 -->
<!-- loading ./cache/USNO-moondata.txt from http://aa.usno.navy.mil/cgi-bin/aa_pap.pl -->
<!-- POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil Port: 80 IP=199.211.133.93-->
<!-- Sending:
POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil
Connection: Close
Accept: text/plain,text/html
Accept-Encoding: gzip;q=0,compress;q=0
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Referer: http://aa.usno.navy.mil/data/docs/RS_OneDay.php
Content-Length: 128
Content-Type: application/x-www-form-urlencoded
FFX=2&ID=AA&xxy=2013&xxm=6&xxd=20&place=Somewhere%2C+Some+Country&xx0=-1&xx1=122&xx2=01&yy0=1&yy1=37&yy2=16&zz1=7&zz0=-1&ZZZ=END
-->
<!-- HTTP stats: dns=0.036 conn=0.056 put=0.000 get(64 blocks)=0.095 close=0.000 total=0.187 secs -->
<!-- fetch function elapsed= 0 secs. -->
<!-- loading finished. -->
<!-- find pre slice
Array
(
[0] =>
Begin civil twilight 05:17
Sunrise 05:48
Sun transit 13:10
Sunset 20:32
End civil twilight 21:03
<strong>MOON</strong>
Moonrise 16:33 on preceding day
Moonset 03:15
Moonrise 17:42
Moon transit 22:55
Moonset 04:06 on following day
</pre>
[1] =>
Begin civil twilight 05:17
Sunrise 05:48
Sun transit 13:10
Sunset 20:32
End civil twilight 21:03
<strong>MOON</strong>
Moonrise 16:33 on preceding day
Moonset 03:15
Moonrise 17:42
Moon transit 22:55
Moonset 04:06 on following day
)
-->
<!-- find main parts
Array
(
[0] => Array
(
[0] =>
Begin civil twilight 05:17
[1] =>
Sunrise 05:48
[2] =>
Sun transit 13:10
[3] =>
Sunset 20:32
[4] =>
End civil twilight 21:03
[5] =>
Moonrise 16:33 on preceding day
[6] =>
Moonset 03:15
[7] =>
Moonrise 17:42
[8] =>
Moon transit 22:55
[9] =>
Moonset 04:06 on following day
)
[1] => Array
(
[0] => Begin civil twilight
[1] => Sunrise
[2] => Sun transit
[3] => Sunset
[4] => End civil twilight
[5] => Moonrise
[6] => Moonset
[7] => Moonrise
[8] => Moon transit
[9] => Moonset
)
[2] => Array
(
[0] => 05:17
[1] => 05:48
[2] => 13:10
[3] => 20:32
[4] => 21:03
[5] => 16:33
[6] => 03:15
[7] => 17:42
[8] => 22:55
[9] => 04:06
)
[3] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] => on preceding day
[6] =>
[7] =>
[8] =>
[9] => on following day
)
)
-->
<!-- find Phase/illum.
Array
(
[0] => Phase of the Moon on 20 June: waxing gibbous
with 89% of the Moon
[1] => waxing gibbous
[2] => 89
)
-->
<!-- USNOdata
Array
(
[beginciviltwilight] => 05:17
[beginciviltwilightdate] => 06/20/2013
[sunrise] => 05:48
[sunrisedate] => 06/20/2013
[suntransit] => 13:10
[suntransitdate] => 06/20/2013
[sunset] => 20:32
[sunsetdate] => 06/20/2013
[endciviltwilight] => 21:03
[endciviltwilightdate] => 06/20/2013
[moonriseprior] => 16:33
[moonrisepriordate] => 06/19/2013
[moonset] => 03:15
[moonsetdate] => 06/20/2013
[moonrise] => 17:42
[moonrisedate] => 06/20/2013
[moontransit] => 22:55
[moontransitdate] => 06/20/2013
[moonsetnext] => 04:06
[moonsetnextdate] => 06/21/2013
[moonphase] => Waxing Gibbous
[illumination] => 89%
[hoursofpossibledaylight] => 14:44
)
-->
If you see a <!-- Network Error ... listing, then the fetch was unsuccessful and the data is not returned from the aa.usno.navy.mil website.
-
SergiosK
- Posts: 24
- Joined: Mon 15 Apr 2013 2:17 pm
- Weather Station: WH8681-Solar
- Operating System: Windows XP SP2
- Location: Greece
Re: Problem with sunrise time
if i do wxastronomy.php?debug=y&cache=refresh
i get :
Warning: Cannot modify header information - headers already sent by (output started at C:\server\apache\htdocs\watson\common.php:347) in C:\server\apache\htdocs\watson\include-style-switcher.php on line 350
Warning: Cannot modify header information - headers already sent by (output started at C:\server\apache\htdocs\watson\common.php:347) in C:\server\apache\htdocs\watson\include-style-switcher.php on line 350
Warning: Cannot modify header information - headers already sent by (output started at C:\server\apache\htdocs\watson\common.php:347) in C:\server\apache\htdocs\watson\include-style-switcher.php on line 350
Warning: Cannot modify header information - headers already sent by (output started at C:\server\apache\htdocs\watson\common.php:347) in C:\server\apache\htdocs\watson\top.php on line 43
and the page running.
At line 350 is :
setcookie("$name",$val,$expire,$path);
i get :
Warning: Cannot modify header information - headers already sent by (output started at C:\server\apache\htdocs\watson\common.php:347) in C:\server\apache\htdocs\watson\include-style-switcher.php on line 350
Warning: Cannot modify header information - headers already sent by (output started at C:\server\apache\htdocs\watson\common.php:347) in C:\server\apache\htdocs\watson\include-style-switcher.php on line 350
Warning: Cannot modify header information - headers already sent by (output started at C:\server\apache\htdocs\watson\common.php:347) in C:\server\apache\htdocs\watson\include-style-switcher.php on line 350
Warning: Cannot modify header information - headers already sent by (output started at C:\server\apache\htdocs\watson\common.php:347) in C:\server\apache\htdocs\watson\top.php on line 43
and the page running.
At line 350 is :
setcookie("$name",$val,$expire,$path);
- saratogaWX
- Posts: 1238
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Problem with sunrise time
Those messages are all normal and caused by the debug=y on the URL
The view-source of the page is what is important--that is where the HTML comments with debugging output can be seen.
The view-source of the page is what is important--that is where the HTML comments with debugging output can be seen.
-
SergiosK
- Posts: 24
- Joined: Mon 15 Apr 2013 2:17 pm
- Weather Station: WH8681-Solar
- Operating System: Windows XP SP2
- Location: Greece
Re: Problem with sunrise time
i can see
<!-- get-USNO-sunmoon.php - Version 1.02 - 03-Dec-2011 -->
<!-- loading ./cache/USNO-moondata.txt from http://aa.usno.navy.mil/cgi-bin/aa_pap.pl -->
<!-- POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil Port: 80 IP=199.211.133.93-->
<!-- Sending:
POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil
Connection: Close
Accept: text/plain,text/html
Accept-Encoding: gzip;q=0,compress;q=0
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Referer: http://aa.usno.navy.mil/data/docs/RS_OneDay.php
Content-Length: 123
Content-Type: application/x-www-form-urlencoded
FFX=2&ID=AA&xxy=2013&xxm=6&xxd=21&place=Greece%2C+Dytiki+Achaia&xx0=1&xx1=21&xx2=30&yy0=1&yy1=38&yy2=10&zz1=3&zz0=1&ZZZ=END
-->
<!-- HTTP stats: dns=0.160 conn=0.170 put=0.000 get(65 blocks)=0.190 close=0.000 total=0.521 secs -->
<!-- fetch function elapsed= 1 secs. -->
<!-- loading finished. -->
<!-- find pre slice
Array
(
[0] =>
Begin civil twilight 05:40
Sunrise 06:11
Sun transit 13:36
Sunset 21:00
End civil twilight 21:32
<strong>MOON</strong>
Moonrise 17:42 on preceding day
Moonset 04:08
Moonrise 18:51
Moon transit 23:58
Moonset 05:04 on following day
</pre>
[1] =>
Begin civil twilight 05:40
Sunrise 06:11
Sun transit 13:36
Sunset 21:00
End civil twilight 21:32
<strong>MOON</strong>
Moonrise 17:42 on preceding day
Moonset 04:08
Moonrise 18:51
Moon transit 23:58
Moonset 05:04 on following day
)
-->
<!-- find main parts
Array
(
[0] => Array
(
[0] =>
Begin civil twilight 05:40
[1] =>
Sunrise 06:11
[2] =>
Sun transit 13:36
[3] =>
Sunset 21:00
[4] =>
End civil twilight 21:32
[5] =>
Moonrise 17:42 on preceding day
[6] =>
Moonset 04:08
[7] =>
Moonrise 18:51
[8] =>
Moon transit 23:58
[9] =>
Moonset 05:04 on following day
)
[1] => Array
(
[0] => Begin civil twilight
[1] => Sunrise
[2] => Sun transit
[3] => Sunset
[4] => End civil twilight
[5] => Moonrise
[6] => Moonset
[7] => Moonrise
[8] => Moon transit
[9] => Moonset
)
[2] => Array
(
[0] => 05:40
[1] => 06:11
[2] => 13:36
[3] => 21:00
[4] => 21:32
[5] => 17:42
[6] => 04:08
[7] => 18:51
[8] => 23:58
[9] => 05:04
)
[3] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] => on preceding day
[6] =>
[7] =>
[8] =>
[9] => on following day
)
)
-->
<!-- find Phase/illum.
Array
(
[0] => Phase of the Moon on 21 June: waxing gibbous
with 93% of the Moon
[1] => waxing gibbous
[2] => 93
)
-->
<!-- USNOdata
Array
(
[beginciviltwilight] => 05:40
[beginciviltwilightdate] => 21/06/2013
[sunrise] => 06:11
[sunrisedate] => 21/06/2013
[suntransit] => 13:36
[suntransitdate] => 21/06/2013
[sunset] => 21:00
[sunsetdate] => 21/06/2013
[endciviltwilight] => 21:32
[endciviltwilightdate] => 21/06/2013
[moonriseprior] => 17:42
[moonrisepriordate] => 20/06/2013
[moonset] => 04:08
[moonsetdate] => 21/06/2013
[moonrise] => 18:51
[moonrisedate] => 21/06/2013
[moontransit] => 23:58
[moontransitdate] => 21/06/2013
[moonsetnext] => 05:04
[moonsetnextdate] => 22/06/2013
[moonphase] => Waxing Gibbous
[illumination] => 93%
[hoursofpossibledaylight] => 14:49
)
Many thanks
I dont know, my "meteo server pc" probably or the aa.usno.navy.mil connections was blocked. Of course my "meteo pc" is have inside and outside connections but i dont have a domain name to see it on internet.
Thanks again, if i notice something i will report it.
<!-- get-USNO-sunmoon.php - Version 1.02 - 03-Dec-2011 -->
<!-- loading ./cache/USNO-moondata.txt from http://aa.usno.navy.mil/cgi-bin/aa_pap.pl -->
<!-- POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil Port: 80 IP=199.211.133.93-->
<!-- Sending:
POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil
Connection: Close
Accept: text/plain,text/html
Accept-Encoding: gzip;q=0,compress;q=0
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Referer: http://aa.usno.navy.mil/data/docs/RS_OneDay.php
Content-Length: 123
Content-Type: application/x-www-form-urlencoded
FFX=2&ID=AA&xxy=2013&xxm=6&xxd=21&place=Greece%2C+Dytiki+Achaia&xx0=1&xx1=21&xx2=30&yy0=1&yy1=38&yy2=10&zz1=3&zz0=1&ZZZ=END
-->
<!-- HTTP stats: dns=0.160 conn=0.170 put=0.000 get(65 blocks)=0.190 close=0.000 total=0.521 secs -->
<!-- fetch function elapsed= 1 secs. -->
<!-- loading finished. -->
<!-- find pre slice
Array
(
[0] =>
Begin civil twilight 05:40
Sunrise 06:11
Sun transit 13:36
Sunset 21:00
End civil twilight 21:32
<strong>MOON</strong>
Moonrise 17:42 on preceding day
Moonset 04:08
Moonrise 18:51
Moon transit 23:58
Moonset 05:04 on following day
</pre>
[1] =>
Begin civil twilight 05:40
Sunrise 06:11
Sun transit 13:36
Sunset 21:00
End civil twilight 21:32
<strong>MOON</strong>
Moonrise 17:42 on preceding day
Moonset 04:08
Moonrise 18:51
Moon transit 23:58
Moonset 05:04 on following day
)
-->
<!-- find main parts
Array
(
[0] => Array
(
[0] =>
Begin civil twilight 05:40
[1] =>
Sunrise 06:11
[2] =>
Sun transit 13:36
[3] =>
Sunset 21:00
[4] =>
End civil twilight 21:32
[5] =>
Moonrise 17:42 on preceding day
[6] =>
Moonset 04:08
[7] =>
Moonrise 18:51
[8] =>
Moon transit 23:58
[9] =>
Moonset 05:04 on following day
)
[1] => Array
(
[0] => Begin civil twilight
[1] => Sunrise
[2] => Sun transit
[3] => Sunset
[4] => End civil twilight
[5] => Moonrise
[6] => Moonset
[7] => Moonrise
[8] => Moon transit
[9] => Moonset
)
[2] => Array
(
[0] => 05:40
[1] => 06:11
[2] => 13:36
[3] => 21:00
[4] => 21:32
[5] => 17:42
[6] => 04:08
[7] => 18:51
[8] => 23:58
[9] => 05:04
)
[3] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] => on preceding day
[6] =>
[7] =>
[8] =>
[9] => on following day
)
)
-->
<!-- find Phase/illum.
Array
(
[0] => Phase of the Moon on 21 June: waxing gibbous
with 93% of the Moon
[1] => waxing gibbous
[2] => 93
)
-->
<!-- USNOdata
Array
(
[beginciviltwilight] => 05:40
[beginciviltwilightdate] => 21/06/2013
[sunrise] => 06:11
[sunrisedate] => 21/06/2013
[suntransit] => 13:36
[suntransitdate] => 21/06/2013
[sunset] => 21:00
[sunsetdate] => 21/06/2013
[endciviltwilight] => 21:32
[endciviltwilightdate] => 21/06/2013
[moonriseprior] => 17:42
[moonrisepriordate] => 20/06/2013
[moonset] => 04:08
[moonsetdate] => 21/06/2013
[moonrise] => 18:51
[moonrisedate] => 21/06/2013
[moontransit] => 23:58
[moontransitdate] => 21/06/2013
[moonsetnext] => 05:04
[moonsetnextdate] => 22/06/2013
[moonphase] => Waxing Gibbous
[illumination] => 93%
[hoursofpossibledaylight] => 14:49
)
Many thanks
I dont know, my "meteo server pc" probably or the aa.usno.navy.mil connections was blocked. Of course my "meteo pc" is have inside and outside connections but i dont have a domain name to see it on internet.
Thanks again, if i notice something i will report it.
- saratogaWX
- Posts: 1238
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Problem with sunrise time
The lines
Best regards,
Ken
shows it was successful.. if a <!-- Network error ... --> line appears just before that, then it shows the underlying cause of the failure.<!-- HTTP stats: dns=0.160 conn=0.170 put=0.000 get(65 blocks)=0.190 close=0.000 total=0.521 secs -->
<!-- fetch function elapsed= 1 secs. -->
Best regards,
Ken