current_conditions
Get the latest measurements of a MeteoSwiss station near the location.
Instructions
Get the latest measurements of a MeteoSwiss station near the location.
These are the measurements of that station, not of the location itself. The station is
the one with the smallest distance plus 20 times the height gap, so it can be several
kilometres away and hundreds of metres higher or lower than the location. Always start
the answer with the data_from sentence, which names the station, its distance and its
height difference, and then give the values as the station's measurements. MeteoSwiss
publishes new values about every 10 minutes.
Temperature, humidity, dew point and pressure are measured at measured_at. Rain,
sunshine, wind speed, the strongest gust and the wind direction cover the 10 minutes up
to it. The temperature and pressure changes compare measured_at with 3 hours before it,
negative when the value fell. The rain and sunshine of the last hour are the totals of
its six 10-minute values, and the strongest gust of the last hour is the highest of them.
For later today or the coming days use forecast_hourly or forecast_daily.
Args:
location (str): Place name: a town, village, city district, lake or peak (e.g., "Zurich").
Returns:
dict: The place, the station with its distance and height difference, the time of the
measurements and the measured values; the field names give the units. A value is
None when the station does not measure it, and a change or a last-hour value is
None when the station has not published all the measurements it needs, such as
shortly after midnight UTC.
Examples:
current_conditions("Zurich")
current_conditions("Braunwald")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| near | No | Only when several places share the name: a village next to the place the user means. For "the Blausee near Bettmeralp" use location "Blausee" and near "Bettmeralp". Leave it out otherwise. | |
| location | Yes |