Skip to content

adafruit/Adafruit_IO_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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