Current weather ICON (from Metar) is not displaying correctly

Hello,
I’m using current WD software in conjunction with the Saratoga scripts. I’ve noticed the current weather icon is NOT being updated properly. I have checked in WD settings and I believe they are correct, but I may be missing something. Here is the info that I’m finding so far:

  • Contents of the Metar text file located in the WD\metar folder showing the sky conditions are clear (sunny).

  • Snippet of the clientraw.txt file that’s being generated every 5 mins which shows a converted number of 18 <— this is what i’m not sure how is getting selected. Instead, I would think it should be representative of a sunny sky
    image

The array I believe the Saratoga script is using to determine which icon to used based off the Metar value. As you can see #18is used for the day_cloudy.gif.
image

Here are the 2 config screens within WD that I believe are responsible for the current Metar conditions and how they will be used:

Any help would be most appreciated!!

Thank you!

Can we have the URL of your Saratoga template?

Try this setting in the control panel:

Jim

Thanks! I did not have that ticked, and now ticked it. Only thing that changed is the clientraw.txt is now showing clear, but the # is still 18, and the icon is being selected as cloudy instead of sunny / clear
image

Maybe it takes some more time for the icon number to update. I get the correct icon number in mine.
image
image


Jim

Thanks Jim for checking on your side! Unfortunately, I just checked now (about 1 later), and this is what I am showing:

How about this one: Control Panel->Summary Images & Icons

Jim

Thank you! I had another option ticked as: Your station’s rain/…

Once I unticked that option, the icon looks to be working properly now.

I’ll let it go as is for tonight and will check in the morning.

Thank you much again!

Unfortunately I spoke too soon. Still the same issue is still going on.
Current info:

KAEG.txt metar file from WD\Metar folder

Clientraw.txt
image

Testtags.php
image

Code array in Saratoga’s ajax-dashboard.php script
image

Cloudy Icon being display; whereas it’s clear, not Sunny yet, but will be soon

What does the WD panel say?


What’s the link to your site?
Jim

Console looks kinda correct. No clouds outside, another bright sunny day…

Weather site went matching the console right at start of the every 5 min upload

to:

Something looks to be overwriting the clientraw.txt file and changing it, since I happened to catch it right at the begging it looks like to me.

Site is: pwvillage.com/weather

You might check and make sure all your icon files actually exist in the directory settings.php points to. I see an error in your testtags.txt file, but its not the cause of this problem:
$icon_array[28] = ‘day_clear.gif.gif’; // imagesunny.visible
and look at your solar setup in WD and just turn it off, if its turned on.
Jim

Hmm… I do have day_clear.gif in the ajax_images directory
image

Interestingly you mentioned ‘Solar’ I did have that running at one point, but sensor went bad, so I turned the main switch for it to Off until I get it replaced. I wonder if there’s some interference from it causing this strange issue even though it’s showing off?

Yes, but day_clear.gif is named day_clear.gif.gif in testtags.txt in your webfiles directory. day_clear.gif.gif will not be found.
Jim

Yes, I just looked at the testtags.php file in the local WD\webfiles folder and you’re correct, the filename is day_clear.gif.gif. So my question is that file is getting updated every 5 mins, so something is writing it to the file incorrectly. What would that be that is causing it?

Rename it to the correct name and see if it re-appears after 5 minutes? As far as I recall the HTML/PHP code gets updated and just refers to the GIF files so they’re not uploaded every 5 minutes. I don’t use the WD web pages these days so I can’t be 100% sure of that answer.

Chris is right. On your wd machine go to the webfiles directory, find testtags.txt, fix it, it will update the php within 5 minutes.

Thanks guys. I did follow this process which seemed to take care of the invalid file name; however, right the 5 min. mark the website icon is showing correctly, then in about 1 minute it changes to the incorrect icon.

Something about a min later is overwriting it looks like.

if you watch my website at the beginning of the every 5 min. mark, you’ll see the correct icon, refresh the page a minute or so later, and you’ll see it changed.

Thanks again!

This ICON setting is complicated business, as you have found.

You can use a METAR to set the conditions icon, but since your solar sensor is offline, you have to uncheck the Solar sensor overrides during daytime.. that’s the reason you have ‘Overcast’ as the icon .. your solar sensor is reading zero (overcast and gloomy).

The testtags.php has the conditions icon of 5 (partly cloudy) which is the default for WD when no METAR nor Solar sensor is used. It would stay that way all the time until it either rains or has high wind.

Fully disable your solar sensor in your WD setup and configure to use METAR for icon both day and night with override for local wind/rain.

Thank you for the great info about the ICON setting. I will try your recommendation and will let you know how it goes.

Thanks again!