weather-nws
Get free, reliable US weather data and official alerts using the National Weather Service API without needing an API key.
Install
mkdir -p .claude/skills/weather-nws-kbarbel640-del && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15988" && unzip -o skill.zip -d .claude/skills/weather-nws-kbarbel640-del && rm skill.zipInstalls to .claude/skills/weather-nws-kbarbel640-del
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Reliable US weather data using the National Weather Service API. Free, no API key, detailed forecasts and official alerts.Key capabilities
- →Fetch detailed current weather conditions for US locations
- →Retrieve 7-day weather forecasts
- →Get official National Weather Service alerts
- →Provide weather data without an API key
- →Output weather data in JSON format for programmatic use
- →Monitor for severe weather alerts like tornado warnings or flood alerts
How it works
The skill queries the National Weather Service API using provided coordinates to retrieve current conditions, forecasts, and alerts, then formats the data for output.
Inputs & outputs
When to use weather-nws
- →Fetching local weather conditions
- →Getting official severe weather alerts
- →Including weather forecasts in morning briefings
- →Monitoring weather for automation scripts
About this skill
Weather NWS
Get reliable, detailed weather data from the National Weather Service API. Perfect for US locations - completely free, no API key required, with official weather alerts.
When to Use
Use this skill when you need:
- Reliable US weather data without API key hassles
- Official weather alerts (tornado warnings, flood alerts, etc.)
- Detailed current conditions beyond basic temperature
- 7-day forecasts with comprehensive descriptions
- Morning briefings with accurate local weather
- Weather monitoring in automation/cron jobs
- Alert-based notifications for severe weather
This skill is ideal for US-based OpenClaw deployments that need professional-grade weather data without the complexity or cost of commercial APIs.
Features
- 🌡️ Detailed Current Conditions - Temperature, feels-like, humidity, wind, pressure, visibility, dewpoint
- 📅 7-Day Forecast - Comprehensive daily forecasts with detailed descriptions
- 🚨 Official Alerts - Cold Weather Advisories, Tornado Warnings, Flood Alerts, etc.
- 🆓 100% Free - No API key, no rate limits, reliable government service
- 📍 Accurate - Data from official NWS weather stations
Quick Start
Get Current Weather
node weather-nws.js
JSON Output (for scripts)
node weather-nws.js --json
Configuration
Edit the coordinates in weather-nws.js to set your location:
// Example: Fort Worth, Texas
const FORT_WORTH = {
lat: 32.7555,
lon: -97.3308
};
Find coordinates at latlong.net
Usage Examples
Basic Weather Check
Get a quick overview of current conditions and forecast:
node weather-nws.js
Output:
=== CURRENT CONDITIONS ===
Temperature: 30°F (Feels like: 21°F)
Condition: Clear
Humidity: 69%
Wind: 10 mph 310
Pressure: 30 inHg
Visibility: 10 miles
Dewpoint: 21°F
=== TODAY'S FORECAST ===
Sunny, with a high near 47. North northwest wind 5 to 10 mph.
=== 7-DAY OUTLOOK ===
Today: 47°F - Sunny
Tonight: 21°F - Mostly Clear
Saturday: 33°F - Sunny
Saturday Night: 22°F - Mostly Clear
Sunday: 53°F - Sunny
Sunday Night: 34°F - Clear
Monday: 64°F - Mostly Sunny
🚨 ACTIVE NWS ALERTS:
Cold Weather Advisory (Moderate/Expected)
Cold Weather Advisory issued January 29 at 11:49PM CST until January 31 at 11:00AM CST
Programmatic Use (JSON)
For automation and integration:
node weather-nws.js --json
Returns structured JSON with:
current- Current conditions objectforecast- 7-day forecast arrayalerts- Detected alert keywordstimestamp- ISO timestampsource- "National Weather Service"
Integration with OpenClaw
Use in your OpenClaw prompts:
Check the weather and let me know if I need a jacket today.
Or in cron jobs:
# Morning weather brief
0 8 * * * node /path/to/weather-nws.js
Weather Alert Monitoring
The skill includes alert detection for:
- 🌪️ Tornado warnings and watches (CRITICAL)
- ⛈️ Severe Storms with damaging winds, hail (HIGH)
- 🌊 Flood warnings and flash floods (HIGH)
- ❄️ Winter Weather - ice storms, blizzards, heavy snow (HIGH)
- 🔥 Heat advisories and excessive heat warnings (MEDIUM)
- 💨 Wind advisories and high wind warnings (MEDIUM)
API Details
National Weather Service API
- Endpoint: api.weather.gov
- Authentication: None required (User-Agent header recommended)
- Rate Limiting: None (reasonable use expected)
- Coverage: United States only
- Documentation: https://weather-gov.github.io/api/
Data Sources
- Points API - Gets forecast office and grid coordinates for your location
- Forecast API - 7-day forecast with detailed descriptions
- Observations API - Real-time data from nearest weather station
- Alerts API - Active weather alerts for your area
Advanced Usage
Custom Location
Create a wrapper script for a different city:
const NWSWeather = require('./weather-nws.js');
// Chicago coordinates
const weather = new NWSWeather(41.8781, -87.6298);
const data = await weather.getWeather();
console.log(JSON.stringify(data, null, 2));
Alert Monitoring
Check for active official alerts:
const NWSWeather = require('./weather-nws.js');
const weather = new NWSWeather(32.7555, -97.3308);
const alerts = await weather.getActiveAlerts();
if (alerts.length > 0) {
console.log('⚠️ ACTIVE ALERTS:');
alerts.forEach(alert => {
console.log(`${alert.event} - ${alert.severity}/${alert.urgency}`);
console.log(alert.headline);
});
}
Output Format
Current Conditions Object
{
"current": {
"temp": "30°F",
"feelsLike": "21°F",
"condition": "Clear",
"humidity": "69%",
"windSpeed": "10 mph",
"windDirection": "310",
"pressure": "30 inHg",
"visibility": "10 miles",
"dewpoint": "21°F"
},
"forecast": {
"today": "Sunny, with a high near 47...",
"tonight": "Mostly clear...",
"high": "47°F",
"periods": [...]
},
"alerts": [],
"timestamp": "2026-01-30T15:00:00.000Z",
"source": "National Weather Service"
}
Why NWS?
Compared to other weather APIs:
| Feature | NWS | wttr.in | OpenWeather | WeatherAPI |
|---|---|---|---|---|
| Cost | FREE | FREE | $40+/mo | $0-$50/mo |
| API Key | ❌ No | ❌ No | ✅ Yes | ✅ Yes |
| Reliability | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
| Official Alerts | ✅ Yes | ❌ No | ❌ No | ⚠️ Limited |
| Detail Level | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
| US Coverage | ✅ Excellent | ✅ Good | ✅ Good | ✅ Good |
Troubleshooting
"Invalid response from NWS"
Check your coordinates are correct and within the US. The NWS API only covers United States territories.
Timeout errors
Increase the timeout in the script:
{ encoding: 'utf8', timeout: 30000 } // 30 seconds
No alerts showing
This is normal! The skill only shows alerts when there are active weather warnings for your area.
Integration Examples
Morning Brief
Include weather in your daily automation:
const NWSWeather = require('./weather-nws.js');
const weather = new NWSWeather(32.7555, -97.3308);
const data = await weather.getWeather();
console.log(`Good morning! It's ${data.current.temp} and ${data.current.condition}.`);
console.log(`Today's high will be ${data.forecast.high}.`);
if (data.alerts.length > 0) {
console.log(`⚠️ Weather alerts: ${data.alerts.map(a => a.type).join(', ')}`);
}
Discord/Telegram Bot
Post weather updates to channels:
const data = await weather.getWeather();
const message = `🌤️ **Weather Update**\n` +
`Current: ${data.current.temp} (feels like ${data.current.feelsLike})\n` +
`Today's high: ${data.forecast.high}\n` +
`Forecast: ${data.forecast.today}`;
// Send to your messaging platform
await sendMessage(message);
Cron Job with Alerts
Monitor for severe weather:
#!/bin/bash
# Check weather every 15 minutes, alert on warnings
weather_json=$(node weather-nws.js --json)
alerts=$(echo "$weather_json" | jq -r '.alerts[] | .type')
if [ -n "$alerts" ]; then
# Send notification
echo "Weather alerts detected: $alerts"
# Your notification logic here
fi
License
This skill uses the National Weather Service API, which is public domain (US Government).
Support
- NWS API Issues: https://github.com/weather-gov/weather.gov/issues
- Skill Issues: Contact the author
Credits
Weather data provided by the National Weather Service (NOAA).
Built for OpenClaw (formerly Clawdbot)
When not to use it
- →When weather data for locations outside the United States is needed
- →When a commercial weather API with global coverage is required
- →When an API key-based authentication is preferred
Prerequisites
Limitations
- →Coverage is limited to the United States only
- →Requires manual configuration of coordinates in the script
- →Alerts are only shown when active for the specified area
How it compares
This workflow provides free, official, and detailed US weather data and alerts directly from the National Weather Service API, without requiring an API key, unlike commercial weather services.
Compared to similar skills
weather-nws side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| weather-nws (this skill) | 0 | 6mo | Review | Beginner |
| binary-options | 0 | 6mo | Review | Intermediate |
| apify-ultimate-scraper | 0 | 3mo | Review | Intermediate |
| bgmx | 0 | 1mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by kbarbel640-del
View all by kbarbel640-del →You might also like
binary-options
Signal-Execution-Labs
Binary Options trading via BinaryFaster. Execute CALL/PUT trades, manage positions, track results.
apify-ultimate-scraper
Anhvu1107
ALWAYS use this when the request matches Apify Ultimate Scraper: AI-driven data extraction from 55+ Actors across all major platforms.
bgmx
yjl9903
Maintain bgmx project data workflows only when the user explicitly invokes $bgmx or explicitly asks Codex to maintain bgmx data. Covers syncing Bangumi subject data, manually creating Bangumi subject revisions, syncing yuc.wiki seasonal calendars, and switching the active online calendar season.
node-red-telemetry
ssrjkk
Telemetry with Node-RED. data collection.
telegram-bot-builder
davila7
Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.
word
Fergana-Labs
Create, read, edit, and manipulate Microsoft Word documents (.docx files). Use when users ask to work with Word files, create documents, read .docx files, or format text documents.