Imports data from the Itaipu API. (since 2021.01).
The downloaded data does not contain a location Id, therefore it has to be configured as a property key.
Config example:
<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd">
<import>
<general>
<importType>ItaipuSchedule</importType>
<serverUrl>https://dummy_hostname/BDH/api/rest</serverUrl>
<connectionTimeOutMillis>100000</connectionTimeOutMillis>
<user>doen't matter</user>
<password>dummy_password</password>
<relativeViewPeriod unit="day" start="-1" end="1" startOverrulable="true" endOverrulable="true"/>
<idMapId>ItaipuSchedule</idMapId>
<missingValue>-999.0</missingValue>
<importTimeZone>
<timeZoneOffset>-03:00</timeZoneOffset>
</importTimeZone>
<expiryTime unit="day" multiplier="90"/>
</general>
<properties>
<string key="locationId" value="UHEITAAFL"></string>
</properties>
<timeSeriesSet>
<moduleInstanceId>ItaipuSchedule</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>parameter</parameterId>
<locationId>UHEITAAFL</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="hour" multiplier="1"/>
<readWriteMode>add originals</readWriteMode>
<synchLevel>1</synchLevel>
</timeSeriesSet>
</import>
</timeSeriesImportRun> |
The import loops through all the variable and imports them. for the same location as configured.
Example Json:
{
"schedule":[
{
"dhFim":"2021-04-24T00:30:00-03:00",
"dhInicio":"2021-04-24T00:00:00-03:00",
"flDadoRealizado":0,
"vlAfluAguasAbajo":974,
"vlAfluEmbalse":5900,
"vlCaudalR11":7285.68,
"vlCaudalTurbinado":6055,
"vlCaudalTurbinado50":3027.5,
"vlCaudalTurbinado60":3027.5,
"vlCaudalVertido":0,
"vlDescarga":6055,
"vlGeneracion50":3500,
"vlGeneracion60":3300,
"vlGeneracionTotal":6800,
"vlNivelCanalFuga":96.7151,
"vlNivelEmbalse":218.407,
"vlNivelR11":93.8977,
"vlNivelR11Ipu":93.9163,
"vlSaltoBruto":121.692,
"vlUgsDespachadas50":5,
"vlUgsDespachadas60":5,
"vlVarR11Dia":1.0976,
"vlVarR11Hora":-0.0434,
"vlVarR11IpuDia":0.8563,
"vlVarR11IpuHora":-0.0134
},
{
"dhFim":"2021-04-24T01:00:00-03:00",
"dhInicio":"2021-04-24T00:30:00-03:00",
"flDadoRealizado":0,
"vlAfluAguasAbajo":974,
"vlAfluEmbalse":5900,
"vlCaudalR11":7253.28,
"vlCaudalTurbinado":6053,
"vlCaudalTurbinado50":3026.5,
"vlCaudalTurbinado60":3026.5,
"vlCaudalVertido":0,
"vlDescarga":6053,
"vlGeneracion50":3500,
"vlGeneracion60":3300,
"vlGeneracionTotal":6800,
"vlNivelCanalFuga":96.6825,
"vlNivelEmbalse":218.407,
"vlNivelR11":93.8571,
"vlNivelR11Ipu":93.9163,
"vlSaltoBruto":121.724,
"vlUgsDespachadas50":5,
"vlUgsDespachadas60":5,
"vlVarR11Dia":1.0976,
"vlVarR11Hora":-0.0434,
"vlVarR11IpuDia":0.8563,
"vlVarR11IpuHora":-0.0134
}
]
} |