A module for getting air quality data from Luchtmeetnet OpenAPI
Project description
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
Release history Release notifications | RSS feed
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.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for pyluchtmeetnet-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1eb217afc1e25ddc9bb28af9b00db4a59f82cd421ed48eda7a03683726b9bf4 |
|
MD5 | 6199f63e8bd9ff465cb1907efd0eac08 |
|
BLAKE2b-256 | 70590c0715a8248e9a2b5431fc91eb4fa2ff821883bda20d6d145a6eb0da6945 |