from electricitycostcalculator.electricity_rate_manager.rate_manager import ElectricityRateManager
from electricitycostcalculator.openei_tariff.openei_tariff_analyzer import *
tariff_openei_apidata = OpenEI_tariff(utility_id='17609',
sector='Commercial',
tariff_rate_of_interest='Time of Use, General Service, Demand Metered, Option D: GS-2 TOU D, Three Phase (Under 2 kV)',
distrib_level_of_interest=None,
# it is at the secondary level, so not specified in the name
phasewing=None,
# the word 'Poly' is to be excluded, because the names may omit this info ..
tou=True,
option_exclusion=['Poly']) # Need to reject the option X and W
tariff_openei_apidata.call_api(store_as_json=False)
entry_count = len(tariff_openei_apidata.data_openei)
print(entry_count)
for entry in tariff_openei_apidata.data_openei:
print(entry['label'])
1
5c9114ea5457a37e5307bc77