Saltar al contenido
Skillpedia
Tareas y proyectos30 mil · #9359

weather

Qué hace

Esta skill obtiene el tiempo actual y la previsión de una ciudad sin necesidad de clave de API. Comprueba bien la ubicación para no confundir ciudades con nombres parecidos.

Cuándo usarla

  • ✓Cuando preguntas qué tiempo hace ahora mismo en una ciudad.
  • ✓Cuando quieres una previsión para un viaje o para el día siguiente.
  • ✓Cuando preguntas por el tiempo en una ciudad cuyo nombre tiene varias coincidencias.

Link de la skill

https://github.com/sipeed/picoclaw/blob/main/workspace/skills/weather/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/sipeed/picoclaw/blob/main/workspace/skills/weather/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Qué tiempo hace hoy en Chengdu y cuál es la previsión para el fin de semana?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente busca la ciudad, comprueba el país y la región para confirmar la coincidencia, y después obtiene las condiciones actuales y la previsión. En la respuesta indica de nuevo la ubicación encontrada y la hora de la observación.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Weather

Use the most reliable location match first. For Chinese city names or other non-Latin input, prefer wttr.in with the original query because it resolves native names directly. Use Open-Meteo for structured current conditions and forecasts only after you have confirmed the exact city.

Accuracy Rules

  • Always restate the matched location, region/country, and observation time in the final answer.
  • Do not trust the first geocoding hit blindly. Check country, admin1, admin2, and population.
  • For Chinese city queries, do not send Hanzi directly to Open-Meteo geocoding unless the top result is obviously correct. Prefer wttr.in with the original Chinese name, or geocode the English/pinyin city name instead.
  • If multiple plausible matches remain, ask a follow-up question or state the assumption clearly.
  • Use timezone=auto when calling Open-Meteo so the reported time matches the location.

wttr.in (best for direct city-name queries)

Quick current conditions:

curl -s "https://wttr.in/London?format=%l:+%c+%t+%h+%w"

Chinese city example:

curl -s "https://wttr.in/%E6%88%90%E9%83%BD?format=%l:+%c+%t+%h+%w"
curl -s "https://wttr.in/%E4%B8%8A%E6%B5%B7?format=%l:+%c+%t+%h+%w"

JSON output if you need more detail:

curl -s "https://wttr.in/Chengdu?format=j1"

Tips:

  • URL-encode spaces: New York -> New+York
  • URL-encode non-ASCII text before sending the request
  • Use ?m for metric units and ?u for US units

Open-Meteo (best for structured forecasts)

  1. Geocode the city and verify the returned location metadata:
curl -s "https://geocoding-api.open-meteo.com/v1/search?name=Chengdu&count=3&language=en&format=json"
  1. Query current weather and today's forecast with the verified coordinates:
curl -s "https://api.open-meteo.com/v1/forecast?latitude=30.66667&longitude=104.06667&current=temperature_2m,relative_humidity_2m,weather_code,wind_speed_10m&daily=weather_code,temperature_2m_max,temperature_2m_min&forecast_days=1&timezone=auto"

Important:

  • For Chinese inputs like 成都, geocoding name=%E6%88%90%E9%83%BD may return smaller homonym locations first. Prefer Chengdu after verifying it matches Sichuan, China.
  • If geocoding looks suspicious, fall back to wttr.in for the original city name instead of presenting a likely wrong result.

Docs: https://open-meteo.com/en/docs

Preguntas frecuentes

¿Necesito una clave de API?

No. La skill usa servicios meteorológicos públicos que no necesitan clave.

¿Qué pasa si el nombre de la ciudad es ambiguo?

El agente te hace una pregunta de seguimiento o indica la suposición que ha hecho.

¿Puede manejar nombres de ciudades en otros idiomas?

Sí. Los nombres nativos, como los nombres de ciudades chinas, se resuelven con una búsqueda directa.

Detalles

Descripción original del autor

Get current weather and forecasts with verified location matching (no API key required).

repo: sipeed/picoclaw

Popularidad

Estrellas en GitHub
30 mil
Posición en el ranking
#9359
Licencia
MIT
Actualizada
30/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas