jarjonam vor 5 Jahren
Ursprung
Commit
11fa679dd9
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      pi/server.py
  2. 2 2
      pi/web/main.js

+ 1 - 1
pi/server.py

@@ -452,7 +452,7 @@ my_options = {
 	'mode': "chrome-app", #chrome-app
 	'host': 'localhost',
 	'port': 8000 + int(np.random.rand()*1000),
-	'size':(660, 605),
+	'size':(660, 635),
 	#'chromeFlags': ["--start-fullscreen", "--browser-startup-dialog"]
 }
 

+ 2 - 2
pi/web/main.js

@@ -258,7 +258,7 @@ async function loadGraph(){
 	option = document.querySelector('#waveformGraphSelect')[document.querySelector('#waveformGraphSelect').selectedIndex]
 	timestamp = option.getAttribute('timestamp')
 	csv = await eel.loadFile('data/waveforms/'+timestamp+'.csv')()
-	document.querySelector('#waveformGraphText').innerText = "Signal: "+csv[8]+" - Gnd: "+csv[9]+" - Signal_std: "+csv[10].toFixed(2)+" - Gnd_std: "+csv[11].toFixed(2)
+	document.querySelector('#waveformGraphText').innerText = "Signal: "+csv[8].toFixed(2)+" - Gnd: "+csv[9].toFixed(2)+" - Signal_std: "+csv[10].toFixed(2)+" - Gnd_std: "+csv[11].toFixed(2)
 
 	var data = [{
 	  x: range(csv[12]),
@@ -385,5 +385,5 @@ function message(txt){
 	  position: 'left',
 	  close: true,
 	  backgroundColor: "grey",
-	  duration: 3000,}).showToast()
+	  duration: 10000,}).showToast()
 }