Moscow air quality monitoring
Ruby CSS JavaScript HTML R C++ Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
arduino
doc
lib
migrations
octopress
public
script
vendor
views
.gitignore
Gemfile
Gemfile.lock
README.md
config.ru
dust_daemon.rb
main.rb
unicorn.rb
unicorn.txt

README.md

Moscow air quality

image

This is a code, that powers Vozduh (russian for "air") air quality monitoring project, including

  • arduino patch for measurement unit and sensor's docs (arduino/)
  • xbee interface and data publishing script, running on local FreeBSD server (dust_daemon.rb)
  • sinatra script with libraries, which powers web site (main.rb)
  • R script for statistics calculation (script/dust_stats.r)

Deploy: git push production master Start: unicorn -c /home/ati/air-quality/unicorn.rb -E production -D

starting dust daemon (in screen) while date; do ruby ./dust_daemon.rb | tee -a dust_daemon-$((date +%Y-%m-%d)).log; sleep 5; done