Pijush2023 commited on
Commit
7f0a988
·
verified ·
1 Parent(s): 5dd9897

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -148,8 +148,10 @@ def fetch_local_events():
148
 
149
  def fetch_local_weather():
150
  try:
 
151
  api_key = os.environ['WEATHER_API']
152
- url = f'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/omaha?unitGroup=metric&include=events%2Calerts%2Chours%2Cdays%2Ccurrent&key={api_key}'
 
153
  response = requests.get(url)
154
  response.raise_for_status()
155
  jsonData = response.json()
 
148
 
149
  def fetch_local_weather():
150
  try:
151
+ api_key1 = os.environ['WEATHER_API1']
152
  api_key = os.environ['WEATHER_API']
153
+ url=f'http://api.openweathermap.org/data/2.5/forecast?id=524901&appid={api_key1}'
154
+ # url = f'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/omaha?unitGroup=metric&include=events%2Calerts%2Chours%2Cdays%2Ccurrent&key={api_key}'
155
  response = requests.get(url)
156
  response.raise_for_status()
157
  jsonData = response.json()