@maschinenlesbar.org/luftqualitaet-cli
    Preparing search index...

    Type Alias AirQualityReport

    AirQualityReport:
        | {
            days: DaySummary[];
            drivers: { hours: number; symbol: string }[];
            hours: HourReading[];
            hoursWithData: number;
            incompleteHours: number;
            latest?: HourReading;
            latestComplete?: HourReading;
            levelCounts: { hours: number; label: string; level: number }[];
            notes: string[];
            station: Station;
            status: "ok";
            window: { from: string; time: string; to: string };
            worst: {
                drivers: string[];
                first: { end: string; start: string };
                hours: number;
                label: string;
                labelDe: string;
                level: number;
            };
        }
        | {
            candidates: Station[];
            reason: string;
            searched: Record<string, unknown>;
            status: "ambiguous";
            total: number;
        }
        | {
            reason: string;
            searched: Record<string, unknown>;
            station?: Station;
            status: "empty";
        }

    The answer of getAirQualityReport.

    Type Declaration

    • {
          days: DaySummary[];
          drivers: { hours: number; symbol: string }[];
          hours: HourReading[];
          hoursWithData: number;
          incompleteHours: number;
          latest?: HourReading;
          latestComplete?: HourReading;
          levelCounts: { hours: number; label: string; level: number }[];
          notes: string[];
          station: Station;
          status: "ok";
          window: { from: string; time: string; to: string };
          worst: {
              drivers: string[];
              first: { end: string; start: string };
              hours: number;
              label: string;
              labelDe: string;
              level: number;
          };
      }
      • days: DaySummary[]

        One line per day, the newest first.

      • drivers: { hours: number; symbol: string }[]

        How often each pollutant set a level of 1 or worse.

      • hours: HourReading[]

        The newest hours first.

      • hoursWithData: number
      • incompleteHours: number
      • Optionallatest?: HourReading

        The newest hour, when it is newer than latestComplete (and so incomplete).

      • OptionallatestComplete?: HourReading

        The newest complete hour; at a station that reported one of the index pollutants at no hour of the window (no O₃ monitor), when UBA marks every hour incomplete: its newest hour with all the pollutants it did report (a note says so).

      • levelCounts: { hours: number; label: string; level: number }[]
      • notes: string[]
      • station: Station
      • status: "ok"
      • window: { from: string; time: string; to: string }
      • worst: {
            drivers: string[];
            first: { end: string; start: string };
            hours: number;
            label: string;
            labelDe: string;
            level: number;
        }
    • {
          candidates: Station[];
          reason: string;
          searched: Record<string, unknown>;
          status: "ambiguous";
          total: number;
      }
    • {
          reason: string;
          searched: Record<string, unknown>;
          station?: Station;
          status: "empty";
      }