From: Someone Date: Mon, 23 Jan 2023 18:09:30 +0000 (+0100) Subject: remove human readable wind dir. X-Git-Url: https://git.somenet.org/pub/jan/pyWH1080.git/commitdiff_plain remove human readable wind dir. --- diff --git a/fetch_data.py b/fetch_data.py index e862b2c..0173aae 100755 --- a/fetch_data.py +++ b/fetch_data.py @@ -10,7 +10,7 @@ import datetime VENDOR = 0x1941 PRODUCT = 0x8021 -WIND_DIRS = ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW'] +#WIND_DIRS = ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW'] def open_ws(): @@ -138,7 +138,7 @@ def main(): print('"gust_speed": "%2.1f",' %gust_speed) if wind_dir != 128: print('"wind_dir_deg": "%s",' %(wind_dir*22.5)) - print('"wind_dir": "%s",' %WIND_DIRS[wind_dir]) +# print('"wind_dir": "%s",' %WIND_DIRS[wind_dir]) print('"TS": "%s"' %(datetime.datetime.utcnow().isoformat())) print('}')