Skip to content

Commit

Permalink
Added a bunch of fields from WWO
Browse files Browse the repository at this point in the history
  • Loading branch information
hyakuhei committed Apr 16, 2015
1 parent 7d1686d commit e77c268
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions WeatherScraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ def getConditions(self,lat,lon):
response['windDirection']=weather['winddirDegree']
response['windSpeedKnots']=self.milesToKnots(weather['windspeedMiles'])
response['windBeaufort']=self.milesToBeaufort(weather['windspeedMiles'])
sunrise,sunset,swellHeight_m,sigHeight_m,swellDir16Point,swellDir,swellPeriod_secs,waterTemp_C
response['sunrise']=weather['sunrise']
response['sunset']=weather['sunset']
response['swellHeight']=weather['swellHeight_m']
response['waveHeight']=weather['sigHeight_m']
response['swellDir16pt']=weather['swellDir16Point']
response['swellDir']=weather['swellDir']
response['swellPeriod']=weather['swellPeriod_secs']
response['waterTemp']=weather['waterTemp_C']

#Attempt to scrape the BBC website for tidal info - works only for UK
if not self.locatedInUK(float(lat),float(lon)):
Expand Down

0 comments on commit e77c268

Please sign in to comment.