WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: ed2kayak on January 04, 2019, 08:45:50 AM

Title: wxastronomy help
Post by: ed2kayak on January 04, 2019, 08:45:50 AM
I currently have 2 problems on my http://cvweather.org/wxastronomy.php page.

At the top of page below the sun, earth and moon images,  time chart strip w/sun is not changing (advancing).

next problem is sunposa at bottom, not showing correct moon image.

Not sure when this started.

Thanks in advance
Title: Re: wxastronomy help
Post by: yamiacaveman on January 19, 2019, 12:54:45 PM
Hi Ed,

I ran into a similar problem a while back, so far my astronomy page has been correct, I think, lol. https://www.pennlake.us/wxastronomy.php

If you are using WD this is what I figured out a while back -- Perhaps it can help you, I think I just got lucky that day.

It went something like this - WD was using jpeg's and the wx script was using gif's.

Oh so here I found a copy of the post -- hope it helps.

In the wxastronomy.php script, in the Sun and Moon Almanac, if you have not modified the script there are 2 big boxes outlined at the bottom of the page.

The top box has the Julian date - UTC time .... and the bottom shows some seasonal events.

Anyway, the dates in mine have been reading from 2016, so the sunrise -set time and all that was always off and stagnant. So for 2 years or so I have been looking at this and thinking this is not right.

So what I found out last night, was that the script is set to read .gif's and in my case I believe WD is uploading revised .jpg's files and the gif's where never being updated so the wxastronomy.php script was looking and showing the non-updated gif's.

So I went into the wxastronomy script and changed every thing to read .jpg's and all seems to be working, at least for me.






Title: Re: wxastronomy help
Post by: ed2kayak on January 19, 2019, 04:00:09 PM
Thanks for suggestion.

I believe script is using correct images.
Everything worked fine until I updated the jpgraphs and
wxgraphs

 http://cvweather.org/wxgraphs/wxgraphs_test.html

I do see an moon issue though here:
 http://cvweather.org/sunmoonimage.jpg  uploaded this morning, but looks stale to me. :?

Will investigate further.