Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Moon Phases
Moderator: mcrossley
-
- Posts: 482
- 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
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
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- Posts: 3315
- 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
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
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
-
- Posts: 482
- 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
So whats the verdict then please......
Desford Weather (at parents)
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- Posts: 3315
- 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
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.I need to see what is being uploaded in moonphasetag.php
-
- Posts: 482
- 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
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.
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
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- Posts: 3315
- 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
So is it processing it correctly and what does /var/www/moonphasetag.php contain?
-
- Posts: 482
- 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
/var/www/moonphasetag.php
<?php
$MoonPercent = "60"; // current percentage of moon visible -- negative value = 'waning'
$latitude = "N 52° 37' 32""; // station latitude
?>
<?php
$MoonPercent = "60"; // current percentage of moon visible -- negative value = 'waning'
$latitude = "N 52° 37' 32""; // station latitude
?>
Desford Weather (at parents)
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- 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
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
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
-
- Posts: 1832
- 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
Hi Wilfriedwillyweather 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
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 ) 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.
-
- 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
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 ! Tried your solution this evening and it works great!!
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
Hopefully I don't need too much help in addition
Thanks again,
Wilfried
Super ! Tried your solution this evening and it works great!!
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
-
- 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
Hi there - still I'm REALLY HAPPY with the MOON PICTURE.
Everything seems to work perfect .. I just noticed one minor detail ... two questionmarks in the left top edge (see screenshot).
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
Everything seems to work perfect .. I just noticed one minor detail ... two questionmarks in the left top edge (see screenshot).
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.
-
- Posts: 1832
- 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
I think you may have accidentally pasted an unknown character or space in there by mistake?
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.
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.
-
- 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
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:
but after indexT.htm being processed by CumulusMX, the output in index.htm which is uploaded to the web site looks as follows:
(screenshots taken with the editor Notepad++)
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:
but after indexT.htm being processed by CumulusMX, the output in index.htm which is uploaded to the web site looks as follows:
(screenshots taken with the editor Notepad++)
You do not have the required permissions to view the files attached to this post.
-
- 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
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 ?
( I have used the function "convert tabs into spaces" in Notepad++ for example.
Anyway the problem's gone - thanks a lot for your help!
Wilfried
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 ?
( I have used the function "convert tabs into spaces" in Notepad++ for example.
Anyway the problem's gone - thanks a lot for your help!
Wilfried