Commit graph

44 commits

Author SHA1 Message Date
Kattni Rembor
42a3e4a9c1 Black reformatting with Python 3 target. 2020-04-09 16:19:54 -04:00
dherrada
9e5c4fce85 Code needed to be changed for a successful pypi bump 2020-03-20 12:55:38 -04:00
brentru
1a760725d2 lintin 2020-03-12 18:48:59 -04:00
brentru
839a1a5992 add groups, simpletest, fix regular example 2020-03-12 18:45:04 -04:00
Brent Rubell
a00375b2f5
Merge pull request #21 from brentru/close-responses
Close HTTP method responses
2019-10-08 16:17:52 -04:00
brentru
2095ccb076 update example, update code to add callbacks 2019-08-28 11:50:08 -04:00
brentru
74f074cac3 fix autodoc in file 2019-07-17 17:52:27 -04:00
brentru
99f3d0ae92 fix exit method, dc on exit 2019-07-17 17:06:36 -04:00
brentru
52c8167596 removal of bad eval() 2019-07-17 16:54:05 -04:00
brentru
188e90b1cd linted! 2019-07-17 16:44:47 -04:00
brentru
7cc98d2750 Adding publishing location/metadata via csv topic, add example 2019-07-17 15:58:46 -04:00
brentru
581dcbc034 require username, reimport struct time... 2019-07-17 13:47:51 -04:00
brentru
d67fcc8cff replace IO REST with IO HTTP to match IO MQTT client name, remove deps 2019-07-17 11:09:43 -04:00
brentru
b87ca4437a pylint a bunch 2019-07-16 18:10:42 -04:00
brentru
1ffa360a9d add special time topics, on_message parsing 2019-07-16 17:57:08 -04:00
brentru
3b5d0a2d67 refactor to use an external mqtt client, not init one. 2019-07-16 17:27:53 -04:00
brentru
febfdb765c start refactoring - get rid of MMQTT dep, it shouldnt be called from the lib if someone wants two clients 2019-07-16 16:12:22 -04:00
brentru
2306cbf7fd add /get retain method, modify on_message_mqtt to correctly parse a group 2019-07-16 13:57:54 -04:00
brentru
b615e845d8 add methods to subscribe to randomizer service api, throttling feed 2019-07-11 17:00:10 -04:00
brentru
fed02981c3 add weather subscription method and example 2019-07-11 16:49:46 -04:00
brentru
11ad65e800 cleanup publish_multiple a bit.. 2019-07-11 16:07:53 -04:00
brentru
e8155fcfd5 parse messages properly within on_message 2019-07-11 15:58:35 -04:00
brentru
2422872462 add sub/pub, refactor to reflect latest minimqtt 2019-07-11 13:15:31 -04:00
brentru
0412871e27 add on_connect, on_disconnect, on_message, client-level callbacks 2019-07-11 11:25:32 -04:00
brentru
c010dcf1dd start adding mqtt client to init 2019-07-11 10:51:59 -04:00
brentru
64ce5f6162 close the socket after making a request, only return the json data 2019-04-08 14:43:52 -04:00
brentru
88cb011797 remove text kwarg from GET since we're only expecting JSON responses now 2019-03-12 17:32:59 -04:00
brentru
a906b59771 add time struct endpoint instead of clock 2019-03-12 17:32:59 -04:00
brentru
b835fafc8f adding the clock.json response instead, minimize code on the device 2019-03-12 17:32:59 -04:00
brentru
705809caf7 old time, change for clock 2019-03-12 17:32:59 -04:00
brentru
3d303e6192 add user-agent to http header string, remove byte encoding 2019-03-11 12:22:11 -04:00
brentru
5a7b83c6b7 gracefully handle incorrect data types passed in with precision kwarg 2019-02-26 16:02:49 -05:00
brentru
eadb500cbf added espcontrol link 2019-02-25 11:16:06 -05:00
brentru
493355ae87 remove automock import from config, we dont need it anymore since were not importing 2019-02-25 11:09:54 -05:00
brentru
60ca547454 reflect correct naming scheme 2019-02-25 11:08:08 -05:00
brentru
1f9ae49dfc add in ESPAT_Wifimanager check 2019-02-25 11:06:57 -05:00
brentru
d638130a23 remove isinstance in favor of type 2019-02-25 11:05:45 -05:00
brentru
cae55d236e fix import order for travis 2019-02-22 18:18:19 -05:00
brentru
4e2cc96240 check wifi_manager kwarg, then assign instance 2019-02-22 18:15:28 -05:00
brentru
56e497cf71 fixs per sommersoft's review 2019-02-22 18:04:23 -05:00
brentru
2c1f65e62e fix bug when getting ISO8601 datetime from server 2019-02-22 16:10:10 -05:00
brentru
31efdf8d2e update docstrings 2019-02-22 15:10:20 -05:00
brentru
b88e885346 update examples for new file structure 2019-02-22 13:37:10 -05:00
brentru
8ce7fa4bea import error handling within adafruit_io.py 2019-02-22 13:07:40 -05:00
Renamed from adafruit_io.py (Browse further)