Skip to main content

A module for getting air quality data from Luchtmeetnet OpenAPI

Project description

PyPI - Version PyPI - Status PyPI - Downloads

pyluchtmeetnet

A python package to use the Luchtmeetnet 2020 OpenAPI.

Installation

$ pip3 install pyluchtmeetnet

Code example

from pyluchtmeetnet import Luchtmeetnet

latitude = 52.0808
longitude = 4.3063

lmn = Luchtmeetnet()

# Get nearest station
station = lmn.get_nearest_station_data(latitude, longitude)
print(station)

# Get latest LKI from station
lki = lmn.get_latest_station_lki(station["number"])
print(lki)

# Get latest measurements from station
measurements = lmn.get_latest_station_measurements(station["number"])
print(measurements)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyluchtmeetnet-0.1.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

pyluchtmeetnet-0.1.3-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page