xomatic commited on
Commit
3a195e9
·
verified ·
1 Parent(s): f44eb37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -41,7 +41,16 @@ def get_local_timezone() -> str:
41
 
42
  @tool
43
  def get_hourly_weather(latitude: float, longitude: float, timezone: str) -> list:
44
- """Fetch hourly weather forecast for next 24 hours including uncertainty bands."""
 
 
 
 
 
 
 
 
 
45
  try:
46
  url = "https://api.open-meteo.com/v1/forecast"
47
 
 
41
 
42
  @tool
43
  def get_hourly_weather(latitude: float, longitude: float, timezone: str) -> list:
44
+ """Fetch hourly weather forecast for next 24 hours including uncertainty bands.
45
+ Args:
46
+ latitude: The latitude of the location.
47
+ longitude: The longitude of the location.
48
+ timezone: The IANA timezone string (e.g., 'America/Los_Angeles').
49
+
50
+ Returns:
51
+ A list of hourly weather data points with temperature, precipitation,
52
+ uncertainty bounds, and weather codes.
53
+ """
54
  try:
55
  url = "https://api.open-meteo.com/v1/forecast"
56