$npx -y skills add volcengine/OpenViking --skill weatherGet current weather and forecasts (no API key required).
| 1 | # Weather |
| 2 | |
| 3 | Two free services, no API keys needed. |
| 4 | |
| 5 | ## wttr.in (primary) |
| 6 | |
| 7 | Quick one-liner: |
| 8 | ```bash |
| 9 | curl -s "wttr.in/London?format=3" |
| 10 | # Output: London: ⛅️ +8°C |
| 11 | ``` |
| 12 | |
| 13 | Compact format: |
| 14 | ```bash |
| 15 | curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w" |
| 16 | # Output: London: ⛅️ +8°C 71% ↙5km/h |
| 17 | ``` |
| 18 | |
| 19 | Full forecast: |
| 20 | ```bash |
| 21 | curl -s "wttr.in/London?T" |
| 22 | ``` |
| 23 | |
| 24 | Format codes: `%c` condition · `%t` temp · `%h` humidity · `%w` wind · `%l` location · `%m` moon |
| 25 | |
| 26 | Tips: |
| 27 | - URL-encode spaces: `wttr.in/New+York` |
| 28 | - Airport codes: `wttr.in/JFK` |
| 29 | - Units: `?m` (metric) `?u` (USCS) |
| 30 | - Today only: `?1` · Current only: `?0` |
| 31 | - PNG: `curl -s "wttr.in/Berlin.png" -o /tmp/weather.png` |
| 32 | |
| 33 | ## Open-Meteo (fallback, JSON) |
| 34 | |
| 35 | Free, no key, good for programmatic use: |
| 36 | ```bash |
| 37 | curl -s "https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12¤t_weather=true" |
| 38 | ``` |
| 39 | |
| 40 | Find coordinates for a city, then query. Returns JSON with temp, windspeed, weathercode. |
| 41 | |
| 42 | Docs: https://open-meteo.com/en/docs |