Install
openclaw skills install iqairGet real-time air quality data from IQAir API for any location worldwide. Returns AQI (Air Quality Index) with visual indicators and quality levels. Use when asked about air quality, pollution levels, or AQI in specific cities/locations (e.g., "How is the air in Riga?", "Is it safe to go outside in Beijing?", "What's the air quality like?"). Also use when asked about general weather to supplement weather data with air quality information (e.g., "What's the weather in Budapest?", "How's the weather today?").
openclaw skills install iqairGet real-time air quality data from the IQAir API with formatted output including AQI score, emoji indicator, and quality level.
API Key Required: User must have a free IQAir API key stored in the IQAIR_API_KEY environment variable.
If the key is not set, guide the user:
export IQAIR_API_KEY="your_key_here"By city name:
python scripts/get_aqi.py Riga Latvia
python scripts/get_aqi.py London "United Kingdom"
python scripts/get_aqi.py Budapest Hungary
By coordinates (most reliable):
python scripts/get_aqi.py --lat 56.9496 --lon 24.1052
Nearest city (based on IP):
python scripts/get_aqi.py --nearest
When a user asks about air quality:
scripts/get_aqi.py with appropriate argumentsExample interaction:
User: "How good is air in Riga?"
Response process:
python scripts/get_aqi.py Riga Latvia🟢 19 - Good\nRiga, LatviaCity/country names:
Common location patterns:
Riga Latvia (state defaults to city)London "United Kingdom" (quote if spaces)"New York" "United States" "New York" (city, country, state)When in doubt: Use coordinate-based lookup with --lat and --lon (more reliable).
The script returns a concise, formatted string:
🟢 45 - Good
Riga, Latvia
Customize your response based on the AQI level:
For API specifications, endpoints, and error handling, see references/api.md.
Free Community plan limits:
Avoid making repeated calls for the same location within short time periods.