Photon To Thingspeak - toSvenson/intro-workshop GitHub Wiki

Push Data from Photon to ThingSpeak

Prerequisites to complete is part of the workshop:

  • A Photon Cloud Account with one or more active sensors
  • A ThingSpeak Account

What is Thingspeak?

ThingSpeak is an open source “Internet of Things” application and API to store and retrieve data from things using HTTP over the Internet or via a Local Area Network. With ThingSpeak, you can create sensor logging applications, location tracking applications, and a social network of things with status updates.

ThingSpeak offers free data storage and analysis of time-stamped numeric or alphanumeric data.

ThingSpeak stores data in channels. Channels support an unlimited number of timestamped observations (think of these as rows in a spreadsheet). Each channel has up to 8 fields (think of these as columns in a speadsheet). Check out this video for an overview.

Channels may be public, where anyone can see the data, or private, where only the owner and select users can read the data. Each channel has an associated Write API Key that is used to control who can write to a channel. In addition, private channels have one or more Read API Keys to control who can read from private channel. An API Key is not required to read from public channels. Each channel can have up to 8 fields. One field is created by default.

You can visualize and do online analytics of your data on ThingSpeak using the built in version of MATLAB.

Create a ThingSpeak channel

Go to https://www.thingspeak.com and log in with your account.

From the menu choose Channels > My Channels
To create your new channel, press the button New Channel
Give your channel a Name (e.g. Workshop) and enable 3 fields and give them a label:

Field Label
Field 1 Temperature
Field 2 Air Pressure
Field 3 Distance

Also check Make Public? and finally Save Channel

While you have your channel details still opened, get familiar with the different parameters specific to your channel.

Channel ID can be found at the top of the channel page and in the URL of the webpage.
API KEYS both the Write and Read key can be seen on this tab.

Let Photon Cloud push it's data to ThingSpeak