summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorFlorian <stayawake@lavabit.com>2014-03-02 14:22:10 +0300
committerFlorian <stayawake@lavabit.com>2014-03-02 14:22:10 +0300
commitc35a1c1abb596b919edf42b274d94c7831b93b13 (patch)
tree00f402824e566a686e0a82ffdb11bb0e4f72ad33 /server.js
parent08feea56c82a658d0953b86d29c5d2ec5a9d5b80 (diff)
added webinterface
Diffstat (limited to 'server.js')
-rw-r--r--server.js34
1 files changed, 28 insertions, 6 deletions
diff --git a/server.js b/server.js
index 81ef373..cdcee8d 100644
--- a/server.js
+++ b/server.js
@@ -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) {