AirCasting API and web application
Ruby JavaScript HTML CSS Shell
Permalink
Failed to load latest commit information.
app Move methods to the repository Jan 12, 2017
config Add separate endpoint for fetching streaming sessions Nov 3, 2016
db Add index on stream id and time to measurements Nov 4, 2016
doc Fix mistakes Oct 18, 2016
lib Move methods to the repository Jan 12, 2017
public Show heat legen when rmp sensor is selected Nov 10, 2016
script
spec Update stream meta-calculations only for MobileSessions Jan 12, 2017
vendor Initial commit Jan 17, 2012
.codeclimate.yml codeclimate configuration Sep 9, 2015
.gitignore Update .gitignore Jan 12, 2017
.travis.yml jasmine-rails updated to 0.12.1 Oct 8, 2015
COPYING Initial commit Jan 17, 2012
Capfile Add honeybadger Mar 11, 2016
Gemfile Update rb-gsl Jul 28, 2016
Gemfile.lock Update rb-gsl Jul 28, 2016
Guardfile Initial commit Jan 17, 2012
LICENSE LICENSE Oct 2, 2015
README.md
Rakefile Initial commit Jan 17, 2012
analyze.rb make all analyzing tools available Aug 1, 2012
config.ru use Rack::Deflater Sep 25, 2015

README.md

Build Status Code Climate

AirCasting - Share your Air!

About

This is the AirCasting project - the project aims to build a platform for gathering, visualization and sharing of environmental data. To learn more about the platform visit aircasting.org.

Developing

For a Debian/Ubuntu system, the easiest way to start is:

RVM prerequisites

sudo apt-get install bzip2 curl subversion git-core -y

Install RVM

curl -L https://get.rvm.io | bash -s

RVM & app requirements

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config imagemagick mysql-server libmysqlclient-dev redis-server libgsl0-dev nodejs -y

install ruby

rvm install 2.0.0
rvm use 2.0.0

install bundler

gem install bundler

clone sources

git clone git://github.com/HabitatMap/AirCasting.git aircasting
cd aircasting
cp config/database.yml.example config/database.yml

bundle dependencies

bundle install

create database

bundle exec rake db:create db:migrate

run sidekiq

bundle exec sidekiq -d

run application, by default starts at localhost:3000

bundle exec rails server

Tests

run tests

bundle exec rspec
bundle exec rake spec:javascript

ElasticSearch

Read more here.

API documentation

Read more here.

Troubleshooting

  • Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead (...)

    If you see this error, you need to downgrade MySql database server to ver. 5.6. We don't support the latest MySql server version yet.

  • Library not loaded: /usr/local/opt/mysql/lib/libmysqlclient.20.dylib

    If you get this error while attempting rake db:migrate, reinstall gem mysql2:

    gem uninstall mysql2 gem install mysql2 -v '0.3.20'

Contribute

If you'd like to contribute just use the usual github process - fork, make changes, issue a pull request.

Contact

You can contact the authors by email at info@habitatmap.org.

Thanks

AirCasting uses The YourKit Java Profiler for Performance Tuning

YourKit is kindly supporting open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of innovative and intelligent tools for profiling Java and .NET applications. Take a look at YourKit's leading software products: YourKit Java Profiler and YourKit .NET Profiler.

License

The project is licensed under the GNU Affero GPLv3. For more information see COPYING and visit http://www.gnu.org/licenses/agpl.html.