Skip to content

Commit

Permalink
get AQI readings for a location
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe-Heffer-Shef committed Apr 1, 2021
1 parent 6117a6c commit d01093a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions awesome/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ def new(name: str, lat: str, lon: str, elevation: int) -> dict:
elevation=elevation,
)

def aqi_readings(self, session):
"""
Get AQI readings at this location
"""
# https://github.com/rcgsheffield/urban_flows/issues/14
return session.call(self.urljoin('aqi-readings'))


class Sensor(AwesomeObject):
"""
Expand Down

0 comments on commit d01093a

Please sign in to comment.