Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » [Want] Simple METAR parsing script
Search Topic:
Uniqs:
382
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
NVIDIA TNT2 and ancient Gateway »
« 64 bit 32 bit?  
AuthorAll Replies


Vchat20
Landing is the REAL challenge

join:2003-09-16
Warren, OH

[Want] Simple METAR parsing script

This little 'wild goose chase' has been bugging me the past few days. I've been trying to track down a real simple script in any usable language (php, perl, python, bash scripting, etc.) that I could incorporate into a project I'm working on.

Unfortunately so far I have only come across one script that will do it and give me the information I want and that's the metar-extended.php script included in Pear's Services_Weather package. Sadly, it's way beyond overkill for my needs and I quickly got burned out after trying to get it all working with lighttpd, setting up the mysql tables it wanted, installing pear packages and dependencies, and finally debugging some retarded errors in the example script. All for desiring a simple METAR parser.

Anyone else know of anything else out there that falls in line here but is more self contained and simplistic in nature? Doesn't have to be PHP. Can be perl, python, or any other language I can get running in a *nix environment with ease.

Thanks.

P.S. TAF parsing's also a plus.
--
I swear, some people should have pace-makers installed to free up the resources. Breathing and heart beat taxes their whole system, all of their brain cells wasted on life support.-two bit brains, and the second bit is wasted on parity! ~head_spaz


usa2k
Please PRAY for Rebekah
Premium,MVM
join:2003-01-26
Canton, MI
clubs:
 Re: [Want] Simple METAR parsing script

»en.wikipedia.org/wiki/METAR

OK, so this is aviation weather. Don't know anything about that.

Wondering if you tried the »Weather forum?

netjunk

join:2002-02-20
Centreville, VA

reply to Vchat20
Re: [Want] Simple METAR parsing script

said by Vchat20 See Profile :

All for desiring a simple METAR parser.
If it's simple, then you can create one yourself. Wikipedia link usa2k posted above seems to have the necessary information on its format so you can just write a script to parse it.


rec9140
Provoice just DO it

join:2003-07-29
Mulberry, FL

edit:
August 31st, @01:37PM

reply to Vchat20
Metar.py

For python:

»notabilis.org/code/?METAR

»www.schwarzvogel.de/software-pymetar.shtml


rec9140
Provoice just DO it

join:2003-07-29
Mulberry, FL
·RoadRunner Cable

reply to Vchat20
PHP:

»woody.cowpi.com/phpscripts/

»pear.php.net/package/Services_We···php.html

»www.trebax.dk/php/php/phpweather···_udv.php

»phpweather.sourceforge.net/docs/···sing.php
--
Ban all copyright, trademarks, and IP laws!//Lorem ipsum ei pro stet equidem labores, at enim animal expetenda nec. Ea vix argumentum dissentiunt, usu esse ridens ex.


Vchat20
Landing is the REAL challenge

join:2003-09-16
Warren, OH

reply to Vchat20
Well, the pear.php.net and phpweather links are what I referred to in my original post which was what I was trying to avoid namely due to the ugly requirement of a separate package running on the system and it's own mysql database to store every METAR station known when I just desire parsing from one.

Though, getWX from »woody.cowpi.com/phpscripts/ seems to be exactly ideal and what I was looking for: A single, very simple and tiny php script which does one thing: Parses the METAR string on the fly from the station I specify.
--
I swear, some people should have pace-makers installed to free up the resources. Breathing and heart beat taxes their whole system, all of their brain cells wasted on life support.-two bit brains, and the second bit is wasted on parity! ~head_spaz


rec9140
Provoice just DO it

join:2003-07-29
Mulberry, FL
·RoadRunner Cable

said by Vchat20 See Profile :
Well, the pear.php.net and phpweather links are what I referred to in my original post which was what I was trying to avoid namely due to the ugly requirement of a separate package running on the system and it's own mysql database to store every METAR station known when I just desire parsing from one.

If you only want to parse the one station, then I would look at the Python ones.

These are used by Conky to pull out the data for a .conkyrc file.
--
Ban all copyright, trademarks, and IP laws!//Lorem ipsum ei pro stet equidem labores, at enim animal expetenda nec. Ea vix argumentum dissentiunt, usu esse ridens ex.
-
Forums » Tech and Talk » OS and Software » All Things UnixNVIDIA TNT2 and ancient Gateway »
« 64 bit 32 bit?  


Tuesday, 02-Dec 07:04:52 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9 years online! © 1999-2008 dslreports.com.
page compression OFF
Most commented news this week
· [95] AT&T Metered Billing Trial Hits Second Market
· [71] UDP BitTorrent Will Destroy The Interwebs!
· [57] Comcast Tries To Slow Verizon's Philly Entry
· [17] FCC To Vote On Free National Wireless Broadband
· [14] Clearwire May Slow WiMax Build
· [8] Embarq Rejected Higher Offer
· [7] Hawaii Telecom Files For Bankruptcy
· [6] Monday Evening Links
· [0] Tuesday Morning Links
Most people now reading
· Is this a good thing for the net? [news,99366]
· Level 80 PVP gear info? [World of Warcraft]
· Java SE Runtime Environment (JRE) 6 Update 11 [Security]
· Notice, new uTorrent Alpha may be able to evade throttling [TekSavvy]
· Play .avi file on TV's DVD player? [Audio/Video Chat]
· Coalition Government Possible? [TekSavvy]
· [WotLK] PVP gear at 80 [World of Warcraft]
· [Info] DGL-4500 New 1.15 Firmware [D-Link]
· 80 done, Naxx cleared.....can you say WOW...GG? [World of Warcraft]
· Why does the USA have such a high divorce rate? [General Questions]