[pybot-commits] CVS: pybot/pybot/modules weather.py,1.3,1.4
Brought to you by:
niemeyer
|
From: Gustavo N. <nie...@us...> - 2003-08-28 12:35:02
|
Update of /cvsroot/pybot/pybot/pybot/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv20746
Modified Files:
weather.py
Log Message:
Cloud information is not always available.
Index: weather.py
===================================================================
RCS file: /cvsroot/pybot/pybot/pybot/modules/weather.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** weather.py 28 Aug 2003 12:23:33 -0000 1.3
--- weather.py 28 Aug 2003 12:34:55 -0000 1.4
***************
*** 69,73 ****
r.getStationCountry(), station.upper(),
r.getISOTime()))
! l.append("%s," % r.extractCloudInformation()[0].lower())
l.append("temperature of %.2fC (%.2fF)," %
(r.getTemperatureCelsius(),
--- 69,74 ----
r.getStationCountry(), station.upper(),
r.getISOTime()))
! if r.getSkyConditions():
! l.append("%s," % r.getSkyConditions()[0].lower())
l.append("temperature of %.2fC (%.2fF)," %
(r.getTemperatureCelsius(),
|