No description
Find a file
2015-01-14 10:37:16 -08:00
Adafruit_IO Update MQTT client to user /data instead of /stream path. 2015-01-14 10:37:16 -08:00
examples Add MQTT client and update tests. 2015-01-13 23:37:00 -08:00
tests Add MQTT client and update tests. 2015-01-13 23:37:00 -08:00
.gitignore initial working library 2014-05-27 11:23:53 -05:00
CHANGELOG.md initial working library 2014-05-27 11:23:53 -05:00
LICENSE.md initial working library 2014-05-27 11:23:53 -05:00
Makefile initial working library 2014-05-27 11:23:53 -05:00
MANIFEST.in initial io client python library commit 2014-05-21 13:46:30 -05:00
README.md initial working library 2014-05-27 11:23:53 -05:00
setup.py Add MQTT client and update tests. 2015-01-13 23:37:00 -08:00

Adafruit_IO

TODO: Write a description

Installation

pip install Adafruit_IO

Usage

Easiest

from Adafruit_IO import Client
aio = Client('unique_key_id')
#data can be of any type, string, number, hash, json
aio.send("Feed Name", data)

#You can also receive data easily:
value = aio.receive("Feed Name")

#It will ge the next input available, and mark it as read.

Advanced

from Adafruit_IO import Client
aio = Client('unique_key_id')

#get all of your feeds for the key
aio.feeds

#get a specific feed using ID or Name
aio.feeds(3)
aio.feeds("feed name")

#create a feed
aio.create_feed({:name => "New Feed Name", ...})

Contributing

  1. Fork it ( http://github.com/adafruit/io-client-python/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request