mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
www submodule update to printerdriver branch; fix heatup config names.
This commit is contained in:
parent
a88bd8e932
commit
2f04bbb35d
@ -9,7 +9,7 @@
|
|||||||
- type: used for basic type checking, one of bool, int, float or string
|
- type: used for basic type checking, one of bool, int, float or string
|
||||||
- description: A descriptive text usable by API clients
|
- description: A descriptive text usable by API clients
|
||||||
- min, max, regex: optional constraints (min and max constrain value for numbers, or length for strings)
|
- min, max, regex: optional constraints (min and max constrain value for numbers, or length for strings)
|
||||||
|
|
||||||
NOTE that the all-caps definitions will be changed into configuration keys, or moved to a different location
|
NOTE that the all-caps definitions will be changed into configuration keys, or moved to a different location
|
||||||
]]--
|
]]--
|
||||||
local printer = require('util.printer')
|
local printer = require('util.printer')
|
||||||
@ -54,9 +54,9 @@ M.printer_type = {
|
|||||||
default = 'ultimaker',
|
default = 'ultimaker',
|
||||||
type = 'string',
|
type = 'string',
|
||||||
description = '',
|
description = '',
|
||||||
isValid = function(value)
|
isValid = function(value)
|
||||||
local printers = printer.supportedPrinters()
|
local printers = printer.supportedPrinters()
|
||||||
return printers[value] ~= nil
|
return printers[value] ~= nil
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,9 +64,9 @@ M.printer_baudrate = {
|
|||||||
default = '115200',
|
default = '115200',
|
||||||
type = 'int',
|
type = 'int',
|
||||||
description = '',
|
description = '',
|
||||||
isValid = function(value)
|
isValid = function(value)
|
||||||
local baudrates = printer.supportedBaudRates()
|
local baudrates = printer.supportedBaudRates()
|
||||||
return baudrates[tostring(value)] ~= nil
|
return baudrates[tostring(value)] ~= nil
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +124,13 @@ M.printer_firstLayerSlow = {
|
|||||||
description = 'Print the first layer slowly to get a more stable start'
|
description = 'Print the first layer slowly to get a more stable start'
|
||||||
}
|
}
|
||||||
|
|
||||||
M.printer_heatupTemperature = {
|
M.printer_heatup_enabled = {
|
||||||
|
default = true,
|
||||||
|
type = 'bool',
|
||||||
|
description = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
M.printer_heatup_temperature = {
|
||||||
default = 180,
|
default = 180,
|
||||||
type = 'int',
|
type = 'int',
|
||||||
description = ''
|
description = ''
|
||||||
@ -163,12 +169,6 @@ M.printer_enableTraveling = {
|
|||||||
description = ''
|
description = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
M.printer_autoWarmUpCommand = {
|
|
||||||
default = 'M104 S180',
|
|
||||||
type = 'string',
|
|
||||||
description = ''
|
|
||||||
}
|
|
||||||
|
|
||||||
M.printer_startgcode = {
|
M.printer_startgcode = {
|
||||||
default = ';Generated with Doodle3D\nG21 ;metric values\nG91 ;relative positioning\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG1 Z15 F9000 ;move the platform down 15mm\nG92 E0 ;zero the extruded length\nG1 F200 E10 ;extrude 10mm of feed stock\nG92 E0 ;zero the extruded length again\nG92 E0 ;zero the extruded length again\nG1 F9000\nG90 ;absolute positioning\nM117 Printing Doodle... ;display message (20 characters to clear whole screen)',
|
default = ';Generated with Doodle3D\nG21 ;metric values\nG91 ;relative positioning\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG1 Z15 F9000 ;move the platform down 15mm\nG92 E0 ;zero the extruded length\nG1 F200 E10 ;extrude 10mm of feed stock\nG92 E0 ;zero the extruded length again\nG92 E0 ;zero the extruded length again\nG1 F9000\nG90 ;absolute positioning\nM117 Printing Doodle... ;display message (20 characters to clear whole screen)',
|
||||||
type = 'string',
|
type = 'string',
|
||||||
|
@ -121,7 +121,7 @@ function M.heatup_POST(request, response)
|
|||||||
local printer,msg = createPrinterOrFail(argId, response)
|
local printer,msg = createPrinterOrFail(argId, response)
|
||||||
if not printer then return end
|
if not printer then return end
|
||||||
|
|
||||||
local temperature = settings.get('printer.heatupTemperature')
|
local temperature = settings.get('printer.heatup.temperature')
|
||||||
local rv,msg = printer:heatup(temperature)
|
local rv,msg = printer:heatup(temperature)
|
||||||
|
|
||||||
response:addData('id', argId)
|
response:addData('id', argId)
|
||||||
@ -165,7 +165,7 @@ function M.print_POST(request, response)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if argIsFirst == true then
|
if argIsFirst == true then
|
||||||
log:debug("clearing all gcode for " .. printer)
|
log:debug("clearing all gcode for " .. printer:getId())
|
||||||
response:addData('gcode_clear',true)
|
response:addData('gcode_clear',true)
|
||||||
local rv,msg = printer:clearGcode()
|
local rv,msg = printer:clearGcode()
|
||||||
|
|
||||||
|
2
src/www
2
src/www
@ -1 +1 @@
|
|||||||
Subproject commit 1842ec01b2d455142b8f654323ec92a4e2395753
|
Subproject commit a45d1ad8edb89902fd4ef2b91d82dec23f8e51cd
|
Loading…
Reference in New Issue
Block a user