#!/usr/bin/python -tt # -*- coding: iso-8859-15 -*- # # Copyright (C) 2006 - Rodolphe Quiedeville # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; version 2 dated June, # 1991. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # $Log$ # Revision 1.0 2006/05/24 15:17:01 rodo # Created by Rodolphe Quiedeville # # Magic markers #%# capabilities=autoconf #%# family=auto ## EDIT station to you ICAO code ## station="LFRN" ## DO NOT EDIT UNDER THIS LINE ## __version__="2.1" import pymetar import sys rf=pymetar.ReportFetcher(station) rep=rf.FetchReport() rp=pymetar.ReportParser() pr=rp.ParseReport(rep) print pr.fullreport