Cambium api additions#669
Conversation
working version of API Form, msgbox output
Added tooltips and target for api copy
Includes changes to default files for merchant plant cases as well as the UI pages related to the cambium API itself (after passing test_script_ow.lk)
Added incrementing year option to the cambium year selection input.
all defaults have been merged without test script conflict
everything seems to check out
|
|
Thanks, Stephen. The project_uuid is fine where it is -- I just wanted to make sure we are not storing API keys in the UI callback code. |
Removed Financial Merchant Plant and unused Financial Capacity Tab UI forms Removed colons from labels Consolidated on_load function (it was perfectly transferrable, though it seems to negligibly slow down the tab load times) API url info moved to webapi.conf, project_uuid remains in callback code
sjanzou
left a comment
There was a problem hiding this comment.
Please remove the .txt file per comments and move the uuid to private.h in SAM-private as used for the so that the SAM Cambium key is "hidden" from webapis.conf. What will the final defaults used be - hourly, single value and then populated by Cambium? Great Work!
updated verbage for Cambium description to reflect how Cambium defines its data
Add title property to tooltip widget.
New sample script to download cambium data to PPA models.
|
If the uuids are used for the different years, then, yes - definitely okay
to have in the webapis.conf.
Thanks for the clarification.
…On Wed, 20 Oct 2021 at 16:35, Paul Gilman ***@***.***> wrote:
Please remove the .txt file per comments and move the uuid to private.h in
SAM-private as used for the so that the SAM Cambium key is "hidden" from
webapis.conf. What will the final defaults used be - hourly, single value
and then populated by Cambium? Great Work!
@sjanzou <https://github.com/sjanzou> This "uuid" does not appear to be a
secret API key. It is a project ID and appears in the URL when you browse
to the Cambium site on the web. Each year in the database is a separate
"project" with its own UUID. For example, the 2020 database is at
https://cambium.nrel.gov/?project=579698fe-5a38-4d7c-8611-d0c5969b2e54&mode=view&layout=Default%20Layout,and
the 2019 database is at
https://cambium.nrel.gov/?project=80f470e3-419f-4bbd-92de-0bd9877a9ab7&mode=view&layout=Default
.
Given that this is a public ID, I think it is OK to have it in the
callback and webapis.conf. Do you agree?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#669 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRSQBYZKKOTDSEA332OGIDUH47Z3ANCNFSM5BDCWB7A>
.
|


I just merged develop, fixed conflicts, and ran the test script, the results came out clean and everything seems to be working fine so let me know if there's anything you spot that needs fixing/updating.
LK/WEX/SSC branch names are all also cambium_api_additions, I'll create separate pull requests for those I guess