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

30 Commits

Author SHA1 Message Date
Adrian Sampson
c9afb9035c Start controlling settings 2018-01-08 14:39:50 -08:00
Adrian Sampson
244f4756c5 Pull out temperatures 2018-01-08 14:26:14 -08:00
Adrian Sampson
b8b50e5309 Little "subcommands" in the example 2018-01-08 14:21:09 -08:00
Adrian Sampson
d2735be4ad Unpack poll results 2018-01-08 14:16:43 -08:00
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
e31f126cd9 Refactor session creator into function 2018-01-08 13:24:53 -08:00
Adrian Sampson
5ffa880e80 Handle the error 2018-01-08 13:16:27 -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
82fca74b05 Use a chain of objects for getting a session 2018-01-08 11:37:59 -08:00
Adrian Sampson
696f728752 Revert "Crude memoization helper"
This reverts commit a28dd98d77a6aacb6288cb7c371aa2091023b79a.
2018-01-08 10:13:03 -08:00
Adrian Sampson
a28dd98d77 Crude memoization helper 2018-01-08 08:53:05 -08:00
Adrian Sampson
a712ceb9ec README and license 2018-01-06 14:33:55 -08:00
Adrian Sampson
211c303891 Just print the alias 2018-01-06 14:31:46 -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
c9d67a735b Pull out the session ID 2018-01-06 14:26:19 -08:00
Adrian Sampson
e79b67051c Some memoization 2018-01-06 14:21:39 -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