Skip to content

Updated to use latest Adafruit IO #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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