If you use Cumulus, please donate Image

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: 232
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 18, 2015 4:54 pm

Its changed to first quarter, waxing cresent picture not changed yet to first quarter. All pictures in moon directory have chmod 666.
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: 1392
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Gurney Slade,Somerset, UK
Contact:

Re: Moon Phases

Postby water01 » Fri Dec 18, 2015 5:25 pm

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 viewtopic.php?f=27&t=13983

richard_newberry
Posts: 232
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 18, 2015 9:56 pm

So whats the verdict then please......
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: 1392
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Gurney Slade,Somerset, UK
Contact:

Re: Moon Phases

Postby water01 » Fri Dec 18, 2015 11:15 pm

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.

richard_newberry
Posts: 232
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 18, 2015 11:32 pm

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.
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: 1392
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Gurney Slade,Somerset, UK
Contact:

Re: Moon Phases

Postby water01 » Fri Dec 18, 2015 11:47 pm

So is it processing it correctly and what does /var/www/moonphasetag.php contain?

richard_newberry
Posts: 232
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 19, 2015 1:46 pm

/var/www/moonphasetag.php

<?php

$MoonPercent = "60"; // current percentage of moon visible -- negative value = 'waning'
$latitude = "N&nbsp;52&deg;&nbsp;37&#39;&nbsp;32&quot;"; // station latitude

?>
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: 1392
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Gurney Slade,Somerset, UK
Contact:

Re: Moon Phases

Postby water01 » Sat Dec 19, 2015 2:33 pm

Ok 60% in the N is Waxing Gibbous which is what it is showing.

willyweather
Posts: 63
Joined: Tue May 15, 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Postby willyweather » Tue Nov 29, 2016 9:47 pm

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

User avatar
Mapantz
Posts: 430
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK

Re: Moon Phases

Postby Mapantz » Tue Nov 29, 2016 10:28 pm

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? viewtopic.php?f=4&t=7657&p=65438&hilit=moonphase#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. :)
Image
Image

willyweather
Posts: 63
Joined: Tue May 15, 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Postby willyweather » Wed Nov 30, 2016 10:11 pm

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

willyweather
Posts: 63
Joined: Tue May 15, 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Postby willyweather » Tue Dec 06, 2016 6:28 pm

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
You do not have the required permissions to view the files attached to this post.

User avatar
Mapantz
Posts: 430
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK

Re: Moon Phases

Postby Mapantz » Tue Dec 06, 2016 6:40 pm

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.
You do not have the required permissions to view the files attached to this post.
Image
Image

willyweather
Posts: 63
Joined: Tue May 15, 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Postby willyweather » Tue Dec 06, 2016 7:23 pm

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++)
You do not have the required permissions to view the files attached to this post.

willyweather
Posts: 63
Joined: Tue May 15, 2012 8:50 pm
Weather Station: WH 1080
Operating System: Windows 8.1 and Raspbian
Location: Assling

Re: Moon Phases

Postby willyweather » Tue Dec 06, 2016 7:45 pm

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


Return to “Cumulus MX”

Who is online

Users browsing this forum: desduf and 6 guests