Skip to content

metbril/pyluchtmeetnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)