WXforum.net

Web Weather => Weather Web Site Help => Topic started by: jachen on April 13, 2019, 04:07:03 PM

Title: Using Metar Current Conditions at Night for Clouds and Icons
Post by: jachen on April 13, 2019, 04:07:03 PM
Hi tonight

I use WD.

Still trying to get everything working with these phantastic php Scripts. But now I think a last part not solvable for me. It's to get the right current conditions at night. I set up everything in WD according to Ken's screenshots and wonder if the following text is still valid:

Quote
With the METAR and Solar both setup, you will have Daytime cloud cover estimated from your Solar Sensor, and Night time cloud cover from your nearby Metar. Weather-Display will override the icon/text description for your station's reports based on Rain, Fog or high Wind.

A look at https://meteo.widen-online.ch shows, that the conditions text is not complete according to Metar Report and the Icon is not as per Metar either.

If anybody has the time to help me it will be very much appreciated.

Have a nice NIGHT.

Title: Re: Using Metar Current Conditions at Night for Clouds and Icons
Post by: saratogaWX on April 13, 2019, 05:15:13 PM
Which METAR are you using for WD conditions?  Is it LSZH?

Title: Re: Using Metar Current Conditions at Night for Clouds and Icons
Post by: jachen on April 13, 2019, 05:30:52 PM
Exactly LSZH 18km from Home.
Title: Re: Using Metar Current Conditions at Night for Clouds and Icons
Post by: saratogaWX on April 13, 2019, 05:42:40 PM
Check WD for how the LSZH Metar is fetched by WD. 

I just noticed that my own download for KSJC.TXT (and LSZH.TXT) returned only a .taf file using HTTP.

I switched (on the Metar Download panel) to use FTP and Passive FTP.  The Test then downloaded both .  Give that a try.
Title: Re: Using Metar Current Conditions at Night for Clouds and Icons
Post by: jachen on April 13, 2019, 06:09:42 PM
Feched as a perfect and correct txt and a met File.
Title: Re: Using Metar Current Conditions at Night for Clouds and Icons
Post by: saratogaWX on April 13, 2019, 06:19:59 PM
If it's not decoding correctly, you'll likely have to post a WD question on weather-watch.com/smf/ forum for Brian to help.
Title: Re: Using Metar Current Conditions at Night for Clouds and Icons
Post by: jachen on April 13, 2019, 06:29:56 PM
I get this which looks OK for me. What should it be like?

Quote
Zurich-Kloten, Switzerland (LSZH) 47-29N 008-32E 432M
Apr 13, 2019 - 05:50 PM EDT / 2019.04.13 2150 UTC
Wind: from the NNW (330 degrees) at 5 MPH (4 KT) (direction variable):0
Visibility: 2 mile(s):0
Sky conditions: mostly cloudy
Weather: light rain
Temperature: 35 F (2 C)
Windchill: 30 F (-1 C):1
Dew Point: 33 F (1 C)
Relative Humidity: 93%
Pressure (altimeter): 30.06 in. Hg (1018 hPa)
ob: LSZH 132150Z 33004KT 300V010 4500 -RA FEW006 SCT014 BKN017 02/01 Q1018 TEMPO 2500 RASN BKN010
cycle: 22 \:D/
Title: Re: Using Metar Current Conditions at Night for Clouds and Icons
Post by: saratogaWX on April 13, 2019, 06:37:18 PM
I don't know what code Brian is using to parse that and convert so that the 'Mostly cloudy' would come through like
Code: [Select]
   $Currentsolardescription = 'Night time/Dry/Mostly Cloudy ';
$current_icon = $icon_array[13]; // name of our condition icon
instead of what you have as
Code: [Select]
$Currentsolardescription = 'Night time/Dry/---';
$current_icon = $icon_array[1]; // name of our condition icon

Again, you'll have to ask Brian -- it's a WD setup issue or a bug.
Title: Re: Using Metar Current Conditions at Night for Clouds and Icons
Post by: waiukuweather on April 23, 2019, 04:38:20 PM
this was a user setting (having local weather text set in input daily weather)