Author Topic: wxastronomy help  (Read 504 times)

0 Members and 1 Guest are viewing this topic.

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
wxastronomy help
« 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
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 439
    • Penn Lake Weather
Re: wxastronomy help
« Reply #1 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.







Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: wxastronomy help
« Reply #2 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.
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

 

anything