Adafruit IO Python Client Library
OTHER License
Bot releases are hidden (Show)
Published by tyeth 7 months ago
Full Changelog: https://github.com/adafruit/Adafruit_IO_Python/compare/2.7.1...2.7.2
Published by tyeth 11 months ago
temp_humidity.py
by @brentru in https://github.com/adafruit/Adafruit_IO_Python/pull/149
Full Changelog: https://github.com/adafruit/Adafruit_IO_Python/compare/2.7.0...2.7.1
Published by brentru over 2 years ago
Full Changelog: https://github.com/adafruit/Adafruit_IO_Python/compare/2.6.0...2.7.0
Published by brentru almost 3 years ago
Full Changelog: https://github.com/adafruit/Adafruit_IO_Python/compare/2.5.0...2.6.0
To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru almost 4 years ago
To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru almost 5 years ago
subscribe
calls. Addresses https://github.com/adafruit/Adafruit_IO_Python/issues/106
on_subscribe
callback for subscribing to new topics.
mqtt_subscribe.py
example extended to use new on_subscribe
callback method.To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru over 5 years ago
This release adds Adafruit IO Python support for a new time api. This new time endpoint supports sending localized time to the Adafruit IO Python REST API client, based on the client's IP address. This release does not update the time endpoint within the MQTT client, it is only for the REST client.
The receive_time
method now returns a struct_time containing the year, month, day, hour, minute second, day of the week, day of the year, and a boolean for if it's daylight savings. #96
an updated Usage Example is located at basics/time.py
Note: The previous /time endpoint returned a plaintext response, instead of json. Since the new endpoint returns a JSON response, this PR will remove all plaintext-handling from the library used for the old /time endpoint:
To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru over 5 years ago
Fix mqtt_client
to prevent errors resulting from referencing topic
before assignment or accessing parsed_topic
out of order. #94
Remove while True
topic subscription loop from mqtt_time.py
example. The example now uses the blocking_client
.
Bump version string
To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru over 5 years ago
Changes:
The send_data
method can now send metadata associated with the data point. You can also now set the amount of precision
associated with floating point value
s. #92
This change will break code using the send_location_data()
method. Code using this method will need to be changed to use the updated send_data
method.
To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru over 5 years ago
io-client-python
) to match Adafruit IO Arduino.io-client-python
have been removed throughout the libraryapi_version
in Client
has been removed (see: https://github.com/adafruit/Adafruit_IO_Python/commit/808ec3fcb2a8d943f77f636493c8aae81a22d823). The Adafruit IO API's api version is not likely to change in the near future, and no longer needs to be supported as an optional kwarg.To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru over 5 years ago
client.receive(FEED_NAME)
) the last value of a feed from Adafruit IO.
To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru almost 6 years ago
Create random data streams that can generate colors, words, numbers, or pick a value from a custom data set and send it directly to your devices.
The web interface for this service is available on Adafruit IO's Integrations page.
To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru almost 6 years ago
Get hyper local, minute-by-minute weather forecasts delivered directly to your device running Adafruit IO Python. Service provided by Dark Sky.
The web panel for this service is available on Adafruit IO's Integrations page.
Note: An active Adafruit IO Plus subscription is required for using this integration. For more information about [Adafruit IO Plus (including its features and pricing), click here] (https://io.adafruit.com/plus).
Client
for use with Adafruit IO's weather service.MQTTClient
for subscribing to weather forecasts.To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru almost 6 years ago
send_location_data()
. Specifically, value has been moved to the end of the call and is optional.Previous function calls:
ioClient.send_location_data(locationFeed.key, value, lat, lon, ele)
New function calls:
ioClient.send_location_data(locationFeed.key, lat, lon, ele, value)
Example of send_location_data()
usage
Other release notes:
client.py
for Sphinx/ReadTheDocs.send_location_data
To use in CPython, pip3 install adafruit-io
.
Read the docs for info on how to use it.
Published by brentru about 6 years ago
client.subscribe_group(GROUP_ID)
client.publish(FEED, VALUE, GROUP_ID)
unsubscribe()
feed
with topic
inside _mqtt_message()
Usage Example: https://github.com/adafruit/io-client-python/blob/master/examples/mqtt/mqtt_groups_pubsub.py
Published by brentru about 6 years ago
Here's an example of this sketch in-action, from the eyes of a PiCam haphazardly placed on my desk.
The image is displayed on an Adafruit IO Dashboard using an Image Block, connected to a feed receiving the image data.
Published by brentru about 6 years ago
Published by brentru about 6 years ago
Published by brentru about 6 years ago
We've added the ability to subscribe to someone else's feed (with permission, of course) and publish to it from the mqtt_client
within Adafruit IO Python.
What is feed sharing? https://learn.adafruit.com/adafruit-io-basics-feeds/sharing-a-feed
Minor Notes:
Added client.unsubscribe()
method to mqtt_client
to support unsubscribing from a topic.
Published by brentru over 6 years ago
Handling TypeError: the JSON object must be str, not 'bytes'
in Python 3.5.x for Raspberry Pi users of this library.