Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on May 05, 2012
Robert Marsan Wow. 0e03dae
Robert Marsan shutting things up, fixin stuff down. e807f64
Showing with 9 additions and 1 deletion.
  1. +5 −0 httpstream/server.js
  2. +4 −1 osc/oscapi.py
View
5 httpstream/server.js
@@ -1,9 +1,14 @@
+
var express = require('express')
, app = express.createServer()
, io = require('socket.io').listen(app);
app.listen(8009);
+io.set('log level', 1);
app.use(express.bodyParser());
+app.get('/', function (req, res) {
+ res.sendfile(__dirname + '/index.html');
+});
app.post('/sendstream', function(req, res) {
//console.log("Got a stream thingie req:"+req.body+" res:"+res);
View
5 osc/oscapi.py
@@ -279,7 +279,10 @@ def run(self):
if self.metadata:
jsondata = simplejson.dumps({"colors":self.pixels, "title":self.metadata.title, "creator": self.metadata.creator})
#print "Sending to server: %s data: %s"%(streamurl, jsondata)
- urllib2.urlopen(streamurl, "data="+jsondata)
+ try:
+ urllib2.urlopen(streamurl, "data="+jsondata)
+ except:
+ pass
time.sleep(1.0/12.0)

No commit comments for this range

Something went wrong with that request. Please try again.