Skip to content

Commit

Permalink
Merge pull request calmh#17 from elfixit/master
Browse files Browse the repository at this point in the history
add get_events to the api
  • Loading branch information
calmh committed Jun 22, 2014
2 parents bb7de93 + 58006fc commit 162e031
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,12 @@ connection is of bad quality to force a rescan.
### `get_alerts(self)`

Return a list of Alerts.

### `get_aps(self)`

### `get_events(self)`

Return a list of Events.

### `get_aps(self)`
Return a list of all AP:s, with significant information about each.

### `get_clients(self)`
Expand Down
5 changes: 5 additions & 0 deletions unifi/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ def get_alerts(self):

return self._read(self.api_url + 'list/alarm')

def get_events(self):
"""Return a list of all Events."""

return self._read(self.api_url + 'stat/event')

def get_aps(self):
"""Return a list of all AP:s, with significant information about each."""

Expand Down

0 comments on commit 162e031

Please sign in to comment.