- fixed measurement_point adquisition
- added magnitud attribute to f1_reactive_energy_kVArh
- Improve invoices collection by searching them by contract_id
- Fix missing download filters for cch curves
- Curve types (
tg_val
,tg_fact
...) and curve backends (mongo/timescale) are now decoupled and backends can be configured for each type on runtime - Indirect curve backends using ERP as proxy to access mongo or timescale have
been dropped in favour of direct mongo and timescale backends
- ERP backends had problems with large ids and they failed to lookup CUPS with different frontier point code (final 2 digits of the CUPS)
- All CCH curves behave now like P5D (notably P2, gennetabeta and autocons)
- Filter
to_
includes de first measure taken the next day (at local 00:00) - Filter
from_
includes the first measure taken that day (at local 00:00) althought its measuring period belongs to the day before. Notice that if you call the api for consecutive dates intervals that measure at 00:00 will be repeated in both responses. - Output attribute
date
is not the measuring time but the start of the measuring period - ie. If at T2 we measure the kWh consumed since T1,
date
means T1 - Some curves (gennetabeta and autocons) informed T2
- Some other curves (P2) informed T2-1h to get T1 but for them T1 = T2-15minutes
- Output attribute
date
timezone is UTC (some curves used local Madrid TZ) - Uninformed fields now are
null
instead offalse
- Filter
- Deploy notes:
- New dependencies added, pip install required
- New
ERP_DB_CONF
configuration to connect directly to the ERP db - New config variable
CURVE_TYPE_DEFAULT_BACKEND
to set a default curve backend:mongo
ortimescale
. - New config variable
CURVE_TYPE_BACKENDS
to change the default curve backend for each type of curve.
- Move all logic to obtain the tariff prices to ERP
- Adapt tariff endpoints according to ERP function
- Open tariff endpoint
- Move tariff prices of a contract from tariff view to contracts view
- fixed mock server
- Added cch curves
tg_gennetabeta
andtg_cchautocons
- Fix: empty points were returned if the name/CUPS was different
- Breaking change: all curves include the
to_
date - Security: Limit the jwt decoding algorithms to avoid using RAW
- This would enable an attacker bypassing token signature check by crafting a token whose signature is set to RAW
- TgCchP1 reads from tg_p1 collection
- F1 curves now are obtained from ERP instead of access directly to mongo
- Added attribute "tipo_medida" to contract information
- Add the magnitud of active energy (if its AE or AS)
- updated dependencies versions
- adapted code to that dependencies
- reimplemented report processing
- a lot of bugs fixed
- improved perfomance
- Adapted endpoints to new tolls
- Authentication fixes in report endpoint
-
endpoint reports:
- Post contracts to be processed
- Download and save report information
-
enpoint cch:
- Add new filter: get cch by download date
- Fix bugs:
- get only 20 digits of cups
- add cch type to pagination request
- endpoint modcontracts:
- get modcontracts by contractId
- make more intuitive to filter canceled contracts, now it takes into account end date of the contract and not the initial date
- endpoint contracts: return self-consumption type instead of True or False
- add number of total results to response for all endpoints
- Added tertiaryPowerHistory to contracts and modcontracts response
- Added f5d endpoint
- Support for parallel requests to one ERP
- Fixed minor bugs
- Implemented pagination results for all endpoints
- Add tariff to the f1 object
- kW/day -> kW
- New endpoint to get all contractual modifications
- Fix F1 filter by contractId
- Now we can filter invoices by date when getting when filtering by contractId
- Add extra filter to contract and f1 endpoints