We've got a detailed series of guides on Adafruit IO basics, so this section will limit itself to the high points.

First, you'll need an Adafruit IO account and an AIO key. At the time of this writing, IO is still in a limited beta.

If you don't have an IO account yet, or would rather log things locally, just skip ahead to the next section on SQLite logging.

Once logged in, you can find the value of your key by clicking "AIO KEY" in the upper righthand side of your IO dashboard. It'll be a long, random-looking hash string.

Add Your Key to mousetrap.cfg

Open up mousetrap.cfg in Nano (or your editor of choice), and find the key option in the io section:

You'll need to uncomment this value (remove the at the beginning of the line) and replace xxx with your key.

Create Feeds for Each Sensor

Next, you'll need to create two feeds by clicking :

  • Mouse Problems
  • Trap Activity

Click on "CREATE FEED" and do something like the following for each:

Mine look like this:

Create a Dashboard and Blocks to Display Feeds

Next, you'll need to create a new dashboard by clicking "Your Dashboards" on the menu and then "CREATE DASHBOARD" on the upper righthand side.

Once that's done, add some blocks to display each feed. You can see my feed here - I went with a line chart for each feed and a gauge for the Mouse Problems feed.

Experiment with this! You might find a different display layout more interesting or useful.

This guide was first published on May 01, 2015. It was last updated on May 01, 2015.

This page (Logging and Displaying Data on Adafruit IO) was last updated on Apr 29, 2015.

Text editor powered by tinymce.