weatherpeek: get an hourly weather forecast for a place or coordinates
get_weatherweatherpeek: hourly weather forecast for a point or a city. Input: either lat (-90..90) and lon (-180..180) together, or place alone (1-120 chars), plus optional hours (1-48, default 24). Returns location {lat, lon, place}, updated_at, units and hourly rows {time, air_temperature, relative_humidity, wind_speed, wind_from_direction, cloud_area_fraction, precipitation_amount, symbol_code}, plus cached and attribution. place matches cities of 15,000+ people offline ("City" or "City, CC" with an ISO country code); no match is a 404 place_not_found (not charged). Upstream errors are a 5xx and are not charged. Typically 0.1-2 s. Price: USD 0.002. Free: 5 weather forecasts per IP per UTC day. Data: MET Norway (api.met.no) and GeoNames (geonames.org), both CC BY 4.0; credit them when you show or republish it (the attribution field carries the text). Forecasts are numerical weather model output and can be wrong: not for safety-critical decisions (aviation, marine, severe-weather warnings); use official services for those.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude (-90..90); give lat and lon together, or place. | |
| lon | No | Longitude (-180..180); give lat and lon together, or place. | |
| hours | No | Hourly rows to return (1-48, default 24). | |
| place | No | City name, optionally "City, CC" with an ISO country code (cities with 15,000+ people); give place alone, or lat and lon. |