ThingSpeak Server
app | ||
autotest | ||
config | ||
db | ||
lib | ||
public | ||
script | ||
spec | ||
test | ||
vendor/plugins | ||
.gitignore | ||
.ruby-gemset | ||
.ruby-version | ||
config.ru | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
Rakefile | ||
README.textile |
h1. ThingSpeak "ThingSpeak":http://www.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":http://community.thingspeak.com/documentation/, and "Tutorials":http://community.thingspeak.com/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 h1. Installation on clean install of Ubuntu 12.04 LTS sudo apt-get update sudo apt-get -y install build-essential ruby1.9.3 git mysql-server mysql-client libmysqlclient-dev libxml2-dev libxslt-dev sudo gem install rails git clone https://github.com/iobridge/thingspeak.git cp thingspeak/config/database.yml.example thingspeak/config/database.yml cd thingspeak bundle install bundle exec rake db:create bundle exec rake db:schema:load rails server