Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Moon age bug?

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Mapantz
Posts: 1808
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Moon age bug?

Post by Mapantz »

I have just noticed that my moon info wasn't showing on my index page. A further investigation shows that <#MoonAge> is being parsed as 30 - I don't think I have ever seen that before?
Image
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Moon age bug?

Post by mcrossley »

Odd, it should be 29 :bash:
I'll have a look...

It was 30 briefly....
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Moon age bug?

Post by mcrossley »

OK, a subtle effect of now allowing you to get greater precision on the MoonAge tag. The mean lunar cycle is approx 29.53 days (varies between approx 29.26 and 29.80), so some cycles the maximum rounded integer age will be 30.

The MoonAge tag now allows you to specify a number of decimal places as well. Previously it used a truncated integer value which of course never exceeded 29, but the effect of that is that it did not indicate each of the phases until after they had happened. With the rounded age it will now show New Moon half a day before and half a day after the event. Previously it would show it for the full day afterwards.

If you just use the integer value to say display an image - say like... <img src="moon<#MoonAge>.png"> - then you will now need an extra "moon30.png" image.

If you use the age as a numeric value to determine the phase text, then you can use the extra decimal places to refine the that process.
Post Reply