ThingSpeak Server
Go to file
2014-11-06 17:07:13 -05:00
app remove features page 2014-11-06 17:07:13 -05:00
autotest update with changes from Production branch 2014-02-17 12:05:39 -05:00
config remove features page 2014-11-06 17:07:13 -05:00
db change plugins.private_flag to public_flag 2014-10-16 10:43:21 -04:00
lib fix error when user doesn't own channel and tries to view api keys 2014-06-29 16:21:27 -04:00
public remove features page 2014-11-06 17:07:13 -05:00
script initial checkin of full application 2011-03-27 16:56:15 -04:00
spec don't list public plugins 2014-10-17 15:12:46 -04:00
test updates from Production 2014-10-09 13:25:48 -04:00
vendor/plugins remove old plugin 2014-07-30 15:37:19 -04:00
.gitignore Updating gem 2013-02-11 20:10:11 -05:00
.ruby-gemset update with changes from Production branch 2014-02-17 12:05:39 -05:00
.ruby-version update with changes from Production branch 2014-02-17 12:05:39 -05:00
config.ru initial checkin of full application 2011-03-27 16:56:15 -04:00
Gemfile updates from Production 2014-09-12 14:20:18 -04:00
Gemfile.lock update gems; fix timeout errors 2014-10-06 11:42:02 -04:00
LICENSE Edited LICENSE via GitHub 2011-03-27 16:14:07 -07:00
Rakefile initial checkin of full application 2011-03-27 16:56:15 -04:00
README.textile update README file with admin setup 2014-10-28 17:50:22 -04:00

h1. ThingSpeak

"ThingSpeak":https://thingspeak.com 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.

In addition to storing and retrieving numeric and alphanumeric data, the ThingSpeak API allows for numeric data processing such as timescaling, averaging, median, summing, and rounding. Each ThingSpeak Channel supports data entries of up to 8 data fields, latitude, longitude, elevation, and status. The channel feeds support JSON, XML, and CSV formats for integration into applications.

The ThingSpeak application also features time zone management, read/write API key management and JavaScript-based charts from Highslide Software / Torstein Hønsi.

Support for ThingSpeak is available on the "ThingSpeak Community":http://community.thingspeak.com/ site which features a "Blog":http://community.thingspeak.com/, "Forum":http://community.thingspeak.com/forum/, "Documentation":https://thingspeak.com/docs, and "Tutorials":https://thingspeak.com/docs/tutorials/.

h3. Before You Begin

1. Install Ruby 2, RubyGems, Rails 4, git, and a database like MySQL
2. Download the application using git: git clone git@github.com:iobridge/thingspeak.git
3. Change to the thingspeak directory and install the appropriate gems: sudo bundle install

h3. Configuration

1. Set your database configuration file at config/database.yml (see config/database.yml.example for an example)
2. Create the database: rake db:create
3. Create the database tables: rake db:schema:load

h3. Run The Application

1. Start the server: rails server

Your application will now be running at http://localhost:3000/

h2. Changing Application Text

Make changes to config/locales/en.yml
To avoid errors, please ensure your lines start with spaces, not tabs.
Set your application name using the 'application_name' key.

h2. (Optional) Email Setup

Set your domain, user_name, and password in config/environment.rb

h2. (Optional) Admin Setup

Open a rails console: <code>rails console</code> or <code>RAILS_ENV=production rails console</code>, depending on your environment
Add the admin user: <code>AdminUser.create!(email: 'YOUR_ADMIN_EMAIL@EXAMPLE.COM', password: 'YOUR_PASSWORD', password_confirmation: 'YOUR_PASSWORD')</code>
Exit the rails console: <code>exit</code>
Login via the admin web interface at: "http://YOUR_DOMAIN.COM/admin"

h1. Installation on clean install of Ubuntu 12.04 LTS

<code>sudo apt-get upgrade</code>
<code>sudo apt-get -y install build-essential mysql-server mysql-client libmysqlclient-dev libxml2-dev libxslt-dev git-core curl rubygems</code>
<code>\curl -sSL https://get.rvm.io | bash -s stable</code>
<code>rvm install 2.1</code>
<code>git clone https://github.com/iobridge/thingspeak.git</code>
<code>cd thingspeak</code>
<code>bundle install</code>
<code>cp config/database.yml.example config/database.yml</code>
<code>rake db:create</code>
<code>rake db:schema:load</code>
<code>rails server</code>

h2. Upgrading existing installations

<code>git pull origin master</code>
<code>bundle install</code>
<code>rake db:migrate</code>
If your server is active you can restart it by going to the active terminal, hitting Ctrl-c, and then typing:
<code>rails server</code>