Name Last Update
helpers Loading commit data...
public Loading commit data...
spec/javascripts Loading commit data...
views Loading commit data...
.gitignore Loading commit data...
.ruby-version Loading commit data...
Gemfile Loading commit data...
Gemfile.lock Loading commit data...
Gruntfile.js Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
Rakefile Loading commit data...
app.rb Loading commit data...
config.ru Loading commit data...
package.json Loading commit data...

screenshot-streamer

The problem: My laptop is not powerful enough to actually do video livestreaming.

The solution:

It is powerful enough to take screenshots every 20 seconds or so.

This app accepts screenshot uploads via an API and shows the last 10 uploaded screenshots.

Setup the app

You will need ruby-2.1.0 and node installed before.

git clone git@github.com:phansch/screenshot-streamer.git && cd screenshot-streamer
bundle install
npm install

Starting the app

rerun 'rackup'

Running the tests

grunt jasmine

Setting credentials

Before you can post screenshots, you will need to setup the credentials.

Create a .env file with the credentials you want:

LOGIN=a_username
PASS=a_password

Posting screenshots

curl -v -F "data=@sc2.png"  http://localhost:9292/screenshot/whatever.png -u username:password
                  ^                             ^                                     ^
          the file to upload            filename on server              replace with your credentials