Commit graph

44 commits

Author SHA1 Message Date
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
3d267e97df Eliminate while True: by querying the feed count if max_results is None (caller is requesting all data). 2021-04-15 22:09:10 -04: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
Luke McNinch
e94e2d4bb3 Add params keyword argument to _get method to enable use of URL parameters. 2021-02-25 20:34:46 -05:00
brentru
4b2a384679 addressing https://github.com/adafruit/Adafruit_IO_Python/issues/104 2020-12-21 11:51:45 -05:00
brentru
37663ab3ed add new time endpoint, return time as a struct_time, remove plaintext http get responses, update example to remove topics 2019-03-12 12:56:02 -04:00
brentru
54ff53067a more 2019-03-05 12:13:50 -05:00
brentru
ad9ac1d2e0 lint lint lint 2019-03-05 12:12:10 -05:00
brentru
3fd82542b3 continue linting and optimizing the lib! 2019-03-05 12:07:08 -05:00
brentru
528b2a0edd major pylinting 2019-03-05 12:02:46 -05:00
brentru
d2bb729ddb update example for new send_data 2019-03-05 11:35:54 -05:00
brentru
770bb968f8 add metadata, precision kwargs to send_data, add create_payload staticmethod 2019-03-05 11:29:51 -05:00
brentru
0c7845a2d4 remove api version kwarg 2019-02-22 10:28:44 -05:00
brentru
02634fb588 add method for receiving random data 2019-01-15 14:21:40 -05:00
brentru
b6debfc9f1 make weather_id an optional param, update example 2019-01-08 12:57:56 -05:00
brentru
fbbfe8ffae add darkskies api to io python client 2019-01-08 12:49:40 -05:00
brentru
42df192722 adding RTD documentation to all methods for client lib 2018-12-26 12:34:36 -05:00
brentru
82f66ac9ab remove legacy methods from client 2018-08-25 10:15:21 -04:00
brentrubell
41219f731f
Add rgb led example (#67)
* Adding helper methods (toRed, toGreen, toBlue) for hex-encoded color feeds
* Adding example for AIO Basics: Color
2018-08-08 17:38:29 -04:00
brentrubell
80b455a0eb
TypeError Handling (#61)
Fix TypeError on 3.5.x (RasPi, Stretch)
2018-07-17 10:00:54 -04:00
brentrubell
552b40793f
MQTT/REST Time Helpers (#54)
Add ability to subscribe to time topics via MQTT Client or REST/API Client. Add examples for each.
2018-07-06 15:47:59 -04:00
brentrubell
418141a00f
Support for Lat/Lon/Elevation Data (#48)
* modified model for location feeds
* added send_location_data method to API client wrapper
* fix send_location_data arg order, update example
2018-07-02 13:10:14 -04: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
a5946f6ad2 update client calls with username and add send_batch_data 2017-06-27 15:20:15 -05:00
Justin Cooper
e63fa511bc update wording of send 2017-06-27 13:56:02 -05:00
Justin Cooper
aa4e806f13 wrap feed parameter 2017-06-27 10:59:20 -05:00
Justin Cooper
9111e3da5d initial api v2 support as default 2017-06-26 15:15:46 -05:00
Torben
9deb90340b Updated client to use a version property (defaults to API v1) so it works with legacy API 2017-05-26 00:59:50 +00:00
Tony DiCola
921a90e2d8 Add python platform & version, system platform to user agent. 2016-06-20 15:24:45 -07:00
Adam Bachman
705f611925 set custom User-Agent for outgoing HTTP requests 2016-06-15 20:08:48 -04:00
Tony DiCola
59fdef442d Add client.append function for easily appending data to a feed. 2015-05-25 16:47:12 -07:00
Justin Cooper
a1802ae447 Fix typo with self 2015-02-17 11:49:40 -06: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
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
Tony DiCola
395e3f6891 Remove old commented out base URL. 2014-12-08 13:54:40 -08:00
Tony DiCola
0498780514 Change URL from testing site to main site. 2014-12-08 13:52:44 -08:00
Justin Cooper
f7ad55fc81 update to aio key and use io.ladyada.org 2014-07-16 13:58:00 -05:00
Justin Cooper
74ff2c0f98 add group functionality 2014-07-07 09:42:27 -05:00
Justin Cooper
118cd59bb6 case sensitive dir 2014-05-27 11:27:13 -05:00