diff options
author | Florian <stayawake@lavabit.com> | 2014-03-02 14:22:10 +0300 |
---|---|---|
committer | Florian <stayawake@lavabit.com> | 2014-03-02 14:22:10 +0300 |
commit | c35a1c1abb596b919edf42b274d94c7831b93b13 (patch) | |
tree | 00f402824e566a686e0a82ffdb11bb0e4f72ad33 /server.js | |
parent | 08feea56c82a658d0953b86d29c5d2ec5a9d5b80 (diff) |
added webinterface
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 34 |
1 files changed, 28 insertions, 6 deletions
@@ -11,16 +11,36 @@ var app = express(); var cameras = [ { - baseurl: 'http://admin:123456@192.168.1.10', - model: 'conceptronic' + baseurl: 'http://192.168.1.20:8080/cam/0', + model: 'mjpegplexer' }, { - baseurl: 'http://admin:123456@192.168.1.11', - model: 'conceptronic' + baseurl: 'http://192.168.1.20:8080/cam/1', + model: 'mjpegplexer' }, { - baseurl: 'http://admin:123456@192.168.1.12', - model: 'conceptronic' + baseurl: 'http://192.168.1.20:8080/cam/2', + model: 'mjpegplexer' + }, + { + baseurl: 'http://192.168.1.20:8080/cam/3', + model: 'mjpegplexer' + }, + { + baseurl: 'http://192.168.1.20:8080/cam/4', + model: 'mjpegplexer' + }, + { + baseurl: 'http://192.168.1.20:8080/cam/5', + model: 'mjpegplexer' + }, + { + baseurl: 'http://192.168.1.20:8080/cam/6', + model: 'mjpegplexer' + }, + { + baseurl: 'http://192.168.1.20:8080/cam/7', + model: 'mjpegplexer' } ]; @@ -97,6 +117,8 @@ for (var camera_idx in cameras) { app.use('/cam/' + camera_idx + '/browse', express.static(__dirname + '/cam_public')); } + app.use('/interface', + express.static(__dirname + '/public')); app.get('/blackout', function(req, res) { for (var camera_idx in cameras) { |