current_extremes
Get where in Switzerland it is warmest, coldest, windiest, wettest or sunniest now.
Instructions
Get where in Switzerland it is warmest, coldest, windiest, wettest or sunniest now.
This compares the latest measurements of about 160 MeteoSwiss stations. They are the
values of stations, not of towns, and not a forecast. A high mountain station is
colder and windier than the valleys, so name the altitude with a station. MeteoSwiss
publishes new values about every 10 minutes.
The warmest, coldest and windiest stations are ranked by the temperature and by the
strongest gust. For the sunniest and the wettest the answer counts stations: a station
is sunny when the sun shone for at least 5 of the last 10 minutes, and rainy when it
measured rain in the last 10 minutes. The counts are given for Switzerland and for
each canton, as the number of sunny or rainy stations out of the stations that measure
it. Always give both numbers, because a canton with one station says little. A canton
with 0 sunny or rainy stations has none. A canton that is not listed has no station
that measures it. Liechtenstein is listed like a canton. At night no station is sunny.
Args:
extreme (str): One of "warmest", "coldest", "windiest", "wettest" or "sunniest".
Returns:
dict: The time of the measurements and the first 5 stations, or for the sunniest and
the wettest the counts in all and for each canton, the highest share first; the
field names give the units. The wettest also lists the first 5 rainy stations.
A station that does not measure the value is left out everywhere.
Examples:
current_extremes("warmest")
current_extremes("sunniest")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extreme | Yes |