Home · Skills · Development
Weather
Get current weather and forecasts using free APIs (no API key required).
How to use it
- Hit Copy the whole skill.
- Claude: ⋯ → Download .md, then Customize → Skills → Add → Upload skill.
ChatGPT: make a Project and paste it into Instructions.
Neither? Paste it at the top of a new chat — it works for that chat. - Describe your job in plain words. The AI follows the skill from there.
Claude Code — installs the whole folder, not just SKILL.md
npx degit gooseworks-ai/goose-skills/skills/research-tools/capabilities/weather#main ~/.claude/skills/weatherFor one project only, change the path to .claude/skills/weather.
Not working?
- Check which app you pasted it into — the steps above name the right one.
- Some skills need the paid tier of Claude or ChatGPT.
Paste into Claude, ChatGPT or Cursor.
Show the full text94 lines
Weather
Setup
Read your credentials from ~/.gooseworks/credentials.json:
export GOOSEWORKS_API_KEY=$(python3 -c "import json;print(json.load(open('$HOME/.gooseworks/credentials.json'))['api_key'])")
export GOOSEWORKS_API_BASE=$(python3 -c "import json;print(json.load(open('$HOME/.gooseworks/credentials.json')).get('api_base','https://api.gooseworks.ai'))")
If ~/.gooseworks/credentials.json does not exist, tell the user to run: npx gooseworks login
All endpoints use Bearer auth: -H "Authorization: Bearer $GOOSEWORKS_API_KEY"
Get weather data using free services - no API keys needed.
wttr.in (Primary)
Fast, simple, works everywhere.
Quick check:
curl -s "wttr.in/London?format=3"
# Output: London: ⛅️ +8°C
Compact format:
curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w"
# Output: London: ⛅️ +8°C 71% ↙5km/h
Full forecast:
curl -s "wttr.in/London?T"
Format Codes
| Code | Meaning |
|---|---|
%c |
Weather condition emoji |
%t |
Temperature |
%h |
Humidity |
%w |
Wind |
%l |
Location |
%m |
Moon phase |
Tips
- URL-encode spaces:
wttr.in/New+Yorkorwttr.in/San%20Francisco - Airport codes work:
wttr.in/JFK,wttr.in/SFO - Units:
?mmetric,?uUSCS (Fahrenheit) - Limit days:
?1today only,?0current only - Save as image:
curl -s "wttr.in/Berlin.png" -o weather.png
Open-Meteo (JSON API)
Better for programmatic use. Free, no key.
curl -s "https://api.open-meteo.com/v1/forecast?latitude=37.77&longitude=-122.42¤t_weather=true"
Response includes: temperature, windspeed, weathercode, time.
Get coordinates first
curl -s "https://geocoding-api.open-meteo.com/v1/search?name=San+Francisco&count=1"
Examples
San Francisco right now:
curl -s "wttr.in/San+Francisco?format=3"
Tokyo 3-day forecast:
curl -s "wttr.in/Tokyo?3T"
JSON weather for coordinates:
curl -s "https://api.open-meteo.com/v1/forecast?latitude=35.68&longitude=139.69¤t_weather=true&hourly=temperature_2m"
| 1 | |
| 2 | name weather |
| 3 | description Get current weather and forecasts using free APIs (no API key required). Use when asked about weather, temperature, forecasts, or climate conditions for any location. |
| 4 | source orthogonal |
| 5 | |
| 6 | |
| 7 | |
| 8 | # Weather |
| 9 | |
| 10 | ## Setup |
| 11 | |
| 12 | Read your credentials from ~/.gooseworks/credentials.json: |
| 13 | |
| 14 | export GOOSEWORKS_API_KEY=$(python3 -c "import json;print(json.load(open('$HOME/.gooseworks/credentials.json'))['api_key'])") |
| 15 | export GOOSEWORKS_API_BASE=$(python3 -c "import json;print(json.load(open('$HOME/.gooseworks/credentials.json')).get('api_base','https://api.gooseworks.ai'))") |
| 16 | |
| 17 | |
| 18 | If ~/.gooseworks/credentials.json does not exist, tell the user to run: `npx gooseworks login` |
| 19 | |
| 20 | All endpoints use Bearer auth: `-H "Authorization: Bearer $GOOSEWORKS_API_KEY"` |
| 21 | |
| 22 | |
| 23 | Get weather data using free services - no API keys needed. |
| 24 | |
| 25 | ## wttr.in (Primary) |
| 26 | |
| 27 | Fast, simple, works everywhere. |
| 28 | |
| 29 | **Quick check:** |
| 30 | |
| 31 | curl -s "wttr.in/London?format=3" |
| 32 | # Output: London: ⛅️ +8°C |
| 33 | |
| 34 | |
| 35 | **Compact format:** |
| 36 | |
| 37 | curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w" |
| 38 | # Output: London: ⛅️ +8°C 71% ↙5km/h |
| 39 | |
| 40 | |
| 41 | **Full forecast:** |
| 42 | |
| 43 | curl -s "wttr.in/London?T" |
| 44 | |
| 45 | |
| 46 | ### Format Codes |
| 47 | | Code | Meaning | |
| 48 | |------|---------| |
| 49 | | `%c` | Weather condition emoji | |
| 50 | | `%t` | Temperature | |
| 51 | | `%h` | Humidity | |
| 52 | | `%w` | Wind | |
| 53 | | `%l` | Location | |
| 54 | | `%m` | Moon phase | |
| 55 | |
| 56 | ### Tips |
| 57 | URL-encode spaces: `wttr.in/New+York` or `wttr.in/San%20Francisco` |
| 58 | Airport codes work: `wttr.in/JFK`, `wttr.in/SFO` |
| 59 | Units: `?m` metric, `?u` USCS (Fahrenheit) |
| 60 | Limit days: `?1` today only, `?0` current only |
| 61 | Save as image: `curl -s "wttr.in/Berlin.png" -o weather.png` |
| 62 | |
| 63 | ## Open-Meteo (JSON API) |
| 64 | |
| 65 | Better for programmatic use. Free, no key. |
| 66 | |
| 67 | |
| 68 | curl -s "https://api.open-meteo.com/v1/forecast?latitude=37.77&longitude=-122.42¤t_weather=true" |
| 69 | |
| 70 | |
| 71 | Response includes: temperature, windspeed, weathercode, time. |
| 72 | |
| 73 | ### Get coordinates first |
| 74 | |
| 75 | curl -s "https://geocoding-api.open-meteo.com/v1/search?name=San+Francisco&count=1" |
| 76 | |
| 77 | |
| 78 | ## Examples |
| 79 | |
| 80 | **San Francisco right now:** |
| 81 | |
| 82 | curl -s "wttr.in/San+Francisco?format=3" |
| 83 | |
| 84 | |
| 85 | **Tokyo 3-day forecast:** |
| 86 | |
| 87 | curl -s "wttr.in/Tokyo?3T" |
| 88 | |
| 89 | |
| 90 | **JSON weather for coordinates:** |
| 91 | |
| 92 | curl -s "https://api.open-meteo.com/v1/forecast?latitude=35.68&longitude=139.69¤t_weather=true&hourly=temperature_2m" |
| 93 | |
| 94 |
Discussion
Alternatives
Also in Services & APIsContext7Pulls up-to-date, version-specific library docs and code examples into the prompt so the AI stops inventing old APIs.Adaptyv Bio Foundry APIHow to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user mentions Adaptyv, Foundry API, protein binding assays, protein screening experiments, BLI/SPR assays, thermostability assays, or wants to submit protein sequences for experimental characterization. Also trigger when code imports `adaptyv`, `adaptyv_sdk`, or `FoundryClient`, or references `foundry-api-public.adaptyvbio.com`..NET Backend Development PatternsMaster C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.Add AI protectionProtect AI chat and completion endpoints from abuse — detect prompt injection and jailbreak attempts, block PII and sensitive info from leaking in responses, and enforce token budget rate limits to control costs. Use this skill when the user is building or securing any endpoint that processes user prompts with an LLM, even if they describe it as "preventing jailbreaks," "stopping prompt attacks," "blocking sensitive data," or "controlling AI API costs" rather than naming specific protections.