Skip to content

ybbarng/awair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awair

A python wrapper for Awair private API

Dependencies

  • pytz
  • requests

How to use

from datetime import datetime
from datetime import timedelta

from awair import Awair
from awair.enums import DeviceType

email = 'myId@test.com'
password = 'myStrongPassword!'
device_id = '1234'

start_dt = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)
end_dt = start_dt + timedelta(days=1)

awair = Awair(email, password)
timelines = awair.get_timelines(DeviceType.AWAIR_MINT, device_id, start_dt, end_dt)
for timeline in timelines:
    print(timeline.timestamp)
    print(timeline.score)

Alternatives

About

A python wrapper for Awair private API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages