cloudy cloudy

Author Topic: Generate METAR  (Read 508 times)

0 Members and 1 Guest are viewing this topic.

Offline mihec

  • Posts: 204
  • OS/Browser:
  • (Linux Mint)
  • Firefox 56.0
Generate METAR
« on: December 26, 2017, 09:13:12 PM »
I don't think this is a use-case for the hobby weather stations but anyway: is it possible to generate a METAR from the station's data? I could probably do it in python or bash but just asking here if such functionality exists already. Thank you.

Offline Weather Display

  • Posts: 84,483
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.84
    • Weather Display
Re: Generate METAR
« Reply #1 on: December 26, 2017, 09:14:16 PM »
WD can be set to do that already
see in the ftp/internet setup, metar/synop

Offline mihec

  • Posts: 204
  • OS/Browser:
  • (Linux Mint)
  • Firefox 56.0
Re: Generate METAR
« Reply #2 on: January 01, 2018, 11:24:46 AM »
Thanks, I set that and it is generating data in a METAR file. Is it possible to use a "metar" %tag% that I could include in a html file?

BTW: Happy New Year!

Offline Weather Display

  • Posts: 84,483
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.84
    • Weather Display
Re: Generate METAR
« Reply #3 on: January 01, 2018, 05:54:42 PM »
from the tagslist.txt file
%metar/report=%NZAA.MET     Insert downloaded METARS or weather reports/warnings.
                  Please replace NZAA.MET with the file name downloaded.Note: use <pre> and </pre> html tags

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,331
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.84
Re: Generate METAR
« Reply #4 on: January 01, 2018, 06:38:36 PM »
I couldn't make that tag work with a metar ZZZZ.MET file in the /metar directory. Also I question whether it is intended to work with a WD generated metar.txt in the /synopmetar directory.

OTOH one of the %loadfile% tags which allow selection of the directory and filename will work fine for this purpose.

 

cumulus