Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Moon Image ??

Discussion and questions about Cumulus weather station software version 1. This section and its subforums are the main place to get help with Cumulus. Anything which is not specific to the type of weather station goes in here; for anything specific to a type of weather station, please use the appropriate subforum. Use the 'website development' section for any questions relating to creating or running a web site for Cumulus data. Discussion of the stations themselves in these sections is fine.
RayProudfoot
Posts: 2543
Joined: Wed May 06, 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 ??

Postby RayProudfoot » Mon Jun 11, 2012 3:38 pm

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: 2543
Joined: Wed May 06, 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 ??

Postby RayProudfoot » Mon Jun 11, 2012 8:20 pm

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: 308
Joined: Wed Oct 21, 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

Re: Moon Image ??

Postby GraemeT » Tue Jun 12, 2012 2:06 am

....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.

Image

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

Re: Moon Image ??

Postby GraemeT » Fri Jun 15, 2012 11:08 pm

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

The source of the moon images is actually here: http://sandaysoft.com/forum/viewtopic.php?f=18&t=352
Scroll down to the final post for the d/l. link.
Cheers,
Graeme.

Image

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

Re: Moon Image ??

Postby GraemeT » Sat Jun 23, 2012 12:33 am

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/weather/moonphases2.zip

Cheers.
Cheers,
Graeme.

Image

User avatar
Mapantz
Posts: 485
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK
Contact:

Re: Moon Image ??

Postby Mapantz » Sat Jun 23, 2012 3:50 pm

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/weather/moonphases2.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
Image

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

Re: Moon Image ??

Postby GraemeT » Sun Jun 24, 2012 12:24 am

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/weather/moonphases2.zip to include this code.
Cheers,
Graeme.

Image

User avatar
Mapantz
Posts: 485
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK
Contact:

Re: Moon Image ??

Postby Mapantz » Sun Jun 24, 2012 3:06 pm

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/weather/moonphases2.zip to include this code.


Excellent! Thank you Graeme. :D
Image
Image

User avatar
Paul-G0HWC
Posts: 56
Joined: Thu Apr 26, 2012 6:36 am
Weather Station: Davis Vantage Vue
Operating System: Win 7
Location: Clacton on Sea, Essex
Contact:

Re: Moon Image ??

Postby Paul-G0HWC » Sun Jun 24, 2012 3:11 pm

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 Apr 26, 2012 6:36 am
Weather Station: Davis Vantage Vue
Operating System: Win 7
Location: Clacton on Sea, Essex
Contact:

Re: Moon Image ??

Postby Paul-G0HWC » Sun Jun 24, 2012 3:30 pm

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

User avatar
Mapantz
Posts: 485
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK
Contact:

Re: Moon Image ??

Postby Mapantz » Sun Jun 24, 2012 3:52 pm

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
Image

User avatar
Phlerb
Posts: 36
Joined: Sun Jan 20, 2013 2:21 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 8.1
Location: Jericho, VT USA
Contact:

Re: Moon Image ??

Postby Phlerb » Sun Jan 20, 2013 2:35 pm

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: 1
Joined: Thu Jan 25, 2018 2:46 pm
Weather Station: Aercus Instruments WS3083
Operating System: windows 7

Re: Moon Image ??

Postby gcaboz » Thu Jan 25, 2018 3:34 pm

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


Return to “Cumulus 1”

Who is online

Users browsing this forum: No registered users and 5 guests