9 def _getRawForecastData(self, period, site, **other):
11 params[
'res'] = period
26 d = data[
'SiteRep'][
'Wx'][
'Param']
29 result[item[
'name']] = (item[
'$'], item[
'units'])
32 def _translateUnits(self, fcdata, decoder):
36 rep[
'V'] = constants.VISIBILITY[rep[
'V']]
37 rep[
'W'] = constants.WEATHER_TYPES[int(rep[
'W'])]
41 tmp.append((decoder[k][0], rep[k], decoder[k][1]))
43 result.append((rep[
'$'], tmp))
48 def _getDailyForecastData(self, site, **params):
51 dv = data[
'SiteRep'][
'DV'][
'Location'][
'Period']
57 result.append((date, fcast))
60 def _get3HourlyForecastData(self, site, **params):
63 dv = data[
'SiteRep'][
'DV'][
'Location'][
'Period']
69 result.append((date, fcast))
72 def getDailyForecastPlace(self, place, index=0):
74 data = pls.places[index].getLatLon()
77 def get3HourlyForecastPlace(self, place, index=0):
79 data = pls.places[index].getLatLon()
82 def getDailyForecastId(self, id):
86 def get3HourlyForecastId(self, id):