Skip to content

kbg304/airly_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airly API library

This is simple Airly API library

Example program

from Airly import Airly

key = 'api_key'

airly = Airly(key)

m = airly.measurementbyid(204)
i = airly.installationsbyid(204)


city = i.address.city
street = i.address.street
temp = m.current.values.temperature
caqi = m.current.index.value

print(city)
print(street)
print('Temperature: ' + str(temp))
print('CAQI: ' + str(caqi))
Result

alt-text

Releases

No releases published

Packages

No packages published

Languages