In this article we will cover how to stream data online with IO.adafruit.com.
- First you will need to create an account on Adafruit's website.
Follow the link below to login/create an account.
- Once you have created an account and/or signed in, select the IO section from the top menu. Next click on Feeds from the secondary menu. This will drop down the Feeds menu, and from there select the "view all" option.
- Within the Feeds section click the ACTIONS drop down menu and select Create a New Feed.
- A new window will pop up and allow you to create a new feed. Type in the feed name and description and click the Create button.
- You should see your newly created feed listed in your Feeds section. If you have previously made feeds before they will also appear here.
Click on the blue text of your newly created feed.
- This will take you to a new page which displays the data sent to this feed. Select the Feed info option from the top right hand side of the page.
- This will open your Edit Feed page.
- From your Edit Feed page copy and paste the API URL to a Notepad file. You can now close out of the window.
- Next click the AIO Key text in the top right corner of the page.
- This will open a new YOUR AIO KEY window. From this page copy and paste your Active Key into a Notepad file and close the window.
- Combine the API URL and the AOI Key that you previously copied into a Notepad file as shown below.
Keep this URL for later.
PUT YOUR API URL HERE + /data.json?X-AIO-Key= + PUT YOUR AOI KEY HERE
- Now you will insert the HTTP Block by selecting the HTTP Block from the Virtual Block menu.
- To configure the block select the Properties Gear Icon under the block in the Workspace. This will open the Properties Panel
- In the Properties Panel paste the URL you created before into the Host input box. Click the Save button and close out of the Properties Panel.
- Open the HTTP Logic maker by clicking on the middle icon under the block.
- Connect up the following gates
PLAY > CLOCK > COUNTER > JSON > ACTION
- In the JSON Gate type value as the first key name.
- Select the Post option from the ACTION Gate.
- If you click on the Profile option on the IO website you will see a section called Current Status. There it states that a free account has a data rate of 30/minute.
It is important to keep this limit in mind when creating data streams. In this case a clock time of 3000ms which is 20/minute was chosen so that it is under the 30/minute limit.
- Click the Apply button in the Logic Maker and hit the PLAY Gate to start the counter. This will start sending data to the host URL you set up.
- If you go back to the options of the HTTP Gate you should see that it says Request Successful. This means that your data has been successfully sent to your host URL.
- If you go back to the Feed page of your created feed, you should see the data sent by the Logic Maker.
Additionally if you scroll down you can see the time each of the data points were sent and the time they were recorded.
By streaming online it allows you to access your data from anywhere. You could also share it with your friends, or on social media.