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

Sun Moon plot

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Sun Moon plot

Post by gluepack »

Anything to brighten up the website...

I looked at http://www.horca.net/graphs/sunplot.php but quickly discovered the times were all off.

Then, by changing the longitude and utc time to negative, the sun times seem ok but the moon times don't appear to be (compared to whatever it is that the ajax dashboard uses , which is what I assumed Cumulus used but I see the moon times are slightly different there).

Anyway, I don't want to use it when the times vary so radically from the dashboard so, is there another similar "product" (i.e. aesthetically pleasing graphical image) available anywhere that gives correct results or, anyone know which is correct?

For example, the above php (or http://www.horca.net/graphs/sunplotjava.html) show
sunrise 5:37 sunset 20:38 moonrise 01:02 moonset 11:23 whereas the dashboard is showing..
sunrise 5:34 sunset 20:32 moonrise 00:26 moonset 11:26 and Cumulus is showing...
sunrise 5:34 sunset 20:32 moonrise 00:30 moonset 11:25

I don't mind the few minutes difference (well, I do, but I guess I can tolerate it) but 1/2 hour difference in moonrise isn't really acceptable.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Sun Moon plot

Post by steve »

I'd be quite prepared to believe that the Cumulus moonrise time is actually for yesterday or tomorrow, hence the large discrepancy. A difference of about that size would correspond to a day's difference. The components I use to do the calculations are problematic and not at all easy to use, and there are other issues involving high latitudes, as I discovered yesterday.

Having said that, if the dashboard isn't getting its figures from Cumulus, as it would appear it isn't, then perhaps 'we' are correct, and it's the other one that's a day out...

Edit: I tried this site: http://www.sunrisesunsetmap.com/ and the times for my location agree with Cumulus (within a few minutes).
Steve
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Sun Moon plot

Post by gluepack »

Thanks.

Well, I tried http://www.moonsigncalendar.net/calcula ... &Jahr=2013 and it gave the following (catering for EEST)....

sunrise: 05:34 sunset: 20:42 moonrise: 00:27 moonset: 11:26

and the link you gave is...
sunrise: 05:34 sunset: 20:42 moonrise: 00:25 moonset: 11:27

which leans more towards the ajax dashboard than Cumulus but still pretty close and, unfortunately, emphasises that the sunplot.php is incorrect, i.e. out by 1/2 hour on moonrise.

Well, I'll keep looking to see if there is another aesthetically pleasing graph/set of data out there.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sun Moon plot

Post by mcrossley »

Any calculations involving the Moon get complex quickly if you want any degree of accuracy. I would treat the USNO as one of the definitive sources on the web if you want to compare figures. As Steve has found some of the popular approximations are only valid between moderate latitudes, where they give figures within a few minutes, but break down at higher latitudes.

I learnt how hard it is to implement these routines when I wrote my own in JavaScript using Meeus 's book, my routines are accurate to better than a minute.

Edit: typed and corrected on my tablet :bash:
Last edited by mcrossley on Tue 09 Jul 2013 6:32 am, edited 1 time in total.
olsongt
Posts: 2
Joined: Thu 27 Jun 2013 5:46 pm
Weather Station: none
Operating System: Windows 8
Location: Albuquerque, NM

Re: Sun Moon plot

Post by olsongt »

Redid the calculation engines and reformatted the main page for the sun graph at:

gartholson.net/horca/sun

see if the times work better now.
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Sun Moon plot

Post by gluepack »

Thanks.

The sun times are spot on, compared to the Ajax dashboard & the sun/moon almanac but the moon times are way, way off.

The two above both show rise 00.02 and set 12.36 (which corresponds to http://www.timeanddate.com/worldclock/a ... oon&n=2272)
whereas your plot shows rise 15.36 and set 03.31


p.s. reverse yours and subtract 3 hours (difference between me and UTC) and
set 12.36 and rise 00.31
will apply exactly to moonset today and moonrise tomorrow morning, if that helps :)
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
olsongt
Posts: 2
Joined: Thu 27 Jun 2013 5:46 pm
Weather Station: none
Operating System: Windows 8
Location: Albuquerque, NM

Re: Sun Moon plot

Post by olsongt »

Oops, got the lat/lon mixed up on the input data. Works now I think.
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Sun Moon plot

Post by gluepack »

Spot on. Thanks!

I have incorporated it into my Sun/Moon Almanac web page, calling your php script. I hope that is ok.

viz. http://www.jerbils.info/saratoga/wxastronomy.php
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Sun Moon plot

Post by gluepack »

Oh, not sure if this is a problem or not...

Dashboard shows waxing crescent 9% illuminated whereas the plot shows 91.5%.

I guess it depends what is meant by 91.5% but you would think it would be "illuminated" so shouldn't it be 100 - 91.5 = 8.5%
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Sun Moon plot

Post by gluepack »

I haven't checked the page where I display this plot for a while so I don't know when it stopped operating.
I don't think I have an email address and the site is password protected with no contact details.
I can display the page where the calculation is done but no graph displays.
Any idea what the problem is?
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Sun Moon plot

Post by beteljuice »

His server must have upped the PHP version.

That is a new version 'error' reffering to a bit of the code that now needs to be rewritten :shock:
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply