...
Currently, the max requests per minute per IP is roughly 60, depending on the load balancing at the given time. This is in place to avoid overloading their system. To ensure that all data is imported, property key pauseForMillisecondsBetweenCalls can be used. If configured, FEWS will pause between two call to make sure it does not exceed the limit.
There is no need to enter a password.
Config example:
| Code Block | ||||
|---|---|---|---|---|
| ||||
<?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>CanadaDFO</importType> <serverUrl>https://api-iwls.dfo-mpo.gc.ca/api/v1/stations/</serverUrl> <user>dummy_username</user> <password>dummy_password</password> <relativeViewPeriod unit="hour" start="-5" end="0" startOverrulable="true" endOverrulable="true"/> <idMapId>CanadaDFO</idMapId> <flagConversionsId>FlagConversion</flagConversionsId> </general> <properties> <int key="pauseForMillisecondsBetweenCalls" value="1000"></int> </properties> <timeSeriesSet> <moduleInstanceId>CanadaDFO</moduleInstanceId> <valueType>scalar</valueType> <parameterId>mean_sea_level</parameterId> <locationId>LocA</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> <timeSeriesSet> <moduleInstanceId>CanadaDFO</moduleInstanceId> <valueType>scalar</valueType> <parameterId>waterlevel_model</parameterId> <locationId>LocB</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </import> </timeSeriesImportRun> |
...