Export : added API call + fixed route issues
This commit is contained in:
@ -285,7 +285,14 @@ function loadExportPopup(){
|
||||
}
|
||||
|
||||
function exportCallback(selectedVariables, startDateTimeMs, endDateTimeMs, binning=null){
|
||||
console.log(selectedVariables, startDateTimeMs, endDateTimeMs, binning);
|
||||
|
||||
let binningParam = "None";
|
||||
if (binning !== null)
|
||||
binningParam = binning
|
||||
let exportURL = "http://" + hostPort + "/export?time=" + startDateTimeMs/1000 + "," + endDateTimeMs/1000 + "&variables=" + selectedVariables + "&interval=" + binningParam + "&id=" + clientID
|
||||
let a = document.createElement('a');
|
||||
a.href = exportURL
|
||||
a.click()
|
||||
}
|
||||
|
||||
let graphs = (function (){
|
||||
|
Reference in New Issue
Block a user