09
Oct 14

[Official Tutorial] Sending Tweets Automatically Every Morning With TimeControl

TimeControl can be used to send Tweets automatically at predetermined times.  In this tutorial, we’ll be sending a Tweet every weekday with the current time and the current CheerLights color.

The first step is to link a Twitter account to ThingSpeak.

Next, we’ll create a new TimeControl with the following values:

  • Name: “CheerLights to Twitter”
  • Frequency: “Recurring”
  • Days: “Mon”, “Tue”, “Wed”, “Thu”, “Fri”
  • Time: “9:40 am”
  • Fuzzy Time: “+/- 10 minutes”
  • Action: “ThingTweet”
  • Tweet: “It is currently %%datetime%% and CheerLights is %%channel_1417_field_1%%.”
  • Twitter Account: (select your linked Twitter account)

Save this TimeControl and you’re finished.  Every weekday within 10 minutes of 9:40 am in your timezone, TimeControl will send a Tweet with the current datetime and the current CheerLights color.

The CheerLights Channel ID is 1417, and colors are saved in field 1, so %%channel_1417_field_1%% will be replaced with the current CheerLights color.  You can change these values to access the most recent data from your own Channels.

Here’s an example Tweet from this tutorial.



03
Oct 14

[Instructables] Wi-Fi Temperature Data Logger

[noel portugal] is at it again! This time Noel created a simple Wi-Fi based sensor data logger using ThingSpeak, the ESP8266 Wi-Fi module, and a digital temperature sensor. At the heart of the project is a low-cost Wi-Fi module that could be the basis for many Internet of Things projects.

ThingSpeak WiFi Temperature Logger

Everything you need to know in order to build your own sensor logging project is on Noel’s Instructables.

[via Instructables]



26
Sep 14

ThingSpeak Introduces New Internet of Things App – TimeControl

A ThingSpeak App is a service offered by ThingSpeak that runs in the cloud to help you build connected projects and release connected products for the Internet of Things. We are happy to announce today that we are releasing a new app and we are excited to see what you do with it!

Introducing TimeControl…

TimeControl is a web service hosted by ThingSpeak that executes any type of HTTP service call or sends Tweets at predetermined times or schedules. We now offer one-time commands and weekly recurring schedules for commands. TimeControl executes a ThingHTTP or ThingTweet command, and ThingHTTP can interface with any external Web Service API by doing SSL, Basic Auth, custom HTTP headers, GETs, POSTs, PUTs, and DELETEs. ThingHTTP simplifies connecting low-power, low-resource microcontrollers to complex web service APIs such as Twilio, Xively, and Amazon. When you combine TimeControl + ThingHTTP, you get scheduled triggers to any web service you can imagine and scheduled control of an embedded IoT device.

TimeControl Examples Apps

Example TimeControl Projects

  • Turn on your lights every day at 4pm
  • Set a feeder schedule on your aquarium
  • Schedule full control of ioBridge and RealTime.io devices
  • Send a Tweet of your Channel’s last value every morning

ThingSpeak IoT Apps

  • ThingTweetLink your Twitter account to ThingSpeak and send Twitter messages using our simple API
  • ThingHTTPCreate custom POSTs or GETs to other web services and retrieve the data
  • TweetControlListen to commands from Twitter and then perform an action
  • ReactPerform actions when conditions are met by your data in your channels
  • TalkBackAllow devices to execute queued commands
  • TimeControl – Automatically execute ThingHTTP requests at predetermined times and schedules 

TimeControl Resources



28
Aug 14

Internet of Things #throwbackthursday #tbt #iot

It’s Throwback Thursday!

We have come a long way since building cloud platforms for connected devices – now known as “The Internet of Things”. Here’s what our first website for the ThingSpeak project looked like 5 years ago…

First ThingSpeak Website

Get started with IoT now:
Visit ThingSpeak.com or fork the project on GitHub!



11
Jul 14

ThingSpeak Data Channels – Now With More Metadata

ThingSpeak user [DodBasim]  requested an additional field inside of the ThingSpeak Data Channel. We named this new field “metadata”. This field works like the “status” field, but allows you to post any type of extra data along with your ThingSpeak Data Channel. An example would be to use the “metadata” field to store a JSON object that you want to parse with your application.

POST https://api.thingspeak.com/update
     api_key=XXXXXXXXXXXXXXXX
     field1=73
     metadata={"officeTemp":73}

The full ThingSpeak Channels API is available on ThingSpeak Docs.

[via ThingSpeak Forums]



20
May 14

[Official Tutorial] Monitoring Linux Server Statistics

ThingSpeak can be used to easily monitor CPU usage %, memory usage %, and disk usage % on any Linux machine connected to the internet.

