From 84a665e7a49712930da0c0e0a23c349188037755 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 23 Jan 2023 19:09:30 +0100 Subject: [PATCH] remove human readable wind dir. --- fetch_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('}') -- 2.43.0