Adrian Sampson
|
72b3b4c525
|
Update a comment
|
2018-04-21 10:50:28 -04:00 |
|
Adrian Sampson
|
fe77d66e96
|
Show how to check device type
|
2018-04-03 10:45:58 -04:00 |
|
Adrian Sampson
|
c696489de2
|
Fetch device type
|
2018-04-03 10:40:38 -04:00 |
|
Adrian Sampson
|
86c63a92b5
|
Not all devices return JSON status data
|
2018-04-03 10:17:04 -04:00 |
|
Adrian Sampson
|
8588c109f8
|
Use self-reported C2F map instead of inverting F2C
This API is truly the worst.
|
2018-04-02 11:26:48 -04:00 |
|
Adrian Sampson
|
2dc014f17f
|
Wrap devices in lists (fix #1, fix #2)
|
2018-03-11 09:59:17 -04:00 |
|
Adrian Sampson
|
dd9ff96b39
|
Example to turn on/off a device
|
2018-02-18 11:40:31 -05:00 |
|
Adrian Sampson
|
7f7988effa
|
Refactor example commands
|
2018-02-18 11:38:24 -05:00 |
|
Adrian Sampson
|
f0cb5b8165
|
Factor out control setting
|
2018-02-18 11:31:02 -05:00 |
|
Adrian Sampson
|
d79f242c0f
|
Set on/off
|
2018-02-18 11:28:57 -05:00 |
|
Adrian Sampson
|
c7173124cd
|
On/off status
|
2018-02-18 11:26:47 -05:00 |
|
Adrian Sampson
|
754b453903
|
Getting & setting mode values
|
2018-02-18 11:20:43 -05:00 |
|
Adrian Sampson
|
f8107ebc25
|
An enum for OpMode
|
2018-02-18 11:13:50 -05:00 |
|
Adrian Sampson
|
315dbd73e1
|
Example of higher-level monitoring
|
2018-02-18 11:00:27 -05:00 |
|
Adrian Sampson
|
5e258c65a6
|
Wrap AC polling results
|
2018-01-28 12:02:58 -05:00 |
|
Adrian Sampson
|
01ec35d94b
|
Higher-level AC device wrapper
|
2018-01-28 11:41:04 -05:00 |
|
Adrian Sampson
|
c1a51c6f5a
|
Expose explicit monitor start/stop methods
|
2018-01-21 18:55:15 -05:00 |
|
Adrian Sampson
|
8432b87d75
|
Send strings to JSON
|
2018-01-21 13:30:44 -05:00 |
|
Adrian Sampson
|
aae1dea181
|
Serialize model info data
|
2018-01-21 12:51:10 -05:00 |
|
Adrian Sampson
|
9bf03ddb46
|
Used namedtuples for value info
|
2018-01-21 12:47:17 -05:00 |
|
Adrian Sampson
|
844d1c1bdb
|
Look up value descriptions
|
2018-01-21 12:39:36 -05:00 |
|
Adrian Sampson
|
445ea623fc
|
Cache a ModelInfo wrapper
|
2018-01-21 12:25:18 -05:00 |
|
Adrian Sampson
|
947ea8a647
|
DeviceInfo abstraction
|
2018-01-21 12:12:10 -05:00 |
|
Adrian Sampson
|
01366af56a
|
Inline unnecessary helpers
|
2018-01-21 11:39:11 -05:00 |
|
Adrian Sampson
|
789e0f2fcc
|
Add a skeleton setup.py
|
2018-01-20 23:13:25 -05:00 |
|
Adrian Sampson
|
94a1ec8531
|
Construct a client from a token
|
2018-01-20 22:02:22 -05:00 |
|
Adrian Sampson
|
8179148342
|
Inline the load/dump bits
The ol' expression problem strikes again.
|
2018-01-20 21:51:49 -05:00 |
|
Adrian Sampson
|
ebc9c5b679
|
Make load into a class method
|
2018-01-20 21:47:32 -05:00 |
|
Adrian Sampson
|
2ce09e9642
|
Move Client to main module
|
2018-01-20 21:43:02 -05:00 |
|
Adrian Sampson
|
f50c8d0221
|
Simplify retry loop
|
2018-01-20 21:39:37 -05:00 |
|
Adrian Sampson
|
b2bc017d99
|
Cache device list
|
2018-01-20 21:35:09 -05:00 |
|
Adrian Sampson
|
948d51b1b6
|
Try wrapping stuff up in a mutable client class
|
2018-01-20 21:33:44 -05:00 |
|
Adrian Sampson
|
0dde92b241
|
Docstring
|
2018-01-20 17:16:36 -05:00 |
|
Adrian Sampson
|
2083357165
|
Remove a key we don't need
|
2018-01-20 17:14:23 -05:00 |
|
Adrian Sampson
|
b3315c60c8
|
Refresh session in example
|
2018-01-20 17:02:43 -05:00 |
|
Adrian Sampson
|
1dfbc7db8f
|
Factor out the refresh function
|
2018-01-20 16:58:49 -05:00 |
|
Adrian Sampson
|
0648876cc0
|
Extract new access token
|
2018-01-20 16:54:53 -05:00 |
|
Adrian Sampson
|
8653810e0d
|
Actually, the secret is ASCII bytes
It looks like hex, but really it's just ASCII. Wow!
|
2018-01-20 16:51:20 -05:00 |
|
Adrian Sampson
|
3b5b6ca07f
|
Fix fake URL used in signature
|
2018-01-20 14:53:26 -05:00 |
|
Adrian Sampson
|
105646263f
|
Remove apparently-unnecessary headers
|
2018-01-20 14:47:42 -05:00 |
|
Adrian Sampson
|
ccddf40187
|
Decode OAuth secret
|
2018-01-20 14:42:40 -05:00 |
|
Adrian Sampson
|
ba3d423893
|
Set up OAuth token refresh
|
2018-01-20 14:35:27 -05:00 |
|
Adrian Sampson
|
35a78281d6
|
Auth.from_url helper
|
2018-01-20 13:56:16 -05:00 |
|
Adrian Sampson
|
8fc2749a9b
|
Obtain refresh token from OAuth
|
2018-01-20 13:53:19 -05:00 |
|
Adrian Sampson
|
29eb1804c5
|
Run monitor loop indefinitely
|
2018-01-08 14:47:27 -08:00 |
|
Adrian Sampson
|
336b7ec956
|
Fix format of control call
|
2018-01-08 14:46:04 -08:00 |
|
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 |
|