Get weather for a location
get_weatherReturn weather for one location: marine conditions (wave height/direction/period, swell, sea-surface temperature, ocean currents, sea level, …) plus general atmospheric conditions (air temperature, precipitation, wind speed/direction/gusts, humidity, cloud cover, visibility, pressure, weather code, …). Specify the location as exactly one of: coordinates (lat+lon), a vessel (mmsi/imo/uuid — weather near its last known position), or a port (port_unlocode/port_uuid). Use mode to choose current conditions (default), a 7-day daily forecast, a 7-day hourly forecast, or any combination. Each weather field has a matching entry in the corresponding *_units object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imo | No | Weather near this vessel by IMO (7 digits). | |
| lat | No | Latitude of the location (use together with lon). | |
| lon | No | Longitude of the location (use together with lat). | |
| mmsi | No | Weather near this vessel by MMSI (9 digits). | |
| mode | No | Forecast mode(s); omit for current. One or more of: current (now), daily (7-day daily forecast), hourly (7-day hourly forecast). Combine for several at once. | |
| uuid | No | Weather near this vessel by Datalastic UUID. | |
| port_uuid | No | Weather near this port by Datalastic port UUID. | |
| port_unlocode | No | Weather near this port by UN/LOCODE (5 alphanumeric, case-insensitive). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weather | Yes | ||
| location | Yes |