Available since 2020.02.

Imports data from  http://sgeprd.ute.com.uy/rsge/Hidrologia/UteSis.Hidrologia.InterfazServicios.svcServiciosPublicos.svc


The service providing the data can only return 5 days worth of information in one call, but FEWS will loop through the configured period of timeand make several calls if it is necessary.

Response time of the service can be somewhat long, it is best not to set the connection timeout too low.

Configuration example:

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2014 rel. 2 sp1 (http://www.altova.com) by Afdeling ICT (Stichting Deltares) -->
<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>UyUteConventional</importType>
         <serverUrl>http://sgeprd.ute.com.uy/rsge/Hidrologia/UteSis.Hidrologia.InterfazServicios.svcServiciosPublicos.svc</serverUrl>
         <!--         this field is not used, but it is necessary to be able to configure connection timout-->
         <backupServerUrl>http://sgeprd.ute.com.uy/rsge/Hidrologia/UteSis.Hidrologia.InterfazServicios.svcServiciosPublicos.svc</backupServerUrl>
         <!--         if this field is not configured, it will be set at 2000 automatically. -->          
         <connectionTimeOutMillis>1000000</connectionTimeOutMillis>
         <user>dummy_username</user>
         <password>dummy_password</password>
         <relativeViewPeriod unit="day" start="-5" end="1" startOverrulable="true" endOverrulable="true"/>
         <idMapId>UyUteConventionalMap</idMapId>
         <missingValue>-999.0</missingValue>
         <importTimeZone>
            <timeZoneOffset>-03:00</timeZoneOffset>
         </importTimeZone>
         <dataFeedId>UTE</dataFeedId>
         <expiryTime unit="day" multiplier="90"/>
      </general>
      <timeSeriesSet>
         <moduleInstanceId>UyUteConventional</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>P.obs</parameterId>
         <locationId>LocA</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="nonequidistant"/>
         <readWriteMode>add originals</readWriteMode>
         <synchLevel>1</synchLevel>
      </timeSeriesSet>
      <timeSeriesSet>
         <moduleInstanceId>UyUteConventional</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>P.obs</parameterId>
         <locationId>LocB</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="nonequidistant"/>
         <readWriteMode>add originals</readWriteMode>
         <synchLevel>1</synchLevel>
      </timeSeriesSet>
   </import>
</timeSeriesImportRun>


Example response from the data service:

Where Fecha is the time stamp, NumeroOficial is external location ID, Valor is the value to be imported.

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
    <s:Header>
        <a:Action s:mustUnderstand="1">http://tempuri.org/IsvcServiciosPublicos/ObtenerMedidasConfirmadasResponse</a:Action>
    </s:Header>
    <s:Body>
        <ObtenerMedidasConfirmadasResponse xmlns="http://tempuri.org/">
            <ObtenerMedidasConfirmadasResult xmlns:b="http://schemas.datacontract.org/2004/07/UteSis.Hidrologia.VOL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                <b:Datos>
                    <b:Medidas>
                        <b:Fecha>2020-01-01T00:00:00</b:Fecha>
                        <b:NumeroOficial>1558</b:NumeroOficial>
                        <b:Valor>1</b:Valor>
                    </b:Medidas>
                    <b:Medidas>
                        <b:Fecha>2020-01-01T00:00:00</b:Fecha>
                        <b:NumeroOficial>1686</b:NumeroOficial>
                        <b:Valor>33</b:Valor>
                    </b:Medidas>
                    <b:Medidas>
                        <b:Fecha>2020-01-01T00:00:00</b:Fecha>
                        <b:NumeroOficial>1688</b:NumeroOficial>
                        <b:Valor>0</b:Valor>
                    </b:Medidas>
                    <b:Medidas>
                        <b:Fecha>2020-01-01T00:00:00</b:Fecha>
                        <b:NumeroOficial>1730</b:NumeroOficial>
                        <b:Valor>0</b:Valor>
                    </b:Medidas>
                    <b:Medidas>
                        <b:Fecha>2020-01-01T00:00:00</b:Fecha>
                        <b:NumeroOficial>1732</b:NumeroOficial>
                        <b:Valor>0</b:Valor>
                    </b:Medidas>
                </b:Datos>
                <b:Mensajes xmlns:c="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
                <b:ResOk>true</b:ResOk>
            </ObtenerMedidasConfirmadasResult>
        </ObtenerMedidasConfirmadasResponse>
    </s:Body>
</s:Envelope>

  • No labels