This code is part of my internet controlled pan and tilt system project.
Pan & Tilt Controller connects to Pan & Tilt Server using Socket.IO client library by @lyondhill. It listens for commands from server, translates them and sends them to Pan & Tilt Driver over serial port.
It's written in Ruby language.
You need to have Ruby (tested on 1.9.3) and Bundler installed on your system.
You can use RVM, rbenv or your package manager to install Ruby.
Once you have Ruby installed, run
$ gem install bundler
to install Bundler. You might need to use sudo
depending on the way you installed Ruby.
Install dependencies:
$ bundle install
Start the controller:
$ bundle exec controller.rb <Pan&Tilt server url> <Pan&Tilt driver serial port>