Update Cambium to 2023 and Handle Changes in API Response#1889
Conversation
brtietz
left a comment
There was a problem hiding this comment.
This works great! Very clear error messages. I also tested it with the 2022->2023 cambium version, and it correctly updates to the new ISO regions (not states)
Do you want to update the url in webaips.conf in this PR or later? The 2023 API is https://scenarioviewer.nrel.gov/api/project/detail/?uuid=0f92fe57-3365-428a-8fe8-0afc326b3b43
Yes. I'll do that. I was looking for that UUID -- where did you find it? |
Luckily, the UUID in API is the same as the project field in the GUI from https://scenarioviewer.nrel.gov/ |
Ah! Nice find. Thanks. |
Description
Updates from Cambium 2022 to Cambium 2023.
Fixes Out-of-date Cambium metadata variable prevents downloads from working #1786
Goes with https://github.com/NREL/SAM-private/pull/113
"Cambium API Parameters" inputs on the Revenue page for Merchant Plant configurations uses list boxes to display options for downloading price data from Cambium API. These options are populated by downloading metadata from the API (in a step before downloading the actual price data). The metadata API has changed over time, so old SAM files may have options that are no longer available, which causes the API to return an error when the user clicks the Download button, preventing Cambium downloads from working.
This PR modifes the Cambium download UI callback script to compare the inputs in SAM with the latest API metadata, and refreshes the SAM inputs if the metadata is different from the inputs It also displays messages notifying the user of which inputs need to be updated.
See #1786.
To test:
SAM should prompt you to update the metadata and then download price data without an API error.
Type of change
Please delete options that are not relevant.
Checklist:
If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.