Merge branch 'main' of https://github.com/SergiuToporjinschi/OctoPrint-CalibrationTools into main
This commit is contained in:
@@ -15,7 +15,6 @@ $(function () {
|
|||||||
return self.generalVM.isSmall() ? "span8" : "span9";
|
return self.generalVM.isSmall() ? "span8" : "span9";
|
||||||
});
|
});
|
||||||
|
|
||||||
self.is_admin = ko.observable(false);
|
|
||||||
self.steps = ko.observable();
|
self.steps = ko.observable();
|
||||||
self.steps["X"] = ko.observable();
|
self.steps["X"] = ko.observable();
|
||||||
self.steps["Y"] = ko.observable();
|
self.steps["Y"] = ko.observable();
|
||||||
@@ -45,7 +44,6 @@ $(function () {
|
|||||||
self.testParam.extrudeLength(self.settingsViewModel.settings.plugins.CalibrationTools.eSteps.extrudeLength());
|
self.testParam.extrudeLength(self.settingsViewModel.settings.plugins.CalibrationTools.eSteps.extrudeLength());
|
||||||
self.testParam.extrudeSpeed(self.settingsViewModel.settings.plugins.CalibrationTools.eSteps.extrudeSpeed());
|
self.testParam.extrudeSpeed(self.settingsViewModel.settings.plugins.CalibrationTools.eSteps.extrudeSpeed());
|
||||||
self.testParam.markLength(self.settingsViewModel.settings.plugins.CalibrationTools.eSteps.markLength());
|
self.testParam.markLength(self.settingsViewModel.settings.plugins.CalibrationTools.eSteps.markLength());
|
||||||
self.is_admin(self.loginStateViewModel.isAdmin());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.from_json = function (response) {
|
self.from_json = function (response) {
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ $(function () {
|
|||||||
self.pid.bed.index(-1);
|
self.pid.bed.index(-1);
|
||||||
self.pid.bed.noCycles(self.settingsViewModel.settings.plugins.CalibrationTools.pid.bed.noCycles());
|
self.pid.bed.noCycles(self.settingsViewModel.settings.plugins.CalibrationTools.pid.bed.noCycles());
|
||||||
self.pid.bed.targetTemp(self.settingsViewModel.settings.plugins.CalibrationTools.pid.bed.targetTemp());
|
self.pid.bed.targetTemp(self.settingsViewModel.settings.plugins.CalibrationTools.pid.bed.targetTemp());
|
||||||
self.isAdmin(self.loginStateViewModel.isAdmin());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.startPidHotEnd = function () {
|
self.startPidHotEnd = function () {
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ $(function () {
|
|||||||
self.eStepsXYZ.printedCubeSize.Y(self.settingsViewModel.settings.plugins.CalibrationTools.XYZSteps.gCodeCubeSize.Y());
|
self.eStepsXYZ.printedCubeSize.Y(self.settingsViewModel.settings.plugins.CalibrationTools.XYZSteps.gCodeCubeSize.Y());
|
||||||
self.eStepsXYZ.printedCubeSize.Z(self.settingsViewModel.settings.plugins.CalibrationTools.XYZSteps.gCodeCubeSize.Z());
|
self.eStepsXYZ.printedCubeSize.Z(self.settingsViewModel.settings.plugins.CalibrationTools.XYZSteps.gCodeCubeSize.Z());
|
||||||
|
|
||||||
self.isAdmin(self.loginStateViewModel.isAdmin());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OCTOPRINT_VIEWMODELS.push({
|
OCTOPRINT_VIEWMODELS.push({
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ reliable.
|
|||||||
<div data-bind="class: $root.columnLabelCls()"></div>
|
<div data-bind="class: $root.columnLabelCls()"></div>
|
||||||
<div data-bind="class: $root.columnFieldCls()">
|
<div data-bind="class: $root.columnFieldCls()">
|
||||||
<button class="btn btn-success"
|
<button class="btn btn-success"
|
||||||
data-bind="click: $root.startExtrusion, enable: !$root.startExtrusionActive() && $root.is_admin() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
data-bind="click: $root.startExtrusion, enable: !$root.startExtrusionActive() && $root.loginStateViewModel.isAdmin() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
||||||
title="This will trigger M90, M83, G1 E100 F50, M82, G90 in order for extruding filament">
|
title="This will trigger M90, M83, G1 E100 F50, M82, G90 in order for extruding filament">
|
||||||
<i class="fas fa-play" style="color:false" data-color="false"></i>  
|
<i class="fas fa-play" style="color:false" data-color="false"></i>  
|
||||||
Start extrusion
|
Start extrusion
|
||||||
@@ -84,7 +84,8 @@ reliable.
|
|||||||
<div class="input-append">
|
<div class="input-append">
|
||||||
<input type="number" id="eSteps" title="Current value for number of steps/mm for E axe in EEPROM" class="input-small" step="0.01" data-bind="value: $root.steps.E(), enable:false">
|
<input type="number" id="eSteps" title="Current value for number of steps/mm for E axe in EEPROM" class="input-small" step="0.01" data-bind="value: $root.steps.E(), enable:false">
|
||||||
<span class="add-on" title="Current value for number of steps/mm for E axe in EEPROM">steps/mm</span>
|
<span class="add-on" title="Current value for number of steps/mm for E axe in EEPROM">steps/mm</span>
|
||||||
<button class="btn" data-bind="click: $root.loadESteps, enable: $root.loadEStepsActive() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
<button class="btn"
|
||||||
|
data-bind="click: $root.loadESteps, enable: $root.loginStateViewModel.isAdmin() && $root.loadEStepsActive() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
||||||
title="Loads current value of steps/mm from EEPROM by calling M92">
|
title="Loads current value of steps/mm from EEPROM by calling M92">
|
||||||
<i class="fas fa-sync-alt" style="color:false" data-color="false"></i>
|
<i class="fas fa-sync-alt" style="color:false" data-color="false"></i>
|
||||||
</button>
|
</button>
|
||||||
@@ -114,7 +115,7 @@ reliable.
|
|||||||
<div class="row-fluid" style="margin-bottom: 5px;">
|
<div class="row-fluid" style="margin-bottom: 5px;">
|
||||||
<div data-bind="class: $root.columnLabelCls()"></div>
|
<div data-bind="class: $root.columnLabelCls()"></div>
|
||||||
<div data-bind="class: $root.columnFieldCls()">
|
<div data-bind="class: $root.columnFieldCls()">
|
||||||
<button class="btn btn-primary" data-bind="click: $root.saveESteps, enable: $root.is_admin() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
<button class="btn btn-primary" data-bind="click: $root.saveESteps, enable: $root.loginStateViewModel.isAdmin() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
||||||
title="Saves the new calculated value of steps/mm on printer EEPROM">
|
title="Saves the new calculated value of steps/mm on printer EEPROM">
|
||||||
<i class="fas fa-save" data-color="#000000"></i>  
|
<i class="fas fa-save" data-color="#000000"></i>  
|
||||||
Save the new value
|
Save the new value
|
||||||
|
|||||||
@@ -56,7 +56,8 @@ prefer to start this process with the hot end at room temperature.",
|
|||||||
</div>
|
</div>
|
||||||
<div data-bind="class: $root.columnFieldCls()">
|
<div data-bind="class: $root.columnFieldCls()">
|
||||||
<div class="input-prepend input-append" id="bedPid">
|
<div class="input-prepend input-append" id="bedPid">
|
||||||
<button class="btn" data-bind="click: $root.getCurrentValues, enable: $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())" title="Load current PIDs">
|
<button class="btn" data-bind="click: $root.getCurrentValues, enable: $root.loginStateViewModel.isAdmin() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
||||||
|
title="Load current PIDs">
|
||||||
<i class="fas fa-sync-alt" style="color:false" data-color="false"></i>  
|
<i class="fas fa-sync-alt" style="color:false" data-color="false"></i>  
|
||||||
Get current values
|
Get current values
|
||||||
</button>
|
</button>
|
||||||
@@ -103,7 +104,7 @@ prefer to start this process with the hot end at room temperature.",
|
|||||||
<div class="row-fluid" style="margin-bottom: 5px;">
|
<div class="row-fluid" style="margin-bottom: 5px;">
|
||||||
<div data-bind="class: $root.columnLabelCls()"></div>
|
<div data-bind="class: $root.columnLabelCls()"></div>
|
||||||
<div data-bind="class: $root.columnFieldCls()">
|
<div data-bind="class: $root.columnFieldCls()">
|
||||||
<button class="btn btn-success" data-bind="click: $root.startPidHotEnd, enable: $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
<button class="btn btn-success" data-bind="click: $root.startPidHotEnd, enable: $root.loginStateViewModel.isAdmin() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
||||||
title="This will trigger PID auto tuning (M106 Sx; M303 Ex Sx U1; M500)">
|
title="This will trigger PID auto tuning (M106 Sx; M303 Ex Sx U1; M500)">
|
||||||
<i class="fas fa-play" style="color:false" data-color="false"></i>  
|
<i class="fas fa-play" style="color:false" data-color="false"></i>  
|
||||||
Start hot-end PID auto-tunning
|
Start hot-end PID auto-tunning
|
||||||
@@ -150,7 +151,7 @@ prefer to start this process with the hot end at room temperature.",
|
|||||||
<div class="row-fluid" style="margin-bottom: 5px;">
|
<div class="row-fluid" style="margin-bottom: 5px;">
|
||||||
<div data-bind="class: $root.columnLabelCls()"></div>
|
<div data-bind="class: $root.columnLabelCls()"></div>
|
||||||
<div data-bind="class: $root.columnFieldCls()">
|
<div data-bind="class: $root.columnFieldCls()">
|
||||||
<button class="btn btn-success" data-bind="click: $root.startPidBed, enable: $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
<button class="btn btn-success" data-bind="click: $root.startPidBed, enable: $root.loginStateViewModel.isAdmin() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
||||||
title="This will trigger PID auto tuning (M303 E-1 Sx U1; M500)">
|
title="This will trigger PID auto tuning (M303 E-1 Sx U1; M500)">
|
||||||
<i class="fas fa-play" style="color:false" data-color="false"></i>  
|
<i class="fas fa-play" style="color:false" data-color="false"></i>  
|
||||||
Start bed PID auto-tunning
|
Start bed PID auto-tunning
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ sized.","<a href='https://teachingtechyt.github.io/calibration.html#xyzsteps' ta
|
|||||||
<input type="number" id="" class="input-small numberDisplay" step="0.001" min="0" max="100" title="" data-bind="value: $root.eStepsXYZ.currentSteps.Y, enable: false">
|
<input type="number" id="" class="input-small numberDisplay" step="0.001" min="0" max="100" title="" data-bind="value: $root.eStepsXYZ.currentSteps.Y, enable: false">
|
||||||
<span class="add-on" title=""> Z</span>
|
<span class="add-on" title=""> Z</span>
|
||||||
<input type="number" id="" class="input-small numberDisplay" step="0.001" min="0" max="100" title="" data-bind="value: $root.eStepsXYZ.currentSteps.Z, enable: false">
|
<input type="number" id="" class="input-small numberDisplay" step="0.001" min="0" max="100" title="" data-bind="value: $root.eStepsXYZ.currentSteps.Z, enable: false">
|
||||||
<button class="btn" data-bind="click: $root.loadESteps, enable: $root.loadEStepsActive() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
<button class="btn"
|
||||||
|
data-bind="click: $root.loadESteps, enable: $root.loginStateViewModel.isAdmin() && $root.loadEStepsActive() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
||||||
title="Loads current value from EEPROM by calling M92">
|
title="Loads current value from EEPROM by calling M92">
|
||||||
<i class="fas fa-sync-alt" style="color:false" data-color="false"></i>
|
<i class="fas fa-sync-alt" style="color:false" data-color="false"></i>
|
||||||
</button>
|
</button>
|
||||||
@@ -91,7 +92,8 @@ sized.","<a href='https://teachingtechyt.github.io/calibration.html#xyzsteps' ta
|
|||||||
<div class="row-fluid" style="margin-bottom: 5px;">
|
<div class="row-fluid" style="margin-bottom: 5px;">
|
||||||
<div data-bind="class: $root.columnLabelCls()"></div>
|
<div data-bind="class: $root.columnLabelCls()"></div>
|
||||||
<div data-bind="class: $root.columnFieldCls()">
|
<div data-bind="class: $root.columnFieldCls()">
|
||||||
<button class="btn btn-success" data-bind="click: $root.saveEStepsXYZ, enable: $root.saveEStepsXYZActive() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
<button class="btn btn-success"
|
||||||
|
data-bind="click: $root.saveEStepsXYZ, enable: $root.loginStateViewModel.isAdmin() && $root.saveEStepsXYZActive() && $root.controlViewModel.isOperational() && (!$root.controlViewModel.isPrinting())"
|
||||||
title="This will save new values to EEPROM (M92 Xx Yx Zx; M500)">
|
title="This will save new values to EEPROM (M92 Xx Yx Zx; M500)">
|
||||||
<i class="fas fa-save" style="color:false" data-color="false"></i>  
|
<i class="fas fa-save" style="color:false" data-color="false"></i>  
|
||||||
Save to EEPROM
|
Save to EEPROM
|
||||||
|
|||||||
Reference in New Issue
Block a user