Spaces:
Sleeping
Sleeping
Update data_fetcher.py
Browse files- data_fetcher.py +1 -1
data_fetcher.py
CHANGED
|
@@ -10,7 +10,7 @@ if not NREL_API_KEY:
|
|
| 10 |
|
| 11 |
def fetch_nrel_data():
|
| 12 |
"""Fetch real-time hydrogen station data from NREL API."""
|
| 13 |
-
url = f"https://developer.nrel.gov/api/hydrogen/v1/stations.json?api_key={
|
| 14 |
|
| 15 |
try:
|
| 16 |
response = requests.get(url, timeout=10) # Timeout added for reliability
|
|
|
|
| 10 |
|
| 11 |
def fetch_nrel_data():
|
| 12 |
"""Fetch real-time hydrogen station data from NREL API."""
|
| 13 |
+
url = f"https://developer.nrel.gov/api/hydrogen/v1/stations.json?api_key={NREL_API_KEY}"
|
| 14 |
|
| 15 |
try:
|
| 16 |
response = requests.get(url, timeout=10) # Timeout added for reliability
|