Skip to content

Commit

Permalink
some fixes to make things work
Browse files Browse the repository at this point in the history
  • Loading branch information
asdf committed Jun 7, 2018
1 parent c6b54ff commit c6d0324
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions br-webui/_includes/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
socket.on('getlogs', function(data) {
console.log("In get logs");
console.log("In get logs <header>");
console.log(data);
});
Expand Down Expand Up @@ -64,4 +64,4 @@
</div>
</nav>

<div class="container">
<div class="container">
2 changes: 1 addition & 1 deletion br-webui/views/camera.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="js/bootstrap-slider.js"></script>

<script>
var socket = io();
//var socket = io();
var _cameras = [];
var _activeFormat = {};
Expand Down
4 changes: 4 additions & 0 deletions br-webui/views/network.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
// WiFi Setup
var networking = io('/networking');
socket.on('getlogs', function(data) {
console.log("In get logs <network>");
console.log(data);
});
networking.on('wifi aps', function(data) {
console.log('got wifi aps')
Expand Down
7 changes: 6 additions & 1 deletion br-webui/views/system.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script src="socket.io-file-client.js"></script>
<script>
var _updating = false;
var socket = io();
//var socket = io();
// Listen to internet connectivity status updates from the backend
// Disable features that require backend internet connectivity when
Expand All @@ -21,6 +21,11 @@ socket.on('cpu stats', function(data) {
console.log('got cpu status', data);
});
socket.on('getlogs', function(data) {
console.log("In get logs <system>");
console.log(data);
});
socket.on('terminal output', function(data) {
var terminalEl = document.getElementById("terminal-output");
var html = terminalEl.innerHTML + data;
Expand Down

0 comments on commit c6d0324

Please sign in to comment.