Raspberry pi is compatible with Adafruit.io
additional usage documentation: Usage: https://adafruit-io-python-client.readthedocs.io/en/latest/
Sign up for a free Adafruit.io account.
note the limits on a free account below. (these will make more sense later)
2. Once you're logged in, click on the yellow key to get your unique API credentials.
Scroll down to "scripting" to get your username and key
Hint: if you don't see the key, look for the "IO" menu item at the top of the screen. Click on it.
2. While still on your adafruit.io account page, click on Feeds, and create a New Feed
Give your feed a name and a description without spaces or special characters (underscores are OK).
3. While still on your adafruit.io account page, click on Dashboards, and create a New Dashboard
Give your dashboard a name and a description.
4. Open your dashboard and look for the gear icon.
From the dropdown menu, choose create new block
There are many blocks to choose from, but let's start with a simple line graph.
You'll be asked to assign a feed to the block. Assign the test feed you made. You don't need to change any parameters right now. Just scroll down and create block.
The following steps are on the Raspberry Pi.
Open a terminal window on the Raspberry Pi.
Type:
sudo pip3 install adafruit-io
if that doesn't work look here
Load the sample code: adafruit_io_basic.py
Add your credentials and feed name as shown in this image.
Now you should be able to run the code and see your data count up in the feed or on your dashboard.
More examples can be found in this adafruit github repository.
Challenges:
Can you add a sensor of any kind (like the temperature sensor we used earlier for example) and get the data to post to your dashboard?
Can you create a version of this example to control an LED or other item remotely using the Adafruit.io site.