Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Moon Phases

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
richard_newberry
Posts: 249
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Moon Phases

Postby richard_newberry » Fri Dec 11, 2015 8:39 pm

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!
Kirby Muxloe Weather
http://kirbymuxloe-weather.dyndns.org web forward to http://kirbymuxloe-weather.co.uk
Also on Kirby Muxloe weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

User avatar
mcrossley
Posts: 4979
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Moon Phases

Postby mcrossley » Fri Dec 11, 2015 8:43 pm

Can you perform the same copy OK from the command line?

User avatar
mcrossley
Posts: 4979
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Moon Phases

Postby mcrossley » Fri Dec 11, 2015 8:44 pm

Not sure how MX does local copies, but there isn't a file called /var/www/moonphasetag.phptmp left around is there?

richard_newberry
Posts: 249
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Moon Phases

Postby richard_newberry » Fri Dec 11, 2015 8:52 pm

No there isnt. I will try the command line cp
Kirby Muxloe Weather
http://kirbymuxloe-weather.dyndns.org web forward to http://kirbymuxloe-weather.co.uk
Also on Kirby Muxloe weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

User avatar
mcrossley
Posts: 4979
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Moon Phases

Postby mcrossley » Fri Dec 11, 2015 8:56 pm

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.

richard_newberry
Posts: 249
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Moon Phases

Postby richard_newberry » Fri Dec 11, 2015 9:14 pm

No it wasn't now working now....
Kirby Muxloe Weather
http://kirbymuxloe-weather.dyndns.org web forward to http://kirbymuxloe-weather.co.uk
Also on Kirby Muxloe weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

water01
Posts: 1401
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Moon Phases

Postby water01 » Fri Dec 11, 2015 11:37 pm

So, if you don't mind me asking what changed?

richard_newberry
Posts: 249
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Moon Phases

Postby richard_newberry » Sat Dec 12, 2015 10:27 am

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.
Kirby Muxloe Weather
http://kirbymuxloe-weather.dyndns.org web forward to http://kirbymuxloe-weather.co.uk
Also on Kirby Muxloe weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

water01
Posts: 1401
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Moon Phases

Postby water01 » Sat Dec 12, 2015 10:54 am

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.

richard_newberry
Posts: 249
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Moon Phases

Postby richard_newberry » Sat Dec 12, 2015 11:03 am

I cant see your file either.

I will attach it from directory /var/www
Kirby Muxloe Weather
http://kirbymuxloe-weather.dyndns.org web forward to http://kirbymuxloe-weather.co.uk
Also on Kirby Muxloe weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

water01
Posts: 1401
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Moon Phases

Postby water01 » Sat Dec 12, 2015 11:15 am

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.

richard_newberry
Posts: 249
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Moon Phases

Postby richard_newberry » Sat Dec 12, 2015 11:17 am

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'.
You do not have the required permissions to view the files attached to this post.
Last edited by richard_newberry on Sat Dec 12, 2015 11:30 am, edited 1 time in total.
Kirby Muxloe Weather
http://kirbymuxloe-weather.dyndns.org web forward to http://kirbymuxloe-weather.co.uk
Also on Kirby Muxloe weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

richard_newberry
Posts: 249
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Moon Phases

Postby richard_newberry » Sat Dec 12, 2015 11:24 am

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.
Kirby Muxloe Weather
http://kirbymuxloe-weather.dyndns.org web forward to http://kirbymuxloe-weather.co.uk
Also on Kirby Muxloe weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

water01
Posts: 1401
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Moon Phases

Postby water01 » Sat Dec 12, 2015 12:15 pm

Right I discovered an error in the code.

I was following the advice on Moon Phase percentages in this Topic 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(!!!!)
New Moon 0% - 1%
Waxing Crescent 1% - 49%

i.e both New Moon and Waxing Crescent cannot both be 1% so I have altered it to match Steve's code.

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.

richard_newberry
Posts: 249
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Moon Phases

Postby richard_newberry » Sat Dec 12, 2015 12:26 pm

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
Kirby Muxloe Weather
http://kirbymuxloe-weather.dyndns.org web forward to http://kirbymuxloe-weather.co.uk
Also on Kirby Muxloe weather underground.
Looking forward to cumulus on Linux platform it'll rock!!


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 4 guests