  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 : 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 : 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. |
|