In order to activate the SENAMHI import as a FEWS import, it is required to set up a TimeSeriesImportRun module configuration file and an accompanying IdMap file.

For the import to work correctly:

The import will take the serverUrl and append it with "&from=year/month/day&to=year/month/day", where the dates are filled using the relativeViewPeriod found in the import configuration file. It will read the D_DataDate and N_Data fields of the resulting json and map these to the correct time series using the N_IdStation and N_IdVar fields. Running the import in debug mode will print the full url in the log window.

Example Import configuration file:

<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesImportRun xmlns=""
<!-- This is an example import configuration file for importing Observations and Measurements data from a service -->
        <relativeViewPeriod unit="hour" start="-5" end="0" startOverrulable="true" endOverrulable="true"/>
       <timeSeriesType>external historical</timeSeriesType>
       <timeStep unit="nonequidistant"/>
       <readWriteMode>add originals</readWriteMode>

Example IdMap file:

<?xml version="1.0" encoding="UTF-8"?>
<idMap version="1.1" xmlns="" xmlns:xsi="" xsi:schemaLocation="">
    map internal timeseries directly to external timeseries
    externalLocation should be set to N_IdStation
    externalParameter should be set to N_IdVar
<map internalLocation="MyLoc1" internalParameter="MyPar1" externalLocation="57100000" externalParameter="3" />
<map internalLocation="MyLoc2" internalParameter="MyPar1" externalLocation="57300000" externalParameter="4" />