mirror of
http://git.sublab.org/mjpegplexer/
synced 2025-07-04 15:06:07 +02:00
added webinterface
This commit is contained in:
parent
08feea56c8
commit
c35a1c1abb
25 changed files with 738 additions and 6 deletions
34
server.js
34
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue