Page 7 of 7

Re: Moon Phases

Posted: Tue 06 Dec 2016 8:53 pm
by water01
Cached page renewed from the new code? Always best to do an F12 and clear the cache with the developer tools.

Re: Moon Phases

Posted: Sun 12 Mar 2017 5:36 pm
by richard_newberry
I'm still getting full moon on CumulusMX and the pictures changed to waning gibbous? shouldn't it change when CumulusMX changes?

is this a bug?

Re: Moon Phases

Posted: Mon 19 Jun 2017 11:57 am
by richard_newberry
is moonphase at any point going to be compatible with php7?

Re: Moon Phases

Posted: Fri 25 Jan 2019 9:09 pm
by water01
I have updated the moon phase code to bring it into line with Cumulus MX 3046. The zip file is available here viewtopic.php?f=27&t=13902&p=110751#p110751

Re: Moon Phases

Posted: Sun 27 Jan 2019 4:07 pm
by G6GUH
is there a set of instruction for the original install as there is not the lines which nee to be modified in my indexT.htm file, I assume they were added in the previous instructions for the original instalation..using the latest version of CumulusMX.

Thanks Pete

Re: Moon Phases

Posted: Mon 28 Jan 2019 12:09 am
by water01
In the zip file there is a word doc with instructions or are you saying they do not work?

Re: Moon Phases

Posted: Mon 28 Jan 2019 7:16 am
by G6GUH
Thanks for the reply. The line that the instructions say I need to change is not in the index file unless I have not seen it. Whereabouts would I insert the modified line?

Pete

Re: Moon Phases

Posted: Mon 28 Jan 2019 9:10 am
by water01

Code: Select all

Now you must edit indexT.htm in your HTML editor of choice.
It is this line. For Cumulus web sites you must always update the Template file (xxxxxxxxxxT.htm) so that Cumulus can then process the file and substitute the weather readings into the appropriate place and then update it. If you directly up date index.htm no substitutions can be made.

Re: Moon Phases

Posted: Mon 28 Jan 2019 7:05 pm
by G6GUH
Thanks for the advice, downloaded the file again and reinstalled the files and all worked fine.

Thanks. Pete

Re: Moon Phases

Posted: Sun 03 Feb 2019 10:33 am
by billy
Thanks for this. Just one little problem for us living nearer the south pole than the north pole - the graphic is for the northern hemisphere. A quick look at moonphase.php seems to show identical code for both hemispheres. For the south, it just needs a few little changes - an "s" prefixed to the appropriate file names.

Re: Moon Phases

Posted: Mon 04 Feb 2019 1:18 am
by water01
Whoops, apologies introduced that as I brought the code into line with MX. All fixed and new .zip added to the post here viewtopic.php?f=27&t=13902#p110751

Re: Moon Phases

Posted: Mon 04 Feb 2019 9:46 am
by water01
OK moon phase images updated to correctly reflect the Southern Hemisphere (needed to be reversed AND inverted) and additional Southern Hemisphere New and Full Moon added.

New code as always at viewtopic.php?f=27&t=13902#p110751

Re: Moon Phases

Posted: Mon 16 Mar 2020 9:30 pm
by water01
OK I noticed that my moonphase image was slightly out of sync with the <#moonphase> web tag.

It turns out the code in CumulusMx that produces that tag has been slightly tweaked since I last updated this in 2019, so I have updated my code to reflect the CumulusMX changes.

For those of you that use my code to produce that image (I think a few of you use it as CumulusMX does not do this as standard) I have updated it and it is now correct.

New code as always at viewtopic.php?f=27&t=13902#p110751

Re: Moon Phases

Posted: Tue 14 Apr 2020 1:10 pm
by water01
Since the moon phase picture is now standard in Cumulus MX, I do not propose to update this code any longer unless specifically asked to do so.