]> git.somenet.org - pub/jan/pyWH1080.git/commitdiff
remove human readable wind dir. master
authorSomeone <someone@somenet.org>
Mon, 23 Jan 2023 18:09:30 +0000 (19:09 +0100)
committerSomeone <someone@somenet.org>
Mon, 23 Jan 2023 18:09:30 +0000 (19:09 +0100)
fetch_data.py

index e862b2c92d7a37fc663d37594de82baa01304227..0173aae183a58afe594ba82f826482c86e8a037e 100755 (executable)
@@ -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('}')