Skip to content

Commit

Permalink
Revert to imperial units for MetOffice uploads
Browse files Browse the repository at this point in the history
In an email to me the Met Office revealed that the metric units listed
in their API don't work and the don't know when this will be fixed.

Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
  • Loading branch information
jim-easterbrook committed May 16, 2018
1 parent 8488377 commit 10bccbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/pywws/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '18.5.0'
_release = '1526'
_commit = '68486c4'
_release = '1527'
_commit = '8488377'
14 changes: 7 additions & 7 deletions src/pywws/service/metoffice.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ class ToService(pywws.service.BaseToService):
#live#
#idx "'dateutc' : '%Y-%m-%d %H:%M:%S',"#
#wind_dir "'winddir' : '%.0f'," "" "winddir_degrees(x)"#
#wind_ave "'windspeedms': '%.1f',"#
#wind_gust "'windgustms' : '%.1f',"#
#wind_ave "'windspeedmph': '%.2f'," "" "wind_mph(x)"#
#wind_gust "'windgustmph' : '%.2f'," "" "wind_mph(x)"#
#hum_out "'humidity' : '%.d',"#
#temp_out "'tempc' : '%.1f',"#
#rel_pressure "'mslphpa' : '%.1f',"#
#calc "dew_point(data['temp_out'], data['hum_out'])" "'dewptc': '%.1f',"#
#calc "rain_hour(data)" "'rainmm': '%.1f',"#
#calc "rain_day(data)" "'dailyrainmm': '%.1f',"#
#temp_out "'tempf' : '%.1f'," "" "temp_f(x)"#
#rel_pressure "'baromin' : '%.4f'," "" "pressure_inhg(x)"#
#calc "temp_f(dew_point(data['temp_out'], data['hum_out']))" "'dewptf': '%.1f',"#
#calc "rain_inch(rain_hour(data))" "'rainin': '%g',"#
#calc "rain_inch(rain_day(data))" "'dailyrainin': '%g',"#
"""

def __init__(self, context):
Expand Down

0 comments on commit 10bccbf

Please sign in to comment.