No description
| Adafruit_IO | ||
| adafruit_io | ||
| tests | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE.md | ||
| Makefile | ||
| MANIFEST.in | ||
| README.md | ||
| setup.py | ||
| test.py | ||
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
- Fork it ( http://github.com/adafruit/io-client-python/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request