Update utility rate downloads to URDB v8 to fix #743#760
Conversation
https://openei.org/services/doc/rest/util_rates/?version=8 Adds three new variables (all unused by SAM): lookbackMonths lookbackPercent lookbackRange Removes one variable (also unused): demandratchetpercentage
sjanzou
left a comment
There was a problem hiding this comment.
Looks good and works with a few rates I tested.
brtietz
left a comment
There was a problem hiding this comment.
The new items should be used to populate the billing demand inputs as per the issue description: #743
The URDB search query is based on version 7, so it's hard to find rates with these new values. Here's an example with lookbackRange: https://openei.org/apps/IURDB/rate/view/5f73585d5457a3dc0b692d6f#2__Demand
I'm fine with lookbackMonths going to unused items, but lookbackRange and and lookbackPercent should be populating ur_billing_demand_lookback_period and ur_billing_demand_lookback_percentages, respectively.
|
Looking at this more, I'm not sure we can rely on lookbackRange and lookbackPercent values in URDB v8. Should we use those values to populate ur_billing_demand_lookback_period and ur_billing_demand_lookback_percentages anyway? One alternative would be to display a message if the URDB has lookback data suggesting that the user check the rate sheet to correctly populate the demand billing inputs manually. Below is the result of my study of 3 rates in URDB v8. Village of Holbrook Nebraska Rate 9https://openei.org/apps/USURDB/rate/view/53a19c105257a3d708077749#2__Demand Notes
From URDBFrom rate sheet
Arizona Public Service E-32 L Secondaryhttp://www.aps.com/library/rates/E-32TOUL.pdf https://openei.org/apps/USURDB/rate/view/5a5e2d055457a3e16be429d1#2__Demand Notes
From URDBFrom rate sheet
Georgia Power Co PLL-11https://openei.org/apps/IURDB/rate/view/5f73585d5457a3dc0b692d6f#2__Demand Notes
From URDBFrom rate sheet
|
* Download URDB lookback percent and lookback range to Billing Demand inputs. * Add URDB demand reactive power charge to Unused inputs. * Automatically enable demand charges and billing demand when URDB rate includes them. * When URDB contains lookback data, display UI message box advising user to check Billing Demand inputs.
|
@brtietz Let me know what you think of these latest commits. |
brtietz
left a comment
There was a problem hiding this comment.
Looks great! I think this is ready to merge at this point.
To test this pull request, temporarily replace for
urdb_rates,urdb_companies, andurdb_companies_by_zipin webapis.conf with a valid NREL developer API key. **DO NOT COMMIT THIS TO THE SAM REPOSITORY **. Or, build a version of SAM from SAM-private.URDB v8 URL
https://openei.org/services/doc/rest/util_rates/?version=8
Differences between v8 and v7
Request parameters have not changed between v7 and v8.
v8 has three new response fields for billing demand, none of which SAM uses for bill calculations:
One response field is in v7 but not v8:
The following rate has lookbackPercent and lookbackMonths for testing (both are unused by SAM):
Arizona Public Service
Large General Service TOU (E-32 L) Secondary
https://openei.org/apps/USURDB/rate/view/5a5e2d055457a3e16be429d1l
There are no rates in the URDB with lookbackRange
No results from query (at bottom of https://openei.org/apps/IURDB/)