Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.34 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.34 KB

lanuv-parser

Simple parser for Luftqualitätsüberwachungssystem LUQS by Landesamt für Natur, Umwelt und Verbraucherschutz Nordrhein-Westfalen LANUV.

Install

$ npm install lanuv-parser or yarn add lanuv-parser

Usage

const luqs = require('lanuv-parser')

const run = async () => {
  const stations = await luqs()
  console.log(stations)
}

run()

API

luqs()

Returns an array containing all LUQS stations.

Source: https://www.lanuv.nrw.de/luqs/messorte/messorte.php

Optionally accepts an options object as first parameter:

  • ort search for a specifc city
  • kurzname search for specific short name of stations
  • klassifizierung: alle|verkehr|industrie|hintergrund|ohne+zuordnung
  • status: aktiv|inaktiv|alle returns stations with the specified status
  • allStations: true returns all active and inactive stations. Overrides the status option Deprecated

luqs.station(kuerzel)

Returns detailed information about a specific LUQS station

Source: https://www.lanuv.nrw.de/luqs/messorte/steckbrief.php?ort={KUERZEL}

luqs.aktuell()

Returns the current measurements for all LUQS stations.

Source: https://www.lanuv.nrw.de/fileadmin/lanuv/luft/immissionen/aktluftqual/eu_luft_akt.htm