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 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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 Image ??

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Moon Image ??

Post by RayProudfoot »

steve wrote:Here's another link, one you might consider "more authoritative". According to the web site of the US Naval Observatory (my emphasis): "The percent of the Moon's surface illuminated is a more refined, quantitative description of the Moon's appearance than is the phase. Considering the Moon as a circular disk, the ratio of the area illuminated by direct sunlight to its total area is the fraction of the Moon's surface illuminated; multiplied by 100, it is the percent illuminated. At New Moon the percent illuminated is 0; at First and Last Quarters it is 50%; and at Full Moon it is 100%. During the crescent phases the percent illuminated is between 0 and 50% and during gibbous phases it is between 50% and 100%."

If you'd like to give me a definitive reference for the mapping of percentage visibility to lunar phase, I can consider changing Cumulus at some point.
Steve, I completely agree with that source. Reading it, it also say's this... "The two crescent and two gibbous phases are intermediate phases, each of which lasts for about a week between the primary phases, during which time the exact fraction of the Moon's disk that is illuminated gradually changes."

What I do find difficult to get my head around is that 49% of the moon illuminated represents a crescent rather than still a quarter. If you accept that a full moon can still look full one day either side of it being full there's a reasonable case to be made for + and - 1 day either side of first / last quarter.

It's open to interpretation and not a huge issue for me nor you I suspect. I'm currently trialling the alternative from the site I mentioned earlier so people can compare the phases should anyone want to do it.
Cheers,
Ray, Cheshire.

Image
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Moon Image ??

Post by RayProudfoot »

This is a useful demonstration. http://astro.unl.edu/naap/lps/animations/lps.swf

New Moon is 1.1% or less of the surface illuminated.
Waxing / Waning Crescent is between 1.2% and 45.6% illuminated.
First / Last Quarter is between 45.7% and 54.4% illuminated.
Waxing / Waning Gibbous is between 54.5% and 98.8% illuminated.
Full is 98.9% or more illuminated.

So first / last quarter will be visible for less than gibbous phases but perhaps for 2 days compared to the current 1.
Cheers,
Ray, Cheshire.

Image
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Moon Image ??

Post by GraemeT »

....it's all gotten too academic for me....


Mapantz,
I can't claim any credit at all for the images...they're someone else's and sadly, I can't remember where they came from. :(
If I could, I'd post more details.
Cheers,
Graeme.
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Moon Image ??

Post by GraemeT »

Oops! :oops:
Previous post incorrect - now fixed...

The source of the moon images is actually here: https://cumulus.hosiene.co.uk/viewtopic.php?f=18&t=352
Scroll down to the final post for the d/l. link.
Cheers,
Graeme.
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Moon Image ??

Post by GraemeT »

I've reworked my moonphase code and (hopefully) we can now show a different image for each day of the moon-cycle.
Here are the images, as well as a bit of php code to display them.
http://weather.gktnet.com/public/weathe ... hases2.zip

Cheers.
Cheers,
Graeme.
Mapantz
Posts: 1775
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Moon Image ??

Post by Mapantz »

GraemeT wrote:I've reworked my moonphase code and (hopefully) we can now show a different image for each day of the moon-cycle.
Here are the images, as well as a bit of php code to display them.
http://weather.gktnet.com/public/weathe ... hases2.zip

Cheers.
Hi Graeme, I'd like to use the new way on my site, but i'm not clued up on what to do with php, so i wondered if you could guide me through it?

Regards.

PS: Good work!
Image
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Moon Image ??

Post by GraemeT »

Hi Mapantz,

If you're not using php, it can be done in javascript.

My javascript is very rudimentary, but this should work for you:

Code: Select all

<script type="text/javascript">
var Lat="<#latitude>";
var hemi=Lat.substr(0,1);
var imagen = "<#MoonAge>";
if (hemi=="S") imagen = (-imagen)+29;
document.write('<img src="/images/moon2/'+imagen+'.png"/>');
</script>
View here: http://weather.gktnet.com/cumulus/index.htm
I've updated http://weather.gktnet.com/public/weathe ... hases2.zip to include this code.
Cheers,
Graeme.
Mapantz
Posts: 1775
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Moon Image ??

Post by Mapantz »

GraemeT wrote:Hi Mapantz,

If you're not using php, it can be done in javascript.

My javascript is very rudimentary, but this should work for you:

Code: Select all

<script type="text/javascript">
var Lat="<#latitude>";
var hemi=Lat.substr(0,1);
var imagen = "<#MoonAge>";
if (hemi=="S") imagen = (-imagen)+29;
document.write('<img src="/images/moon2/'+imagen+'.png"/>');
</script>
View here: http://weather.gktnet.com/cumulus/index.htm
I've updated http://weather.gktnet.com/public/weathe ... hases2.zip to include this code.
Excellent! Thank you Graeme. :D
Image
User avatar
Paul-G0HWC
Posts: 56
Joined: Thu 26 Apr 2012 6:36 am
Weather Station: Davis Vantage Vue
Operating System: Win 7
Location: Clacton on Sea, Essex
Contact:

Re: Moon Image ??

Post by Paul-G0HWC »

Got it working here too

Good work Graeme :clap:

Paul
Image

Weather: http://www.g0hwc.com/weather
Ham Radio: http://www.g0hwc.com
TruckCam: http://www.truckcam.tv Live video and tracking from my truck
User avatar
Paul-G0HWC
Posts: 56
Joined: Thu 26 Apr 2012 6:36 am
Weather Station: Davis Vantage Vue
Operating System: Win 7
Location: Clacton on Sea, Essex
Contact:

Re: Moon Image ??

Post by Paul-G0HWC »

I think its funny the time we spend doing tweaks to our weather pages
that 99% of visitirs will never notice ! But all part of the fun

:o

Paul
Image

Weather: http://www.g0hwc.com/weather
Ham Radio: http://www.g0hwc.com
TruckCam: http://www.truckcam.tv Live video and tracking from my truck
Mapantz
Posts: 1775
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Moon Image ??

Post by Mapantz »

Paul-G0HWC wrote:I think its funny the time we spend doing tweaks to our weather pages
that 99% of visitirs will never notice ! But all part of the fun

:o

Paul
haha - yeah i'm always tweaking. As long as i'm happy with it, then i know most of the visitors will be.
Image
User avatar
Phlerb
Posts: 36
Joined: Sun 20 Jan 2013 2:21 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 8.1
Location: Jericho, VT USA
Contact:

Re: Moon Image ??

Post by Phlerb »

Thanks for doing this. I really like these moon images.

The only thing I would mention in the text file is that the path of the imagefile may need to be changed to the include the subfolder that Cumulus is running under. I spent about an hour trying to determine why the image did not show.

I have my site running under .../Weather/index.htm, so I had to add /Weather to the code

document.write('<img src="Weather/images/moon2/'+imagen+'.png" alt="No Image" title="Moon is
gcaboz
Posts: 4
Joined: Thu 25 Jan 2018 2:46 pm
Weather Station: Aercus Instruments WS3083
Operating System: windows 7

Re: Moon Image ??

Post by gcaboz »

How can i acess at this ?
http://weather.gktnet.com/public/weathe ... Phases.zip
Beacause it asks for a login name and password
Post Reply