updates for grid-print / finder

This commit is contained in:
Stewart Allen 2017-10-15 19:43:51 -04:00
commit 4e4f4d0fec
3 changed files with 13 additions and 5 deletions

View file

@ -1027,7 +1027,14 @@ self.kiri.license = exports.LICENSE;
setProgress(Math.ceil(evt.loaded/evt.total), "sending");
});
filename = $('print-filename').value;
xhtr.open("POST", host+"/api/print?filename="+filename+"&target="+target+"&key="+apik);
xhtr.open("POST",
host + "/api/print?" +
"filename=" + filename +
"&target=" + target +
"&key=" + apik +
"&time=" + Math.round(currentPrint.time) +
"&length=" + Math.round(currentPrint.distance)
);
xhtr.setRequestHeader("Content-Type", "text/plain");
xhtr.send(gcode);
hideModal();

View file

@ -1,7 +1,7 @@
var exports = {
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
VERSION:"1.0.63"
VERSION:"1.0.64"
};
if (!module) var module = {};
module.exports = exports;

View file

@ -17,9 +17,10 @@
],
"post":[
"M104 S0 T0 ; set nozzle0 temp",
"G162 Z ; home axes maximum",
"G28 X Y ; move to origin",
"M132 X Y Z A B ; set axis limits",
"G28 ; move to origin",
"; G162 Z ; home axes maximum",
"; G28 X Y ; move to origin",
"; M132 X Y Z A B ; set axis limits",
"G91 ; set relative positioning",
"M18 ; disable all steppers"
],