Author Topic: Using Metar Current Conditions at Night for Clouds and Icons  (Read 1001 times)

0 Members and 1 Guest are viewing this topic.

Offline jachen

  • Member
  • *
  • Posts: 39
    • Neue Wetterstation Widen
Using Metar Current Conditions at Night for Clouds and Icons
« 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.


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Using Metar Current Conditions at Night for Clouds and Icons
« Reply #1 on: April 13, 2019, 05:15:13 PM »
Which METAR are you using for WD conditions?  Is it LSZH?

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jachen

  • Member
  • *
  • Posts: 39
    • Neue Wetterstation Widen
Re: Using Metar Current Conditions at Night for Clouds and Icons
« Reply #2 on: April 13, 2019, 05:30:52 PM »
Exactly LSZH 18km from Home.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Using Metar Current Conditions at Night for Clouds and Icons
« Reply #3 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.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jachen

  • Member
  • *
  • Posts: 39
    • Neue Wetterstation Widen
Re: Using Metar Current Conditions at Night for Clouds and Icons
« Reply #4 on: April 13, 2019, 06:09:42 PM »
Feched as a perfect and correct txt and a met File.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Using Metar Current Conditions at Night for Clouds and Icons
« Reply #5 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.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jachen

  • Member
  • *
  • Posts: 39
    • Neue Wetterstation Widen
Re: Using Metar Current Conditions at Night for Clouds and Icons
« Reply #6 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/

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Using Metar Current Conditions at Night for Clouds and Icons
« Reply #7 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.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline waiukuweather

  • Forecaster
  • *****
  • Posts: 1072
Re: Using Metar Current Conditions at Night for Clouds and Icons
« Reply #8 on: April 23, 2019, 04:38:20 PM »
this was a user setting (having local weather text set in input daily weather)