Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather forecast sometimes fails to get any data #29

Open
dchassin opened this issue Mar 24, 2023 · 0 comments
Open

Weather forecast sometimes fails to get any data #29

dchassin opened this issue Mar 24, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dchassin
Copy link
Member

Problem description

Sometimes the noaa_forecast command results in the following error:

bash$ gridlabd noaa_forecast -p=45.62,-122.70 -c=test.csv
Traceback (most recent call last):
  File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/opt/gridlabd/4.3.1-221013-develop_add_default_glm/share/gridlabd/noaa_forecast.py", line 242, in <module>
    writeglm(getforecast(float(position[0]),float(position[1])),glm,name,csv)
  File "/usr/local/opt/gridlabd/4.3.1-221013-develop_add_default_glm/share/gridlabd/noaa_forecast.py", line 126, in getforecast
    raise Exception(f"data does not contain required properties information (data={data})")
Exception: data does not contain required properties information (data={'correlationId': '323060', 'title': 'Unexpected Problem', 'type': 'https://api.weather.gov/problems/UnexpectedProblem', 'status': 500, 'detail': 'An unexpected problem has occurred. If this error continues, please contact support at sdb.support@noaa.gov.', 'instance': 'https://api.weather.gov/requests/323060'})

Expected behavior

Normally it should just create the file test.csv:

datetime,temperature[degF],wind_speed[m/s],wind_dir[deg]
2023-03-24 07:00:00,38.0,3.1,225.0
2023-03-24 08:00:00,37.4,3.1,228.9
2023-03-24 09:00:00,37.0,3.1,225.0
2023-03-24 10:00:00,36.8,3.1,213.4
...
@dchassin dchassin added the bug Something isn't working label Mar 24, 2023
@dchassin dchassin self-assigned this Mar 24, 2023
@dchassin dchassin transferred this issue from arras-energy/gridlabd-old Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Issue
Development

No branches or pull requests

1 participant