Skip to content

Commit

Permalink
Merge pull request #17 from makermelissa/main
Browse files Browse the repository at this point in the history
Updated to use latest Adafruit IO
  • Loading branch information
ladyada authored Nov 21, 2020
2 parents b3fd0ef + f5a4455 commit e53e1bb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions adafruit_magtag/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ def add_json_transform(self, json_transform):
def get_local_time(self, location=None):
# pylint: disable=line-too-long
"""
NOTE: Do not use yet. This is currently not working.
Fetch and "set" the local time of this microcontroller to the local time at the location, using an internet time API.
:param str location: Your city and country, e.g. ``"New York, US"``.
Expand Down Expand Up @@ -319,13 +317,11 @@ def _get_io_client(self):
"Adafruit IO secrets are kept in secrets.py, please add them there!\n\n"
) from KeyError

return IO_HTTP(aio_username, aio_key, self._wifi.manager(secrets))
return IO_HTTP(aio_username, aio_key, self._wifi.requests)

def push_to_io(self, feed_key, data):
"""Push data to an adafruit.io feed
NOTE: Do not use yet. This is currently not working.
:param str feed_key: Name of feed key to push data to.
:param data: data to send to feed
Expand Down Expand Up @@ -358,8 +354,6 @@ def push_to_io(self, feed_key, data):
def get_io_feed(self, feed_key, detailed=False):
"""Return the Adafruit IO Feed that matches the feed key
NOTE: Do not use yet. This is currently not working.
:param str feed_key: Name of feed key to match.
:param bool detailed: Whether to return additional detailed information
Expand All @@ -377,8 +371,6 @@ def get_io_feed(self, feed_key, detailed=False):
def get_io_group(self, group_key):
"""Return the Adafruit IO Group that matches the group key
NOTE: Do not use yet. This is currently not working.
:param str group_key: Name of group key to match.
"""
Expand All @@ -395,8 +387,6 @@ def get_io_group(self, group_key):
def get_io_data(self, feed_key):
"""Return all values from Adafruit IO Feed Data that matches the feed key
NOTE: Do not use yet. This is currently not working.
:param str feed_key: Name of feed key to receive data from.
"""
Expand Down

0 comments on commit e53e1bb

Please sign in to comment.