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 4018) - 28 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 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
Moderator: mcrossley
-
- 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
Yes typo i meant
LOCAL FILENAME /home/cumulus/CumulusMX/web/moonphasetagT.txt
REMOTE FILENAME
/var/www/moonphasetag.php
Still doesnt copied over so ive re tried to copy it over and it doesnt hmm very frustrating!
LOCAL FILENAME /home/cumulus/CumulusMX/web/moonphasetagT.txt
REMOTE FILENAME
/var/www/moonphasetag.php
Still doesnt copied over so ive re tried to copy it over and it doesnt hmm very frustrating!
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
- mcrossley
- Posts: 12695
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Moon Phases
Not sure how MX does local copies, but there isn't a file called /var/www/moonphasetag.phptmp left around is there?
-
- 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
No there isnt. I will try the command line cp
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
- mcrossley
- Posts: 12695
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Moon Phases
One other thing to check, do the contents of /home/cumulus/CumulusMX/web/moonphasetagT.txttmp look OK?
That will show if MX is actually processing the file correctly.
That will show if MX is actually processing the file correctly.
-
- 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
No it wasn't now working now....
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: 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
Im still having problems, when the moonphase changes my picture doesnt update with it. Its waxing cresent mean still think its new moon Getting really annoyed now.
Dont agree with moon pictures with chmod 666. I know alot of commands in linux but this is puzzling me.
Dont agree with moon pictures with chmod 666. I know alot of commands in linux but this is puzzling me.
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: 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
Could you attach a copy of your moonphasetag.php file as I cannot access it, it might give a clue as to what is the problem.
-
- 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
I cant see your file either.
I will attach it from directory /var/www
I will attach it from directory /var/www
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: 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
You cannot see mine as I use the PHP webtags file (cumuluswebtags.php) as my site is entirely PHP based.
This is a workaround for people using the standard .html files supplied by Steve to get the moon phase.
This is a workaround for people using the standard .html files supplied by Steve to get the moon phase.
-
- 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
File as requested.
is your moon pictures permissions are 666? if so that's only read and write and not execute.
I will have to put .rtf on the end of the file because of this error 'The extension php is not allowed'.
is your moon pictures permissions are 666? if so that's only read and write and not execute.
I will have to put .rtf on the end of the file because of this error 'The extension php is not allowed'.
You do not have the required permissions to view the files attached to this post.
Last edited by richard_newberry on Sat 12 Dec 2015 11:30 am, edited 1 time in total.
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: 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
should code
<td rowspan="3"><img src="moonphase.php" alt="Moon" width="64" align="left" border="0" height="64" style="margin: 0px 10px" /></td>
be put after <td class="site_data" style="text-align: left;"><#moonphase></td>
instead of after <td class="site_data" style="text-align: left;"><#moonrise></td>
in /var/www
moonphase.php and moonphasetag.php both have 644 permission.
moon folder has 777 permission and moon pictures have 666 permission.
<td rowspan="3"><img src="moonphase.php" alt="Moon" width="64" align="left" border="0" height="64" style="margin: 0px 10px" /></td>
be put after <td class="site_data" style="text-align: left;"><#moonphase></td>
instead of after <td class="site_data" style="text-align: left;"><#moonrise></td>
in /var/www
moonphase.php and moonphasetag.php both have 644 permission.
moon folder has 777 permission and moon pictures have 666 permission.
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: 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
Right I discovered an error in the code.
I was following the advice on Moon Phase percentages in this Topic https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13983 but there is an anomaly in the New moon and Waxing Crescent percentages which you are the first to notice(!!!!)
So yours is actually working but the code is wrong.
If you download the zip file from my original post and just replace moonphase.php it should work correctly (I have tested it on my test bench and it works).
As to your Permissions question moon directory is 755 and the files within it are all 644.
I was following the advice on Moon Phase percentages in this Topic https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13983 but there is an anomaly in the New moon and Waxing Crescent percentages which you are the first to notice(!!!!)
i.e both New Moon and Waxing Crescent cannot both be 1% so I have altered it to match Steve's code.New Moon 0% - 1%
Waxing Crescent 1% - 49%
So yours is actually working but the code is wrong.
If you download the zip file from my original post and just replace moonphase.php it should work correctly (I have tested it on my test bench and it works).
As to your Permissions question moon directory is 755 and the files within it are all 644.
-
- 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
I ran php /var/www/moonphase.php I get this error
?ÿ?ú(¢PuTTYPuTTY
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢?ÿÙPHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/moonphase.php on line 71
?ÿ?ú(¢PuTTYPuTTY
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢
(¢?ÿÙPHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/moonphase.php on line 71
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