Adafruit_CircuitPython_AdafruitIO
CircuitPython wrapper library for communicating with Adafruit IO.
Dependencies
This driver depends on:
Please ensure that all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Installing from PyPI
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install adafruit-circuitpython-adafruitio
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-adafruitio
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-adafruitio
Usage Example
Usage examples for the Adafruit IO HTTP API are within the examples/http folder.
Usage examples for the Adafruit IO MQTT API are within the examples/mqtt folder.
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Table of Contents
Examples
API Reference
adafruit_io
IO_HTTP
IO_HTTP.add_feed_to_group()
IO_HTTP.create_and_get_feed()
IO_HTTP.create_feed_in_group()
IO_HTTP.create_new_feed()
IO_HTTP.create_new_group()
IO_HTTP.delete_data()
IO_HTTP.delete_feed()
IO_HTTP.delete_group()
IO_HTTP.get_current_usage()
IO_HTTP.get_feed()
IO_HTTP.get_group()
IO_HTTP.get_remaining_throttle_limit()
IO_HTTP.get_throttle_limit()
IO_HTTP.get_user_info()
IO_HTTP.get_user_rate_info()
IO_HTTP.receive_all_data()
IO_HTTP.receive_data()
IO_HTTP.receive_n_data()
IO_HTTP.receive_random_data()
IO_HTTP.receive_time()
IO_HTTP.receive_weather()
IO_HTTP.send_batch_data()
IO_HTTP.send_data()
IO_HTTP.send_group_data()
IO_MQTT
IO_MQTT.add_feed_callback()
IO_MQTT.connect()
IO_MQTT.disconnect()
IO_MQTT.get()
IO_MQTT.is_connected
IO_MQTT.loop()
IO_MQTT.publish()
IO_MQTT.publish_multiple()
IO_MQTT.reconnect()
IO_MQTT.remove_feed_callback()
IO_MQTT.subscribe()
IO_MQTT.subscribe_to_errors()
IO_MQTT.subscribe_to_randomizer()
IO_MQTT.subscribe_to_throttling()
IO_MQTT.subscribe_to_time()
IO_MQTT.subscribe_to_weather()
IO_MQTT.unsubscribe()
validate_feed_key()
validate_n_values()