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 4017) - 17 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 Phases

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

richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Moon Phases

Post by richard_newberry »

Its changed to first quarter, waxing cresent picture not changed yet to first quarter. All pictures in moon directory have chmod 666.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Moon Phases

Post by water01 »

I need to see what is being uploaded in moonphasetag.php but I have tested the following MoonPercent values

48% = Waxing Crescent
49% = First Quarter
50% = First Quarter
51% = Waxing Gibbous

which matches what Cumulus MX is saying in the webtags and as I pointed out to what is Topic https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13983
David
Image
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Moon Phases

Post by richard_newberry »

So whats the verdict then please......
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Moon Phases

Post by water01 »

I need to see what is being uploaded in moonphasetag.php
Unless I can see this file I cannot help, but I know others are using this with no problem, so I can only surmise that the php file tag is not being updated correctly.
David
Image
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Moon Phases

Post by richard_newberry »

I have local filename moonphasetagT.txt to remote filename /var/www/moonphasetag.php and process is only ticked.

I have ticked realtime in extra web files and it's updated itself.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Moon Phases

Post by water01 »

So is it processing it correctly and what does /var/www/moonphasetag.php contain?
David
Image
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Moon Phases

Post by richard_newberry »

/var/www/moonphasetag.php

<?php

$MoonPercent = "60"; // current percentage of moon visible -- negative value = 'waning'
$latitude = "N&nbsp;52&deg;&nbsp;37'&nbsp;32""; // station latitude

?>
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Moon Phases

Post by water01 »

Ok 60% in the N is Waxing Gibbous which is what it is showing.
David
Image
willyweather
Posts: 54
Joined: Tue 15 May 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Post by willyweather »

Hi there,

maybe a silly question:
In the original first release post (post 10 on Topic Page 1) it is stated, that this code is both for HTML or PHP users.
I have tried it some months ago until I learned, that my website does not support php at all which was the reason that it didn't work for me, therefore I gave up.
I know almost nothing about php or HTML, but what would I have to do in such a case. Any suggestions ?

Thanks.

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

Re: Moon Phases

Post by Mapantz »

willyweather wrote:Hi there,

maybe a silly question:
In the original first release post (post 10 on Topic Page 1) it is stated, that this code is both for HTML or PHP users.
I have tried it some months ago until I learned, that my website does not support php at all which was the reason that it didn't work for me, therefore I gave up.
I know almost nothing about php or HTML, but what would I have to do in such a case. Any suggestions ?

Thanks.

Wilfried
Hi Wilfried

Maybe this is what you might be after? https://cumulus.hosiene.co.uk/viewtopic.p ... ase#p65438

I knew nothing about PHP back then (I still don't know anything if i'm honest :lol:) anyway, GraemeT kindly did a Javascript way of showing the moon and it's phases, which I used on my site back in 2012. I recently got my site back online after some time away, and I started using the same way again on my new site, as it has been flawless for me. The link still works to download all of the moon phase icons: http://weather.gktnet.com/public/weathe ... hases2.zip

There's also a text file in the zip to show you how to add, either the PHP code or Javascript to your site. :)
Image
willyweather
Posts: 54
Joined: Tue 15 May 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Post by willyweather »

Cool - thanks a lot for this hint - I'll give it a try asap. :)

Hopefully I don't need too much help in addition ;)

Thanks again,

Wilfried

Super ! :D Tried your solution this evening and it works great!! :clap:
The moon picture looks really nice and and the implementation doesn't need to link to an external website (which may be offline eventually) ...
Moreover the picture isn't a black disk on a black background at new moon as in the other solutions mentioned in this thread.

Thanks a lot again !

Wilfried

-> www.dillings.de
willyweather
Posts: 54
Joined: Tue 15 May 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Post by willyweather »

Hi there - still I'm REALLY HAPPY with the MOON PICTURE. :clap:

Everything seems to work perfect .. I just noticed one minor detail ... two questionmarks in the left top edge (see screenshot).
moonQmarks.JPG
They came with the insertion of the moon picture javascript (and can be removed again when removing the code snippet).

I tested, what might be the reason and found out, that inserting only the few lines

<td rowspan="3">
<script type="text/javascript">

</script>
</td>

which are obviously doing nothing results in the question marks being created.

Not that this is a real problem ;) but I would like to know the reason behind or what is going wrong ...

Any ideas ?

Wilfried
You do not have the required permissions to view the files attached to this post.
Mapantz
Posts: 1774
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Moon Phases

Post by Mapantz »

I think you may have accidentally pasted an unknown character or space in there by mistake?
2016-12-06 (1).png
If you open up your indexT.htm on your side, put your cursor just before <td and press delete until the empty space has gone, then press tab to indent the line again.
You do not have the required permissions to view the files attached to this post.
Image
willyweather
Posts: 54
Joined: Tue 15 May 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Post by willyweather »

hmmm, don't think so.

I have done as you suggested, thanks for the quick response, but it didn't help.

In addition I found out, that the code in indexT.htm seems to be clean:
indexT_htm.jpg
but after indexT.htm being processed by CumulusMX, the output in index.htm which is uploaded to the web site looks as follows:
index_htm.JPG
(screenshots taken with the editor Notepad++)
You do not have the required permissions to view the files attached to this post.
willyweather
Posts: 54
Joined: Tue 15 May 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Post by willyweather »

hey - what happened ?!?!?

I have been out of the room for a few minutes and the question marks disappeared ?!?! :?

Maybe you have been right and with my file editing in order to get the screen shots I have fixed the problem without noticing ? :oops:
( I have used the function "convert tabs into spaces" in Notepad++ for example.

Anyway the problem's gone - thanks a lot for your help! :P

Wilfried
Post Reply