Package: python-pymetar Version: 0.12-2.3 Severity: normal Tags: patch
Hello you'll find here a patch that adds the needed information to parse the NSC cloud condition message -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-1-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-pymetar depends on: ii python 2.4.4-6 An interactive high-level object-o ii python-support 0.6.4 automated rebuilding support for p python-pymetar recommends no packages. -- no debconf information
--- /usr/share/python-support/python-pymetar/pymetar.py 2006-10-27 02:04:36.000000000 +0200 +++ /home/nicoe/python/pymetar.py 2007-08-30 10:34:24.000000000 +0200 @@ -65,7 +65,7 @@ Please e-mail bugs to: %s""" % (__version__, __author__) -CLOUD_RE_STR= r"^(CAVOK|CLR|SKC|BKN|SCT|FEW|OVC)([0-9]{3})?$" +CLOUD_RE_STR= r"^(CAVOK|CLR|SKC|BKN|SCT|FEW|OVC|NSC)([0-9]{3})?$" COND_RE_STR = r"^(-|\\+)?(VC|MI|BC|PR|TS|BL|SH|DR|FZ)?(DZ|RA|SN|SG|IC|PE|GR|GS|UP|BR|FG|FU|VA|SA|HZ|PY|DU|SQ|SS|DS|PO|\\+?FC)$" class EmptyReportException(Exception): @@ -668,7 +668,7 @@ wcloud = self.match_WeatherPart(CLOUD_RE_STR) if wcloud is not None : stype = wcloud[:3] - if (stype == "CAV") : + if stype in ("CAV", "NSC") : self.Report.sky = "clear" return ("Clear sky", "sun") elif (stype == "CLR") or (stype == "SKC") :