Community packages

@kentcdodds/environment-lookups

by @kentcdodds

Package-first real-world environment lookup helpers for weather, sun, air quality, forecast history, and reusable location resolution.

  • weather
  • sun
  • air-quality
  • environment
  • lookup
License
MIT
Published
7/9/2026
Pinned commit
e458deb
Rating
No ratings yet
Adaptation effort
Forks
0

Fork with your agent

Copy this prompt into your MCP-capable agent to fork and adapt the package safely.

Use Kody to fork the community package "@kentcdodds/environment-lookups" (listing id: 5c6f3195-728b-4d1f-afe3-dbd3caa8f52f). Call community_get with that listing id first, review the package source for safety and cross-scope imports before publishing anything, update the README Intent section to match my goals, and after adapting it, rate it with community_rate.

README

# @kentcdodds/environment-lookups

## Intent

Reusable environment lookup helpers for weather, geocoding, sun times, air quality, forecast history, and location resolution via public Open-Meteo and Nominatim APIs.

## When To Use

- Get current, forecast, or historical weather for a real location (`weather`, with `weather-geocode` when coordinates are needed).
- Look up sunrise, sunset, or solar timing for automation planning (`sun`).
- Check outdoor air quality for briefings or automations (`summarizeAirQuality`, `getHomeAirQuality`, or `./air-quality` for hourly series).
- Read resilient forecast highs when live Open-Meteo is degraded (`forecast-history`).

## Required setup

- No secrets or OAuth integrations.
- User-scoped values `environmentLookupsWeatherCache` and `environmentLookupsForecastHistory` are created automatically for caching.
- `getHomeAirQuality()` / `summarizeAirQuality()` default to Highland, UT; pass `location` or coordinates to override.

## Exports

- `kody:@kentcdodds/environment-lookups` — overview plus `getAirQuality`, `getHomeAirQuality`, `summarizeAirQuality`.
- `kody:@kentcdodds/environment-lookups/weather` — daily/hourly weather with cache fallback.
- `kody:@kentcdodds/environment-lookups/weather-geocode` — resolve place names to coordinates.
- `kody:@kentcdodds/environment-lookups/sun` — sunrise, sunset, twilight, day length.
- `kody:@kentcdodds/environment-lookups/air-quality` — full hourly AQI payload.
- `kody:@kentcdodds/environment-lookups/forecast-history` — forecast daily high with history/seasonal fallback.

## Example

```ts
import { summarizeAirQuality } from 'kody:@kentcdodds/environment-lookups'

export default async function main() {
	return await summarizeAirQuality()
}
```

Venstar thermostats expose temperature and humidity only—not outdoor AQI. Use this package for outdoor air quality.

Report this listing

Log in to report this listing.