What a reader of an airquality/measures answer must be told when it has no data, or
undefined when it has some. The API answers an unknown station id like a window without
data — HTTP 200 with data: {} ("Ungültige Abfragen liefern einen JSON ohne Daten
zurück", UBA) — but airquality() and measures() look such an id up in the station
catalogue and reject it with a LuftNotFoundError, so an empty answer they return is a
known station without data in the window. For a measures answer pass its series
(component and scope): an unknown scope, or a component the station doesn't measure, gives the
same empty answer, so the note names them too. The CLI logs the note as an INFO record of
luftqualitaet.api on stderr.
What a reader of an
airquality/measuresanswer must be told when it has no data, or undefined when it has some. The API answers an unknown station id like a window without data — HTTP 200 withdata: {}("Ungültige Abfragen liefern einen JSON ohne Daten zurück", UBA) — butairquality()andmeasures()look such an id up in the station catalogue and reject it with a LuftNotFoundError, so an empty answer they return is a known station without data in the window. For ameasuresanswer pass itsseries(component and scope): an unknown scope, or a component the station doesn't measure, gives the same empty answer, so the note names them too. The CLI logs the note as anINFOrecord ofluftqualitaet.apion stderr.