An open API service indexing awesome lists of open source software.

https://github.com/phansch/screenshot-streamer

New repository: https://gitlab.com/phansch/screenshot-streamer/
https://github.com/phansch/screenshot-streamer

Last synced: 8 months ago
JSON representation

New repository: https://gitlab.com/phansch/screenshot-streamer/

Awesome Lists containing this project

README

          

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