Merge branch 'master' of gitlab.com:hugvey/hugvey
This commit is contained in:
commit
69a858b251
3 changed files with 34 additions and 2 deletions
|
@ -112,6 +112,10 @@ install bash on all of them
|
||||||
for i in {1..26}; do echo $i;ssh pi@hugvey$i.local "cd hugvey && sudo bash install_server.sh"; done
|
for i in {1..26}; do echo $i;ssh pi@hugvey$i.local "cd hugvey && sudo bash install_server.sh"; done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
make them say their number
|
||||||
|
```bash
|
||||||
|
for i in {1..26}; do echo $i;ssh pi@hugvey$i.local "espeak -f /etc/hostname"; done
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Monitoring the server processes
|
### Monitoring the server processes
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
var ws = new ReconnectingWebSocket( window.location.origin.replace('http', 'ws') +'/ws', null, { debug: false, reconnectInterval: 3000 } );
|
var ws = new ReconnectingWebSocket( window.location.origin.replace('http', 'ws') +'/ws', null, { debug: false, reconnectInterval: 3000 } );
|
||||||
|
|
||||||
|
var seeme = true
|
||||||
|
|
||||||
//request close before unloading
|
//request close before unloading
|
||||||
window.addEventListener('beforeunload', function(){
|
window.addEventListener('beforeunload', function(){
|
||||||
ws.close();
|
ws.close();
|
||||||
|
@ -183,3 +185,27 @@ checkbox.addEventListener('change', (event) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
var tl = new Timeline(ws, document.getElementById('line'), 29);
|
var tl = new Timeline(ws, document.getElementById('line'), 29);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
window.addEventListener('keypress', function(e){
|
||||||
|
console.log(e.keyCode)
|
||||||
|
if(e.keyCode==46){
|
||||||
|
if(seeme){
|
||||||
|
seeme = false;
|
||||||
|
let options = {
|
||||||
|
showTooltips: false
|
||||||
|
};
|
||||||
|
tl.timeline.setOptions(options)
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
seeme = true;
|
||||||
|
let options = {
|
||||||
|
showTooltips: true
|
||||||
|
};
|
||||||
|
tl.timeline.setOptions(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
@ -29,10 +29,12 @@
|
||||||
border-color: black;
|
border-color: black;
|
||||||
border:none 0px;
|
border:none 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vis-item.speech {
|
.vis-item.speech {
|
||||||
background-color: greenyellow;
|
background-color: greenyellow;
|
||||||
border-color: green;
|
border-color: green;
|
||||||
border:none 0px;
|
border:none 0px;
|
||||||
|
color: greenyellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vis-text,.vis-labelset .vis-label {
|
.vis-text,.vis-labelset .vis-label {
|
||||||
|
|
Loading…
Reference in a new issue