ThingSpeak API Ruby Gem

If you use Ruby to write programs and apps, Daniel Treacy created a Ruby wrapper for the ThingSpeak API. This Gem makes it easier to access the ThingSpeak API inside of your Ruby code.

Install from the command line:

gem install 'thingspeak-api'

To use, simply include it in your Gemfile:

gem 'thingspeak-api'

Ruby Interface Code

require 'thingspeak'


# post an update to your channel, returns the identifier of the new post if successful
client.update_channel({field1: "foo", field2: "bar"}) # => 3


Leave a Reply