Energy weather
Weather in energy terms for one location: degree days for two weeks back and one ahead, the weekly seasonal outlook and 7-day solar PV and wind power forecasts, in one call.
4 tools run server-side in one request: one payment, one response, and a partial-success envelope if a step fails. Paid in USDC over x402 or MPP; this pack has no proof-of-work tier.
When to use this pack
Sizing heating or cooling load, planning solar and wind output or tracking growing degree days for a place, with past and forecast days labeled.
Tools in this pack
Each is also callable on its own.
| Tool | Route |
|---|---|
| Degree days (heating, cooling, growing) | GET /api/degree-days |
| Seasonal outlook (weekly and monthly) | GET /api/seasonal-outlook |
| Solar PV forecast | GET /api/solar-forecast |
| Wind power forecast | GET /api/wind-power-forecast |
Weather data by Open-Meteo.com (CC BY 4.0). Contains modified Copernicus Climate Change Service information. Neither the European Commission nor ECMWF is responsible for any use that may be made of the Copernicus information or data it contains. Based on ECMWF data (www.ecmwf.int).
Bought one at a time, these 4 tools cost $0.017 together; the pack is that sum less a 10% bundle discount, rounded up to the $0.001 settlement floor, which is $0.016.
Workflow
- Read heating, cooling and growing degree days per day, past and forecast, with degree-days.
- Read about 6 weeks of temperature and precipitation anomalies with seasonal-outlook.
- Read 7 days of solar irradiation, expected energy and peak hour with solar-forecast.
- Read 7 days of hub-height wind, energy and capacity factor with wind-power-forecast.
Arguments
| Name | Required | Description | Example |
|---|---|---|---|
lat | yes | Latitude of the location (e.g. 41.8781 for Chicago) | 41.8781 |
lon | yes | Longitude of the location (e.g. -87.6298 for Chicago) | -87.6298 |
What one call returns
A JSON object with pack, args, steps, summary; steps holds each tool's own result or error. Full example on the API page.
Call it directly
Any x402 client pays the 402 and gets the whole workflow back. With the agent402-client SDK (npm i agent402-client):
import { Agent402 } from "agent402-client";
// payFetch: an x402-wrapped fetch your wallet signs (@x402/fetch).
// Tools on the free tier need no options: new Agent402() pays them by proof-of-work.
// or pay by card: new Agent402({ creditsKey }) with a key from /credits
const client = new Agent402({ fetch: payFetch });
const result = await client.call("skill-energy-weather", {"lat":"41.8781","lon":"-87.6298"});Run it in Claude
claude mcp add agent402 -s user -- npx -y agent402-mcp@0.19.2
Then paste this prompt:
Build an energy weather view for coordinates lat=41.8781, lon=-87.6298 using Agent402. Initialize warnings = [].
(1) degree-days with lat=41.8781, lon=-87.6298, start=<14 days ago, YYYY-MM-DD>, end=<7 days ahead> - returns {totals: {hdd, cdd, gdd, pastDays, forecastDays}, days: [{date, kind, tMean, hdd, cdd, gdd}]}. Average HDD per day over the past days and over the forecast days; if the forecast average is more than 25% above the past one, push 'Heating load rising'. Do the same for CDD and push 'Cooling load rising'.
(2) seasonal-outlook with lat=41.8781, lon=-87.6298, period=weekly - returns {periods: [{start, tempMean, tempAnomaly, precipitation, precipitationAnomaly}]}. If 4 or more weeks have tempAnomaly > 1, push 'Warm weeks ahead'; if 4 or more have tempAnomaly < -1, push 'Cold weeks ahead'.
(3) solar-forecast with lat=41.8781, lon=-87.6298, days=7 - returns {system, totals: {irradiationKwhM2, energyKwh, days}, days: [{date, irradiationKwhM2, energyKwh, peakWm2, peakHour}]}. If any day's energyKwh is under half the 7-day mean, push 'Low solar on {date}'.
(4) wind-power-forecast with lat=41.8781, lon=-87.6298, days=7 - returns {turbine, totals: {energyKwh, capacityFactor, hours, hoursAboveCutOut}, days: [{date, energyKwh, capacityFactor, meanWindMs}]}. If totals.capacityFactor < 0.15, push 'Low wind week'; if totals.hoursAboveCutOut > 0, push 'Wind above cut-out'.
Final return: {location: {lat: 41.8781, lon: -87.6298}, degreeDays: <step 1 totals and days>, outlook: <step 2 periods>, solar: <step 3 totals and days>, wind: <step 4 totals and days>, warnings}. Budget: $0.016 for the one pack call (the price /api/pricing lists); all 4 tools are wallet-only (external weather API calls).