Current weather and forecasts (up to 16 days) via openmeteo CLI. No API key required.
openmeteo weather --current --city=Berlin --llm
openmeteo weather --current --forecast-days=2 --city=London --llm
openmeteo weather --forecast-days=7 --forecast-since=5 --city=Rome --llm
openmeteo weather --current --lat=48.85 --lon=2.35 --llm
--city=NAME — city name (auto-geocoded)--city=NAME --country=CODE — disambiguate (e.g. Portland --country=US)--lat=NUM --lon=NUM — direct coordinates--current — current conditions--forecast-days=N — forecast length, 1–16 (default 7)--forecast-since=N — start from day N (1=today, 2=tomorrow). Must be <= forecast-days.--hourly-params=LIST — override hourly variables (comma-separated)--daily-params=LIST — override daily variables (comma-separated)--current-params=LIST — override current variables (comma-separated)--temperature-unit=UNIT — celsius (default) / fahrenheit--llm — always pass thisDefaults are sensible for general weather. Override only when needed.
Current & hourly:
temperature_2m — air temp, Capparent_temperature — feels-like, Cprecipitation — rain+showers+snow, mmprecipitation_probability (hourly only) — chance of precipitation, %weather_code — condition, auto-resolved to textwind_speed_10m — wind, km/hwind_gusts_10m — gusts, km/hcloud_cover — cloud cover, %snowfall — snowfall, cmuv_index (hourly only) — UV indexDaily:
temperature_2m_max / temperature_2m_min — max/min temp, Cprecipitation_sum — total precipitation, mmprecipitation_probability_max — max precipitation chance, %weather_code — dominant conditionwind_speed_10m_max — max wind, km/hsunrise / sunset — timessnowfall_sum — total snowfall, cm--llm.--city="New York", --city="St. Petersburg". Only known-safe tokens (numbers, single ASCII words) may be unquoted.help subcommand or --raw — work only with what's described here.--forecast-days=1 for today, =2 for tomorrow — minimize token waste.--forecast-since=N to skip to a specific future day."What's the weather like?" -> openmeteo weather --current --city=Berlin --llm
Summarize: "Clear, -12C (feels -17C), wind 9 km/h."
"When will the rain stop?" -> openmeteo weather --forecast-days=2 --city=Berlin --hourly-params=precipitation,precipitation_probability,weather_code --llm
Find when precipitation hits ~0. Answer: "Should stop around 14:00."
"Do I need an umbrella?" -> openmeteo weather --forecast-days=1 --city=Berlin --hourly-params=precipitation,precipitation_probability,weather_code --llm
"Yes — 70% chance between 11:00-15:00, up to 2mm."
"Weather this weekend in Rome?" -> openmeteo weather --forecast-days=7 --forecast-since=5 --city=Rome --daily-params=temperature_2m_max,temperature_2m_min,weather_code,precipitation_sum --llm
Present only Sat/Sun: "Saturday: 14/8C, partly cloudy. Sunday: 16/9C, clear."
"Temperature outside?" -> openmeteo weather --current --city=Berlin --current-params=temperature_2m,apparent_temperature --llm
"-5C, feels like -9C."
共 1 个版本