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/
- Host: GitHub
- URL: https://github.com/phansch/screenshot-streamer
- Owner: phansch
- License: mit
- Created: 2014-04-10T08:09:43.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T06:29:41.000Z (about 10 years ago)
- Last Synced: 2024-12-27T17:16:14.109Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://gitlab.com/phansch/screenshot-streamer/
- Size: 134 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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