free-weather-data
Get current weather, forecasts, and historical data using free Open-Meteo and wttr.in APIs. Use when: (1) Fetching weather conditions, (2) Weather alerts and monitoring, (3) Forecast data for planning, or (4) Climate analysis.
git clone --depth 1 https://github.com/besoeasy/open-skills /tmp/free-weather-data && cp -r /tmp/free-weather-data/skills/free-weather-data ~/.claude/skills/free-weather-dataSKILL.md
# Free Weather Data API — Open-Meteo & wttr.in
Get current weather, forecasts, and historical weather data using free APIs. No API keys required. Privacy-respecting alternative to paid weather APIs ($5-100/month).
## Why This Replaces Paid Weather APIs
**💰 Cost savings:**
- ✅ **100% free** — no API keys, no rate limits
- ✅ **Comprehensive data** — current, forecast, historical weather
- ✅ **Open source** — Open-Meteo is fully open-source
- ✅ **Privacy-first** — no tracking or data collection
**Perfect for AI agents that need:**
- Weather conditions for location-based decisions
- Forecast data for planning and scheduling
- Historical weather data for analysis
- Weather alerts and monitoring
## Quick comparison
| Service | Cost | Rate limit | API key required | Privacy |
|---------|------|------------|------------------|---------|
| OpenWeatherMap | $0-180/month | 60 calls/min free | ✅ Yes | ❌ Tracked |
| WeatherAPI | $0-70/month | 1M calls/month free | ✅ Yes | ❌ Tracked |
| **Open-Meteo** | **Free** | **10k req/day** | **❌ No** | **✅ Private** |
| **wttr.in** | **Free** | **Unlimited** | **❌ No** | **✅ Private** |
## Skills
### get_current_weather_open_meteo
Get current weather using Open-Meteo (most accurate and comprehensive).
```bash
# Current weather by coordinates
LAT=40.7128
LON=-74.0060
curl -s "https://api.open-meteo.com/v1/forecast?latitude=${LAT}&longitude=${LON}¤t=temperature_2m,relative_humidity_2m,apparent_temperature,precipitation,weather_code,wind_speed_10m&temperature_unit=fahrenheit" \
| jq '{
temperature: .current.temperature_2m,
feels_like: .current.apparent_temperature,
humidity: .current.relative_humidity_2m,
wind_speed: .current.wind_speed_10m,
precipitation: .current.precipitation,
weather_code: .current.weather_code
}'
# With timezone
curl -s "https://api.open-meteo.com/v1/forecast?latitude=${LAT}&longitude=${LON}¤t=temperature_2m,weather_code&timezone=America/New_York" \
| jq '{temperature: .current.temperature_2m, time: .current.time}'
```
**Node.js:**
```javascript
async function getCurrentWeather(lat, lon, unit = 'fahrenheit') {
const params = new URLSearchParams({
latitude: lat.toString(),
longitude: lon.toString(),
current: 'temperature_2m,relative_humidity_2m,apparent_temperature,precipitation,weather_code,wind_speed_10m,wind_direction_10m',
temperature_unit: unit
});
const res = await fetch(`https://api.open-meteo.com/v1/forecast?${params}`);
if (!res.ok) {
throw new Error(`Weather API failed: ${res.status}`);
}
const data = await res.json();
return {
temperature: data.current.temperature_2m,
feelsLike: data.current.apparent_temperature,
humidity: data.current.relative_humidity_2m,
windSpeed: data.current.wind_speed_10m,
windDirection: data.current.wind_direction_10m,
precipitation: data.current.precipitation,
weatherCode: data.current.weather_code,
time: data.current.time,
unit: data.current_units.temperature_2m
};
}
// Usage
// getCurrentWeather(40.7128, -74.0060, 'fahrenheit')
// .then(weather => {
// console.log(`Temperature: ${weather.temperature}°${weather.unit}`);
// console.log(`Feels like: ${weather.feelsLike}°${weather.unit}`);
// console.log(`Humidity: ${weather.humidity}%`);
// console.log(`Wind: ${weather.windSpeed} mph`);
// });
```
### get_weather_forecast
Get weather forecast for the next 7-16 days.
```bash
# 7-day forecast
LAT=37.7749
LON=-122.4194
curl -s "https://api.open-meteo.com/v1/forecast?latitude=${LAT}&longitude=${LON}&daily=temperature_2m_max,temperature_2m_min,precipitation_sum,weather_code&temperature_unit=fahrenheit&timezone=America/Los_Angeles" \
| jq '{
dates: .daily.time,
max_temp: .daily.temperature_2m_max,
min_temp: .daily.temperature_2m_min,
precipitation: .daily.precipitation_sum
}'
# Hourly forecast for next 24 hours
curl -s "https://api.open-meteo.com/v1/forecast?latitude=${LAT}&longitude=${LON}&hourly=temperature_2m,precipitation,weather_code&forecast_days=1" \
| jq '{hourly: [.hourly.time, .hourly.temperature_2m, .hourly.precipitation] | transpose | map({time: .[0], temp: .[1], precip: .[2]})}'
```
**Node.js:**
```javascript
async function getWeatherForecast(lat, lon, days = 7, unit = 'fahrenheit') {
const params = new URLSearchParams({
latitude: lat.toString(),
longitude: lon.toString(),
daily: 'temperature_2m_max,temperature_2m_min,precipitation_sum,precipitation_probability_max,weather_code,wind_speed_10m_max',
temperature_unit: unit,
forecast_days: days.toString()
});
const res = await fetch(`https://api.open-meteo.com/v1/forecast?${params}`);
if (!res.ok) {
throw new Error(`Forecast API failed: ${res.status}`);
}
const data = await res.json();
return data.daily.time.map((date, i) => ({
date,
maxTemp: data.daily.temperature_2m_max[i],
minTemp: data.daily.temperature_2m_min[i],
precipitation: data.daily.precipitation_sum[i],
precipitationProbability: data.daily.precipitation_probability_max[i],
maxWindSpeed: data.daily.wind_speed_10m_max[i],
weatherCode: data.daily.weather_code[i]
}));
}
// Usage
// getWeatherForecast(37.7749, -122.4194, 7, 'fahrenheit')
// .then(forecast => {
// forecast.forEach(day => {
// console.log(`${day.date}: ${day.minTemp}°-${day.maxTemp}°, ${day.precipitationProbability}% rain`);
// });
// });
```
### get_weather_wttr_simple
Get simple weather using wttr.in (human-readable, very fast).
```bash
# Get weather by city name (plain text)
curl -s "https://wttr.in/London?format=3"
# Output: London: ☀️ +22°C
# Get detailed weather report
curl -s "https://wttr.in/Paris"
# JSON format
curl -s "https://wttr.in/Tokyo?format=j1" | jq '.current_condition[0] | {
temp_f: .temp_F,
humidity: .humidity,
description: .weatherDesc[0].value,
wind_mph: .windspeedMiles
}'
# Custom format (temperature and conditiEncrypt and decrypt files or streams using age — a simple, modern, and secure encryption tool with small explicit keys, passphrase support, SSH key support, post-quantum hybrid keys, and UNIX-style composability. No config options, no footguns.
Upload and host files anonymously using decentralized storage with Originless and IPFS.
Automate web browsers for AI agents using agent-browser CLI with deterministic element selection.
Star all repositories from a GitHub user automatically. Use when: (1) Supporting open source creators, (2) Bulk discovery of useful projects, or (3) Automating GitHub engagement.
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Log all chat messages to a SQLite database for searchable history and audit. Use when: (1) Building chat history, (2) Auditing conversations, (3) Searching past messages, or (4) User asks to log chats.
Check cryptocurrency wallet balances across multiple blockchains using free public APIs.
Calculate line-of-sight and road distances between two cities using free OpenStreetMap services.