1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-16 23:30:10 -07:00

67 Commits

Author SHA1 Message Date
Adrian Sampson
d09820dbbd Fix monitor polling
- It looks like `workList` as returned is not really a list.
- The workId we generate appears to be thrown away, in favor of a new
  one returned by the service.
- The stop endpoint really does need the device ID.

This is a pretty bad API!
2018-01-08 14:11:56 -08:00
Adrian Sampson
d0a4e3e823 Try out monitoring 2018-01-08 14:03:46 -08:00
Adrian Sampson
3f6b4f1bf8 Sketch unused monitoring stuff 2018-01-08 13:51:44 -08:00
Adrian Sampson
9bf7918314 Don't raise OK responses as errors 2018-01-08 13:25:50 -08:00
Adrian Sampson
04b4c7a6ce Special error for expired sessions 2018-01-08 13:09:04 -08:00
Adrian Sampson
375ee62ce3 Exceptions for API errors 2018-01-08 13:06:47 -08:00
Adrian Sampson
3e11db0f7b Further refactor deviceList API call 2018-01-08 12:06:54 -08:00
Adrian Sampson
7aacb19082 Refactor common request function 2018-01-08 12:00:01 -08:00
Adrian Sampson
7ff25e9eea Move OO interface to the library 2018-01-08 11:44:08 -08:00
Adrian Sampson
fc0a7943b5 Pull out the list of device data 2018-01-06 14:30:17 -08:00
Adrian Sampson
705b353718 Get device list 2018-01-06 14:29:51 -08:00
Adrian Sampson
009ed8e330 Move smoke test to its own file 2018-01-06 14:14:36 -08:00
Adrian Sampson
6a2f4321d3 More minimal login request 2018-01-06 14:10:47 -08:00
Adrian Sampson
c49d6b3edf Sufficient login request 2018-01-06 14:09:52 -08:00
Adrian Sampson
9e700f99b6 Extract access_token from response URL 2018-01-06 13:53:56 -08:00
Adrian Sampson
e053521bc5 Generate OAuth URL 2018-01-06 13:34:40 -08:00
Adrian Sampson
7cd0ce0ff1 Fetch gateway data 2018-01-06 13:21:57 -08:00