raspberry pi torrentcast
torrentcast builds a REST API around peerflix and omxplayer. omxplayer is a commandline player especially build for usage on a raspberry pi. peerflix on the otherhand is a small lib/tool written for node which enables streaming of video torrents before they even finished downloading.
Make sure you have omxplayer and node.js installed on your raspberry. Then run:
npm install torrentcast -g
You can now start the server by running
By default it will spin up a HTTP Server listening on port 9090.
// Assuming your Raspberry PI has the IP 192.168.0.10...// Start playing a torrentcurl --data "url=<URL to Torrent File>"// Toggle between pause and playcurl -XPOST// Stop playingcurl -XPOST// Increase volumecurl -XPOST// Decrease volumecurl -XPOST// Get the current State.// Can be: PLAYING, PAUSED or IDLEcurl
Copyright (c) 2014 Simon Kusterer Licensed under the MIT license.