Skip to content

Commit

Permalink
removed suncalc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
coinish committed May 23, 2023
1 parent 040e156 commit 230f1bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion met_weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
import datetime
from dateutil import tz

import warnings
warnings.filterwarnings("ignore", category=RuntimeWarning)



def get_now(lon, lat):
now= datetime.datetime.now().astimezone(datetime.timezone.utc)
local_timezone_name= get_local_timezone_name(lon, lat)
Expand Down Expand Up @@ -291,4 +296,4 @@ def make_default_icon_dirs():
print(precipitationRate)
probOfPrecipitation= [t['probOfPrecipitation']/100.0 for t in timeSeries[idx:][:24]]
print ("probOfPrecipitation:")
print(probOfPrecipitation)
print(probOfPrecipitation)

0 comments on commit 230f1bb

Please sign in to comment.