...
The API descriptions can be found on https://data.gov.sg For For rainfall: https://beta.data.gov.sg/dataset/realtime-weather-readings?resource_id=8bd37e06-cdd7-4ca4-9ad8-5754eb70a33ddatasets/d_72ef872af64a49bbf85c037e714267c0/view
Data can only be requested one day at at time, for example: https://api.data.gov.sg/v1/environment/rainfall?date=2018-07-26
...
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>SingaporeNEA</importType> <serverUrl>https://api.data.gov.sg/v1/environment/rainfall</serverUrl> <relativeViewPeriod unit="day" start="-7" end="0"/> <idMapId>IdImportNEA_Meteo</idMapId> <unitConversionsId>ImportUnitConversions</unitConversionsId> </general> <timeSeriesSet> <moduleInstanceId>ImportNEA_Meteo</moduleInstanceId> <valueType>scalar</valueType> <parameterId>P.obs</parameterId> <locationSetId>NEA.Meteo.precip</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </import> </timeSeriesImportRun> |
Note: The Singapore time zone is GMT+8 and currently does not use Daylight Saving Time (since 1936)
If the <relativeViewPeriod> element specifies a period covering more than one day in Singapore time, multiple days of data will be read and combined into a single time series.
The parser always uses standard singapore time so there is no need to use include a <importTimeZone> element to configure this specific timezone..