Skip to content
Back to skills

Smog

ASecurity

Read official GIOŚ air quality measurements and the Polish air quality index. Find stations by city or the nearest station by GPS. Use for "smog", "jakość powietrza", "PM2.5", "PM10", "najbliższa stacja GIOŚ". Shows measurement times and missing data; does not provide forecasts or medical advice.

  • 61 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
developmentpythongogitapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add b44x/ai-polish-skills --skill smog --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Smog?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Smog
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/b44x-smog/badge)](https://www.skillsdirectory.com/skills/b44x-smog)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: smog
display_name: Smog — jakość powietrza GIOŚ
version: 1.0.0
description: >-
  Read official GIOŚ air quality measurements and the Polish air quality index. Find stations by city or the nearest station by GPS. Use for "smog", "jakość powietrza", "PM2.5", "PM10", "najbliższa stacja GIOŚ". Shows measurement times and missing data; does not provide forecasts or medical advice.
category: public_data
language: pl
country: PL
license: MIT
author: Michell Hoduń (https://github.com/b44x)
repository: https://github.com/b44x/ai-polish-skills
network: true
authentication: none
source: Główny Inspektorat Ochrony Środowiska (GIOŚ)
source_type: official_api
official: true
homepage: https://powietrze.gios.gov.pl/
documentation: https://powietrze.gios.gov.pl/pjp/content/api
rate_limit: Endpoint-specific limits; see GIOŚ documentation
last_verified: 2026-11-04
tags:
  - smog
  - powietrze
  - pm10
  - pm25
  - gios
  - jakosc-powietrza
compatibility: Python 3.8+ (standard library only); internet access required.
---

# GIOŚ air quality

## Running the script

Run from this skill's directory:

| OS | Command |
|---|---|
| Linux / macOS | `python3 scripts/smog.py <command> ...` |
| Windows | `py scripts/smog.py <command> ...` |

| Command | Purpose |
|---|---|
| `stations --city Kraków` | All stations in the city; `Krakow` also works |
| `stations` | GIOŚ station catalogue |
| `near 50.06 19.94` | Nearest station, straight-line distance, index and measurements |
| `station 400` | Index and latest available measurements for a station |

## Choosing a station and reporting results

1. For a city, call `stations --city` first. If several stations match, present the options; do not describe one station as the city-wide average. Use `near` for supplied coordinates.
2. Report the station name, **GIOŚ** attribution, value, unit and measurement time for each pollutant. All concentrations from this API, including CO, are in µg/m³. Measurement and index times are local Europe/Warsaw times; `fetched_at` is UTC.
3. `latest_slot_missing` means the latest time slot has no measurement and the result comes from an earlier slot. `no_current_data` and `null` mean missing data, never zero. Different sensors may report measurements from different hours.
4. Show the index category supplied by GIOŚ; do not calculate a separate index or substitute US AQI. Report missing or incomplete index status. The data is provisional and may be corrected later.
5. This skill does not provide forecasts, health advice or continuous monitoring. The nearest station may not reflect conditions at the user's exact address.

## API and exit codes

Use `https://api.gios.gov.pl/pjp-api/v1/rest/`. The script supports JSON-LD pagination without pip dependencies or API keys. Do not use the retired `/pjp-api/rest/` endpoint.

Success: JSON on stdout, exit `0`. Errors: JSON on stderr, exit `2` for a missing station, `64` for validation or `69` for API/network failures. Missing measurements at an existing station are a valid result with `null` fields. A sensor-fetch network failure stops the lookup instead of masquerading as a missing measurement. `--help` and `-h` return `0`.

Read [references/output.md](references/output.md) for field details. Source: [GIOŚ API documentation](https://powietrze.gios.gov.pl/pjp/content/api).

Files in this skill

  • SKILL.md3.3 KB
  • references/output.md2.5 KB
  • resources/README.md309 B
  • resources/index.json1.9 KB
  • resources/measurements.json1.9 KB
  • resources/sensors.json1.6 KB
  • resources/stations.json838 B
  • scripts/smog.py8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.