# Environment Canada GeoMet

> Find Canadian climate stations, read their daily observations and react to published weather alerts.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/msc-geomet

## Actions

### Find Canadian climate stations

Search by station name and province or territory. Results include climate IDs and available daily observation dates.

**Inputs**

- Query (`query`, text, required): Station name or a matching part of it, such as TORONTO.
- Province or territory (`province`, text): Two-letter province or territory code, such as ON or SK.
- Limit (`limit`, number): Maximum results to return (1 to 100). From 1 to 100.
- Offset (`offset`, number): Number of matching records to skip. At least 0.

**Outputs**

- `data` (object): The response from Environment Canada GeoMet.

**Example output**

```json
{
  "data": {
    "features": [
      {
        "id": "example",
        "properties": {
          "CLIMATE_IDENTIFIER": "example",
          "DLY_FIRST_DATE": "example",
          "DLY_LAST_DATE": "example",
          "PROV_STATE_TERR_CODE": "example",
          "STATION_NAME": "example"
        },
        "type": "example"
      }
    ],
    "links": [
      {
        "href": "example",
        "rel": "example"
      }
    ],
    "numberMatched": 1,
    "numberReturned": 1
  }
}
```

### List Canadian daily climate observations

Read daily temperature and precipitation measurements for one station over an inclusive date range.

**Inputs**

- Climate ID (`climate_id`, text, required): Climate identifier from the station search, such as 6158355.
- Start date (`start_date`, date, required): First observation date, in YYYY-MM-DD format.
- End date (`end_date`, date, required): Last observation date, in YYYY-MM-DD format.
- Limit (`limit`, number): Maximum results to return (1 to 100). From 1 to 100.
- Offset (`offset`, number): Number of matching records to skip. At least 0.

**Outputs**

- `data` (object): The response from Environment Canada GeoMet.

**Example output**

```json
{
  "data": {
    "features": [
      {
        "id": "example",
        "properties": {
          "CLIMATE_IDENTIFIER": "example",
          "LOCAL_DATE": "example",
          "MAX_TEMPERATURE": 1,
          "MEAN_TEMPERATURE": 1,
          "MIN_TEMPERATURE": 1,
          "STATION_NAME": "example",
          "TOTAL_PRECIPITATION": 1,
          "TOTAL_SNOW": 1
        },
        "type": "example"
      }
    ],
    "links": [
      {
        "href": "example",
        "rel": "example"
      }
    ],
    "numberMatched": 1,
    "numberReturned": 1
  }
}
```

### List Canadian weather alerts

Read the most recently published alerts in a province or territory, with text in English and French when available.

**Inputs**

- Province or territory (`province`, text, required): Two-letter province or territory code, such as ON or SK.
- Limit (`limit`, number): Maximum results to return (1 to 100). From 1 to 100.
- Offset (`offset`, number): Number of matching records to skip. At least 0.

**Outputs**

- `data` (object): The response from Environment Canada GeoMet.

**Example output**

```json
{
  "data": {
    "features": [
      {
        "id": "example",
        "properties": {
          "alert_name_en": "example",
          "alert_name_fr": "example",
          "alert_text_en": "example",
          "alert_text_fr": "example",
          "alert_type": "example",
          "expiration_datetime": "example",
          "feature_name_en": "example",
          "province": "example",
          "publication_datetime": "example",
          "risk_colour_en": "example",
          "status_en": "example"
        },
        "type": "example"
      }
    ],
    "links": [
      {
        "href": "example",
        "rel": "example"
      }
    ],
    "numberMatched": 1,
    "numberReturned": 1
  }
}
```
