Quick check of the weather-au forecasts

This commit is contained in:
Paul Warren 2022-01-29 08:03:03 +11:00
parent 727eb38bbc
commit 44e5191999
1 changed files with 6 additions and 0 deletions

6
quick_check.py Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
from weather_au import api
w = api.WeatherApi(search="Longley+Tas")
for f in w.forecasts_daily():
print(f['date'], f['icon_descriptor'], f['temp_max'], f['temp_min'])