Custom Connector
Singapore Real-time Weather Connector
Singapore
The Singapore Real-time Weather Connector facilitates seamless integration with the Singapore Real-time Weather API, providing access to air temperature, relative humidity, wind speed, wind direction, and rainfall across Singapore. It acts as a proxy supporting real-time and historical weather data, with JSON responses.
Overview
Integration Overview
This document provides a detailed guide for each integration point, its purpose, configuration, and workflow support using the Singapore Real-time Weather Connector.
- getAirTemperature. Retrieves air temperature readings across Singapore.
- getRelativeHumidity. Retrieves relative humidity readings across Singapore.
- getWindSpeed. Retrieves wind speed readings across Singapore.
- getWindDirection. Retrieves wind direction readings across Singapore.
- getRainfall. Retrieves rainfall readings across Singapore.
Documentation
Detailed Integration Documentation
Get Air Temperature
| Action | getAirTemperature |
|---|---|
| Purpose | Retrieves real-time or historical air temperature readings across Singapore, optionally filtered by date or date-time. |
| Configuration | Configure the base URL via CONNECTOR_ENV_SINGAPOREWEATHER_BASE_URL. |
| Parameters | Optional: date – SGT date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS). paginationToken – token for the next page. key – API key (optional, for higher rate limits). |
| Output | Successful: JSON with code, errorMsg, and data (stations, readings, readingType: DBT 1M F, readingUnit: deg C, paginationToken). Failure: ERROR_PARAMS (e.g. invalid date format). |
| Workflow example | Execute getAirTemperature with optional date=2024-07-16, then display air temperature readings in a weather dashboard. |
Get Relative Humidity
| Action | getRelativeHumidity |
|---|---|
| Purpose | Retrieves real-time or historical relative humidity readings across Singapore. |
| Configuration | Configure the base URL via CONNECTOR_ENV_SINGAPOREWEATHER_BASE_URL. |
| Parameters | Optional: date – SGT date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS). paginationToken – token for the next page. key – API key (optional, for higher rate limits). |
| Output | Successful: JSON with code, errorMsg, and data (stations, readings, readingType: RH 1M F, readingUnit: percentage, paginationToken). Failure: ERROR_PARAMS (e.g. invalid date format). |
| Workflow example | Execute getRelativeHumidity with optional date=2024-07-16T23:59:00 for environmental monitoring applications. |
Get Wind Speed
| Action | getWindSpeed |
|---|---|
| Purpose | Retrieves real-time or historical wind speed readings across Singapore. |
| Configuration | Configure the base URL via CONNECTOR_ENV_SINGAPOREWEATHER_BASE_URL. |
| Parameters | Optional: date – SGT date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS). paginationToken – token for the next page. key – API key (optional, for higher rate limits). |
| Output | Successful: JSON with code, errorMsg, and data (stations, readings, readingType: Wind Speed AVG(S)10M M1M, readingUnit: knots, paginationToken). Failure: ERROR_PARAMS (e.g. invalid date format). |
| Workflow example | Execute getWindSpeed with optional date=2024-07-16 for weather forecasting or maritime applications. |
Get Wind Direction
| Action | getWindDirection |
|---|---|
| Purpose | Retrieves real-time or historical wind direction readings across Singapore. |
| Configuration | Configure the base URL via CONNECTOR_ENV_SINGAPOREWEATHER_BASE_URL. |
| Parameters | Optional: date – SGT date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS). paginationToken – token for the next page. key – API key (optional, for higher rate limits). |
| Output | Successful: JSON with code, errorMsg, and data (stations, readings, readingType: Wind Dir AVG (S) 10M M1M, readingUnit: degrees, paginationToken). Failure: ERROR_PARAMS (e.g. invalid date format). |
| Workflow example | Execute getWindDirection with optional date=2024-07-16T23:59:00 for navigation or weather analysis tools. |
Get Rainfall
| Action | getRainfall |
|---|---|
| Purpose | Retrieves real-time or historical rainfall readings across Singapore. |
| Configuration | Configure the base URL via CONNECTOR_ENV_SINGAPOREWEATHER_BASE_URL. |
| Parameters | Optional: date – SGT date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS). paginationToken – token for the next page. key – API key (optional, for higher rate limits). |
| Output | Successful: JSON with code, errorMsg, and data (stations, readings, readingType: TB1 Rainfall 5 Minute Total F, readingUnit: mm, paginationToken). Failure: ERROR_PARAMS (e.g. invalid date format). |
| Workflow example | Execute getRainfall with optional date=2024-07-16 for flood monitoring or agricultural applications. |
Example Workflow: Comprehensive Weather Monitoring
| Retrieve air temperature | Use getAirTemperature with optional date=2024-07-16 to display temperature data in a dashboard. |
|---|---|
| Query relative humidity | Execute getRelativeHumidity with optional date to monitor environmental conditions. |
| Fetch wind and rainfall | Use getWindSpeed, getWindDirection, and getRainfall to build a unified weather monitoring application or alert system. |
Support
For technical support, contact custom-connectors-support@isolutions.sa.