Page 6 of 7

Re: Moon Phases

Posted: Fri 18 Dec 2015 4:54 pm
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.

Re: Moon Phases

Posted: Fri 18 Dec 2015 5:25 pm
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

Re: Moon Phases

Posted: Fri 18 Dec 2015 9:56 pm
by richard_newberry
So whats the verdict then please......

Re: Moon Phases

Posted: Fri 18 Dec 2015 11:15 pm
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.

Re: Moon Phases

Posted: Fri 18 Dec 2015 11:32 pm
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.

Re: Moon Phases

Posted: Fri 18 Dec 2015 11:47 pm
by water01
So is it processing it correctly and what does /var/www/moonphasetag.php contain?

Re: Moon Phases

Posted: Sat 19 Dec 2015 1:46 pm
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

?>

Re: Moon Phases

Posted: Sat 19 Dec 2015 2:33 pm
by water01
Ok 60% in the N is Waxing Gibbous which is what it is showing.

Re: Moon Phases

Posted: Tue 29 Nov 2016 9:47 pm
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

Re: Moon Phases

Posted: Tue 29 Nov 2016 10:28 pm
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. :)

Re: Moon Phases

Posted: Wed 30 Nov 2016 10:11 pm
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

Re: Moon Phases

Posted: Tue 06 Dec 2016 6:28 pm
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

Re: Moon Phases

Posted: Tue 06 Dec 2016 6:40 pm
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.

Re: Moon Phases

Posted: Tue 06 Dec 2016 7:23 pm
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++)

Re: Moon Phases

Posted: Tue 06 Dec 2016 7:45 pm
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