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
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?
Moderator: mcrossley
-
- Posts: 1809
- 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?
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?
- 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?
Odd, it should be 29
I'll have a look...
It was 30 briefly....
I'll have a look...
It was 30 briefly....
- 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?
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.
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.