-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What
Convert Arcadia's Tariff JSON for ConEd's Rate I to valid URDB format.
Why
We tf to output all tariffs in a consistent format by default, no matter the provider. URDB is a good choice, due to it's interoperability with other tools.
How
- Understand the Rate I Tariff JSON by reading our tariff wiki docs and generally referring to the Signal Tariffs API docs.
- Read our tariff wiki guide to the URDB JSON format
- Write down, possibly with the help of an LLM, what the URDB version of this tariff should look like
- Once you've done this exercise, you can check against the official URDB representation of Rate I. Please only check the "answer" once you've done it for yourself—the point is to understand the URDB format and uncover conversion logic by doing the conversion "by hand."
- Also note that the rate in URDB might contain slightly different values that the one in Aradia, starting with the fact that URDB has a different tariff for every ConED zone: here is the one for Rate I in ConEd Zone J
- Write an python utility function that can take in the Rate I Tariff JSON and spit out a correct URDB version of the Tariff
- Write tests for this function
- Expose a simple CLI for this function
Deliverables
- Release of
tfthat includes the utility function and CLI - Docs on how to use the utility function and CLI
- Tests that check the correctness of converting Rate I between Arcadia and URDB format
Anti-deliverables
- No need to "auto-convert" Arcadia tariffs to URDB when using tariff-fetch yet, we want to make sure it's working well for a number of tariff first
Metadata
Metadata
Assignees
Labels
No labels