Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 473 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 473 Bytes

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