Commit graph

43 commits

Author SHA1 Message Date
tyeth
84577df587 Add timezone parameter to receive_time + UTC for test 2024-09-18 17:56:48 +01:00
Luke McNinch
c152480ad9 Merge branch 'master' into get-pages
# Conflicts:
#	tests/test_client.py
2021-11-30 16:31:50 -05:00
Brent Rubell
ce3d868048
Merge branch 'master' into master 2021-11-29 10:38:13 -05:00
Luke McNinch
c5d1975fcc Address issue 137: receive_time parses week day (wday) as one day off of what is expected by Python.
Implement a method to parse the dict returned by the server and correct the week day.
2021-11-22 20:19:47 -05:00
Doug Zobel
11bddacc67 Add support for dashboards, blocks and layouts 2021-11-16 15:35:05 -06:00
Luke McNinch
e9afd5b317 Implement a "max_results" parameter for the data method, to allow for retrieval of more than 1000 data points.
This implementation is subject to an existing bug in the pagination link header in the API that will break when and if that bug is fixed.
2021-02-26 09:51:14 -05:00
brentru
2c7331585f reflect test expected 2020-12-21 12:02:09 -05:00
brentru
839e41b494 add unittest 2020-12-21 11:59:08 -05:00
brentru
466f06de90 modified base to take in envar 2020-09-23 16:31:13 -04:00
brentru
2f58c68798 grok io key directly from script 2020-09-23 16:20:31 -04:00
brentru
1ae0addb1d try running with env in same step 2020-09-23 16:16:20 -04:00
brentru
dbf52b2547 link in base.py 2020-09-23 16:10:34 -04:00
brentru
25e52c0313 export env vars 2020-09-23 16:08:56 -04:00
brentru
6706193718 swap io user/key to secrets environmental vars 2020-09-23 16:01:15 -04:00
brentru
3c7a0f1d97 adding unittest for time api 2019-03-12 13:30:28 -04:00
brentru
bbb00f8416 fixup test 2019-03-05 13:01:39 -05:00
brentru
f5d3ff6331 update location unittest, bump version major 2019-03-05 12:24:37 -05:00
brentru
afa3de3cff remove api_version kwarg from get_client in tests 2019-02-25 10:32:50 -05:00
brentru
e68de95345 updating send_lococation_data test 2018-12-26 12:39:35 -05:00
brentru
2b66bbb26b adding in dummy account and unit testing for travis 2018-07-10 16:32:18 -04:00
brentru
439442d129 added extra data tests, fixed mqtt unit test 2018-07-10 16:19:21 -04:00
brentru
a77b311d7a all tests without expectedFailure pass 2018-07-10 13:56:44 -04:00
brentru
0495b89e95 refactoring and re-testing client unit tests for api-v2 release 2018-07-10 13:11:02 -04:00
brentru
8714a0ab7b enforce python version =>3.6 2018-07-10 12:08:47 -04:00
brentru
b5776e1f9a strict TLS/SLL check, unittest for secure/insecure mqtt client connections 2018-07-10 10:41:11 -04:00
brentru
e5fc14d473 testing/models explicit feed checks and group properties check 2018-07-09 17:44:44 -04:00
Justin Cooper
f9f659b7e8 drop retain in on_message 2017-06-29 11:48:25 -05:00
Justin Cooper
15122752da batch data test 2017-06-27 15:43:55 -05:00
Justin Cooper
c21867eb75 rename send to send_data and craete alias to send, rework readme 2017-06-27 15:39:56 -05:00
Justin Cooper
5ce57c2bc8 add username to client calls 2017-06-26 16:27:01 -05:00
Justin Cooper
085ba1ce58 add username to client call 2017-06-26 16:26:43 -05:00
Justin Cooper
f70273d8dd add retain in on_message test 2017-06-26 15:42:57 -05:00
Justin Cooper
a3dc09a8fd remove print statement 2017-06-26 15:42:39 -05:00
Justin Cooper
5ba915a4fd revert error condition 2017-06-26 15:20:13 -05:00
Justin Cooper
9111e3da5d initial api v2 support as default 2017-06-26 15:15:46 -05:00
Tony DiCola
8fd72c2482 Update to use new MQTT path with username. 2015-06-03 13:30:36 -07:00
Tony DiCola
59fdef442d Add client.append function for easily appending data to a feed. 2015-05-25 16:47:12 -07:00
Tony DiCola
9900d508f5 Major update:
- Refactored REST client to use requests library for Python 3 compatibility.
- Added docstrings to all public methods & classes.
- Fleshed out CRUD APIs for data, feed, group.
- Wrote full suite of integration tests to verify changes.
- Updated setup.py to bump version to 0.9 & depend on requests and paho-mqtt modules.
- Updated and tested code to work with both Python 2 and 3.
- Broke out errors into separate file, and added explicit data model classes.
- General cleanup and preparation for public release.
2015-02-01 12:22:03 -08:00
Tony DiCola
2ee81791a2 Comment out client test delay by default. 2015-01-27 21:57:03 -08:00
Tony DiCola
196f71dc51 Document, refactor slightly, and add tests to REST API client. 2015-01-27 21:52:25 -08:00
Tony DiCola
2c4bb7fb20 Add MQTT client and update tests. 2015-01-13 23:37:00 -08:00
Tony DiCola
2af9a0d65d Add custom Adafruit IO error types and raise them when requests fail. 2014-12-08 15:23:56 -08:00
Justin Cooper
300b268f6c initial working library 2014-05-27 11:23:53 -05:00