GitXplorerGitXplorer
p

screenshot-streamer

public
1 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
41b5a377365770fbe3ffa00b02c1e40373e2aa89

Update readme

pphansch committed 9 years ago
Unverified
81e01ba2e96882cad4e426d6b1069d78953dca5b

Fix syntax error and moveImage issue

pphansch committed 9 years ago
Unverified
ba27484037f1bf0fa37895daf5991d83386203eb

Remove TimeCircles JS

pphansch committed 11 years ago
Unverified
882b195681e7509fb517c089ca9a24cb3ab14ce0

Use grunt-contrib-jasmine for headless tests

pphansch committed 11 years ago
Unverified
c17554f2314c9205a0ba40af931b0248c14ddb23

Remove useless test

pphansch committed 11 years ago
Unverified
018d06480e5eead273047681eb7104d7fd08f316

Add instructions on how to run the test suite

pphansch committed 11 years ago

README

The README file for this repository.

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