From 9ccb0b2cb263772cd0b8862c47156b20e65f0085 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 6 Jan 2026 18:34:00 -0800 Subject: [PATCH] update configuration in readme --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fbd6bb9..69ec4b8 100644 --- a/README.md +++ b/README.md @@ -225,18 +225,20 @@ All configuration is via environment variables: | `WTTR_CACHE_DIR` | `~/.cache/wttr` | Cache directory | | `WTTR_CACHE_SIZE` | `10000` | Max cached responses | | `WTTR_GEOLITE_PATH` | `~/.cache/wttr/GeoLite2-City.mmdb` | GeoIP database path | +| `WTTR_GEOCACHE_FILE` | `~/.cache/wttr/geocache.json` | Location name cache | | `IP2LOCATION_API_KEY` | (none) | Optional IP geolocation fallback | +| `IP2LOCATION_CACHE_FILE` | `~/.cache/wttr/ip2location.cache` | IP2Location cache file | +| `METNO_TOS_IDENTIFYING_EMAIL` | (none) | Email for Met.no API identification | ## External Services -### Required (No API Key) +### Required - **Met.no Weather API** - Weather data provider (free, no registration) - Set METNO_TOS_IDENTIFYING_EMAIL to identify yourself to Met.No - -- **IP2Location.io** - Fallback IP geolocation +- **IP2Location.io** - IP geolocation service - Sign up at https://www.ip2location.io/ - Free tier: 30,000 requests/month - - Set via `IP2LOCATION_API_KEY` environment variable + - Set `IP2LOCATION_API_KEY` environment variable for higher limits ### Auto-Downloaded - **MaxMind GeoLite2 City** - IP geolocation database