Available since 2020.02. Present parser allows to download and import meteorological observations from http://weather.bangkok.go.th/dds_webservices/api/rain/History?id=LOCATION_ID
Example url request:
http://weather.bangkok.go.th/dds_webservices/api/rain/History?id=RF.PNK.01
This request returns the data of the last 24 hours for one location.
Example configuration:
<?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>BMADay</importType> <serverUrl>http://weather.bangkok.go.th/dds_webservices/api/flow/History?id=</serverUrl> <!-- this field is not used, but it is necessary to be able to configure connection timout--> <backupServerUrl>http://weather.bangkok.go.th/dds_webservices/api/</backupServerUrl> <!-- if this field is not configured, it will be set at 2000 automatically. --> <connectionTimeOutMillis>1000000</connectionTimeOutMillis> <user>Username</user> <password>password</password> <relativeViewPeriod unit="day" start="-2" end="1" startOverrulable="true" endOverrulable="true"/> <idMapId>BMADayMap</idMapId> <missingValue>-999.0</missingValue> </general> <timeSeriesSet> <moduleInstanceId>BMADay</moduleInstanceId> <valueType>scalar</valueType> <parameterId>param</parameterId> <locationId>LocA</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <readWriteMode>add originals</readWriteMode> <synchLevel>1</synchLevel> </timeSeriesSet> </import> </timeSeriesImportRun>
Response example:
[ { "code": "RF.PNK.01", "site_time": "2021-03-25T15:25:00", "rf5min": 0.0, "rf15min": 0.0, "rf30min": 0.0, "rf1hr": 0.0, "rf3hr": 0.0, "rf6hr": 0.0, "rf12rh": 0.0, "rf24rh": 0.0 }, { "code": "RF.PNK.01", "site_time": "2021-03-25T15:30:00", "rf5min": 0.0, "rf15min": 0.0, "rf30min": 0.0, "rf1hr": 0.0, "rf3hr": 0.0, "rf6hr": 0.0, "rf12rh": 0.0, "rf24rh": 0.0 } ]