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

Moon icon

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.
Post Reply
User avatar
Palmyweather
Posts: 58
Joined: Sat 28 Nov 2009 9:57 am
Weather Station: WeatherDuino Pro2 Plus (custom)
Operating System: Windows 11
Location: New Zealand
Contact:

Moon icon

Post by Palmyweather »

I understand that the graphics that are uploaded from Cumulus are snapshots of the program itself (like the wind rose and moon phase).

Is there any way to change the moon graphic so that it matches the other weather icons I use on my site?
Check my Palmerston North, New Zealand weather station out at https://palmyweather.co.nz .

Image
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: Moon icon

Post by steve »

I don't really understand what you're asking. There's no way to change the image as displayed in Cumulus (and hence no way to change the moon.bmp file that Cumulus produces). Apart from providing me with an alternative Delphi component to use, of course.

What would it need to look like to match the other weather icons you use on your site? I had a quick look but it wasn't obvious. Do you mean you want it to have a transparent background? The easiest way to get a different moon image on your site would probably be to use something other than the one Cumulus produces - a few people have done this, there are some quite nice ones out there - Mark Crossley has written his own, I believe.
Steve
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Moon icon

Post by Synewave »

Palmyweather,

One that seems to be popular is the one I use on my site. It's not as dynamic as Steve's, and has 8 (I think) phases. However, it is produced by adding the moonphase webtag into an extra realtime file, Cumulus process and FTP it. Then use Javascript in the webpage to read the extra realtime file and display an image based on the name of the moonphase image. So a little complicated really, but totally achievable if you are a little comfortable with javascript. If you want some code, let me know.
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: Moon icon

Post by steve »

That one you use is quite nice, Paul. I think it would fit in well on the Palmy Weather site.
Steve
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Moon icon

Post by gemini06720 »

Indeed, the moon icon on Paul's page is quite nice.

On my site, I use both a PHP script (used when the page is first downloaded to the user's browser) and a JavaScript (for near real-time updating) to control 28 different moon icons - in fact, the scripts control 56 moon icons, 28 icons for the northern hemisphere and 28 icons for the southern hemisphere. The 'moon' scripts do not rely on any weather software to produce their phases (icons and texts) - the scripts only need the proper latitude, longitude and hemisphere (either 'NH' or 'SH').

On my main page ([link removed]), the moon phase icon is not displayed during the daylight hours as it is replaced by a thumbnail image of the weather WebCam but the text for the phase of the moon is continuously display.

Ray.
Last edited by gemini06720 on Wed 22 May 2013 10:30 pm, edited 1 time in total.
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 icon

Post by GraemeT »

I think this thread might have the information you're looking for:
https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=2505

This is the php code I use:

Code: Select all

...html
<td width="10%" rowspan="3" align="center"><?php echo '<img src="../images/moon/' . rawurlencode($moonphase) . '.png" alt="" width="60" height="60" />' ?></td>
more html...
Cheers,
Cheers,
Graeme.
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Moon icon

Post by Synewave »

Graeme's method above certainly is a much simpler way to achieve the same result as mine, without using any Javascript.
User avatar
Palmyweather
Posts: 58
Joined: Sat 28 Nov 2009 9:57 am
Weather Station: WeatherDuino Pro2 Plus (custom)
Operating System: Windows 11
Location: New Zealand
Contact:

Re: Moon icon

Post by Palmyweather »

It's a lot easier than any way I was thinking. Should have given it a bit more thought to figure this one out myself.
Check my Palmerston North, New Zealand weather station out at https://palmyweather.co.nz .

Image
Krumlov
Posts: 16
Joined: Wed 23 Mar 2011 11:58 am
Weather Station: WH2081
Operating System: Windows XP SP3
Location: Brisbane, Australia

Re: Moon icon

Post by Krumlov »

Don't know if this has been posted before but just came across this and I'm now using it on my site:

http://www.calculatorcat.com/moon_phase ... ases.phtml

Works well!

Here is my site: http://www.users.on.net/~gavin_n/weather
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: Moon icon

Post by gwheelo »

Another example of the moon phase gadget above.

http://www.wheelocknet.net/cumulus/today.html?gb

GW
Image
User avatar
MickinMoulden
Posts: 499
Joined: Mon 20 Dec 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: Moon icon

Post by MickinMoulden »

Krumlov wrote:Don't know if this has been posted before but just came across this and I'm now using it on my site:

http://www.calculatorcat.com/moon_phase ... ases.phtml

Works well!

Here is my site: http://www.users.on.net/~gavin_n/weather
I've seen that before on someones site, looks good. I like the % value. By the way, is that a webcam picture you use for your background? I haven't seen that before. I use a webcam picture (1 of 6 pics) on my home page as well. Mines just a LOT smaller :lol:
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImage
Post Reply