Feed Setup
If you do not already have an Adafruit IO account set up, head over to io.adafruit.com to link your Adafruit.com account to Adafruit IO.
The first step is to create a new Adafruit IO feed to hold the data from the temperature sensor. Navigate to the feeds page on Adafruit IO. Then click Actions -> Create New Feed, and name this feed rx.
- If you do not already know how to create a feed, head over to Adafruit IO Basics: Feeds.
Dashboard Setup
Now that we have feeds to hold data and display the type of data, we need a way to consolidate these feeds in one place. Dashboards are a feature of Adafruit IO which allow us to display and control feeds using widgets called Blocks.
- If you haven't used an Adafruit IO Dashboard before, check out the Adafruit IO Basics: Dashboards learn guide for a quick primer.
|
Add Line Chart Block
The MCP9808 temperature sensor sends data to Adafruit IO once per minute. We'll want a way of displaying historical data on the dashboard. From the dashboard, click the + button to create a new block.
From the modal, Click the Line Chart block.
|
|
|
Add Gauge Block
A gauge is a read only block type that shows a fixed range of values. We'll add a gauge block to display the real-time value from the wearable temperature monitor in real-time
|
|
The gauge will change color if the value goes out of bounds.
Set Decimal Places to display to 1. You may also optionally show an icon next to the value. To do this:
|
Your dashboard should look like the screenshot below:
Trigger Setup
Triggers are a way to do something when a certain situation occurs. We'll be using a reactive trigger to email us if the rx feed receives a value from the thermometer above our fever-threshold.
Navigate to your Adafruit IO account's Triggers page. Click Actions, then click Create a New Trigger Select the Reactive Trigger |
|
Next, we'll configure the trigger.
|
Obtain Adafruit IO Key
You are also going to need your Adafruit IO username and secret API key.
Navigate to your profile and click the View AIO Key button to retrieve them. Write them down in a safe place, you'll need them for the next step.