First, create a new Channel, and fill out the field names as follows: Field 1 = “CPU Usage (%)”, Field2 = “Memory Usage (%)”, Field 3 = “Disk Usage (%)”.

ThingSpeak Channel Settings

Next, add the open-source server statistics script to your server, which can be found at: https://raw.githubusercontent.com/iobridge/thingspeak/master/lib/server_stats.sh

Inside the script there’s an API Key variable, which should be replaced with your specific Channel’s API Key (leave the single quotes, and only replace the X’s): 

api_key='XXXXXXXXXXXXXXXX'

For the script to work properly, install the “bc” package via:

sudo apt-get install bc

Then make the script executable: 

chmod +x server_stats.sh

Finally, edit your crontab file:

crontab -e

Make the script execute every minute by adding this line to your crontab (make sure you use the proper path to the script): 

* * * * * /path/to/server_stats.sh

The script will then automatically POST server stats to the Channel specified by the API Key every minute.

You can see some of the ThingSpeak server statistics here:

 



09
May 14

ThingSpeak Selects Phusion Passenger Enterprise to Power its Internet of Things API

The servers behind ThingSpeak have been slammed with data from all kinds of IoT devices and applications. We recently upgraded the entire backend of ThingSpeak and increased capacity to support our growth. One of the key decisions in our redesign was to select Phusion Passenger Enterprise to power the ThingSpeak “Internet of Things” API. Phusion Passenger’s “hybrid evented, multi-threaded and multi-process design” is perfect for the Internet of Things pattern for applications.

ThingSpeak Phusion Passenger IoT Application

About Phusion Passenger

Phusion Passenger is a web server and application server for Ruby, Python, Node.js and Meteor web apps. It makes web app deployments a lot simpler and less complex, by managing your apps’ processes and resources for you.

What makes it so fast and reliable is its C++ core, its zero-copy architecture, its watchdog system and its hybrid evented, multi-threaded and multi-process design.



09
May 14

New Spline Charts for IoT Data Visualizations

Once your data gets into ThingSpeak, you than want to do something with it. A first step is to see the data. If the data are sensor values from a Nest thermostat for example, then you want to see it as a chart. We added a new way to visualize your data by adding Spline Charts! Spline Charts are super easy to create with ThingSpeak, just add “type=spline” to your ThingSpeak Chart API call. (And of course, once you have it as a chart, you may want to embed it on our ioBridge Dashboard application.)

Here’s what the new Spline Chart looks like:

Here’s a regular line chart:

And just as a reminder, here are all of the supported ThingSpeak Chart types:

  • type=bar
  • type=column
  • type=line
  • type=spline
  • type=step

For complete ThingSpeak Charts documentation, check out ThingSpeak Docs.



09
May 14

ThingSpeak Launches New Website

Things want to speak…

We keep hearing about how many Billions and Billions of things there will be connected. Just think about how much data that they will create! Yep, it’s Big Data, or even, Bigger Data. ThingSpeak is the only open data platform specifically designed for the Internet of Things available ‘in the cloud’ or on your own network to capture and distribute data from things.

A new homepage for ThingSpeak

When we look out into the Cosmos, we see Billions and Billions of stars and keep a fond memory of Carl Sagan in our hearts. As we connect this planet, we can’t but think of the scale and the magnitude that IoT will bring. Using this inspiration, we launched the new ThingSpeak.com!

ThingSpeak Homepage

Carl Sagan said, “We have lingered long enough on the shores of the cosmic ocean, we are ready at last to set sail for the stars.” We believe the same about the Internet of Things! Let’s get going!



06
May 14

[Official Tutorial] Connecting Electric Imp to ThingSpeak IoT Data Services

Build Open Data Applications with Electric Imp and ThingSpeak!

Electric Imp is a connectivity platform for connecting Wi-Fi devices to cloud services, much like RealTime.io and Iota Wi-Fi modules and Spark.io. Some Electric Imp module’s come in an SD card form factor and adds Wi-Fi connectivity to what’s connected to the Electric Imp module. Access to the Electric Module happens via the Electric Imp cloud. While connectivity is simplified with the Electric Imp system, you will need a data service like ThingSpeak to complete the Internet of Things experience. Once data from Electric Imp devices are in ThingSpeak, you can easily build applications and interactivity with other devices and platforms.

Electric Imp to ThingSpeak Internet of Things

We put together a quick start tutorial for the Electric Imp and ThingSpeak, so you can quickly and easily get the Electric Imp talking to ThingSpeak. The tutorial uses parts from SparkFun – the Electric Imp Wi-Fi SD module, breakout board, and USB cable / power supply.

Get started now…  Check out the official Electric Imp and ThingSpeak Tutorial and source code on GitHub.