mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2025-01-31 05:15:10 +01:00
added printer/listall to API
This commit is contained in:
parent
52a2d69bdd
commit
34491670b8
@ -93,15 +93,22 @@ M.printer_type = {
|
||||
end
|
||||
}
|
||||
|
||||
M.printer_bed_width = {
|
||||
default = 220,
|
||||
M.printer_dimensions_x = {
|
||||
default = 200,
|
||||
subSection = 'printer_type',
|
||||
type = 'int',
|
||||
description = '',
|
||||
min = 0
|
||||
}
|
||||
M.printer_bed_height = {
|
||||
default = 220,
|
||||
M.printer_dimensions_y = {
|
||||
default = 200,
|
||||
subSection = 'printer_type',
|
||||
type = 'int',
|
||||
description = '',
|
||||
min = 0
|
||||
}
|
||||
M.printer_dimensions_z = {
|
||||
default = 200,
|
||||
subSection = 'printer_type',
|
||||
type = 'int',
|
||||
description = '',
|
||||
@ -256,12 +263,12 @@ M.printer_enableTraveling = {
|
||||
description = ''
|
||||
}
|
||||
|
||||
M.printer_maxObjectHeight = {
|
||||
default = 150,
|
||||
type = 'int',
|
||||
description = 'Maximum height that will be printed',
|
||||
min = 0
|
||||
}
|
||||
-- M.printer_maxObjectHeight = {
|
||||
-- default = 150,
|
||||
-- type = 'int',
|
||||
-- description = 'Maximum height that will be printed',
|
||||
-- min = 0
|
||||
-- }
|
||||
|
||||
M.printer_screenToMillimeterScale = {
|
||||
default = 0.3,
|
||||
|
@ -89,6 +89,15 @@ function M.state(request, response, onlyReturnState)
|
||||
return true
|
||||
end
|
||||
|
||||
-- retrieve a list of 3D printers currently supported
|
||||
function M.listall(request, response)
|
||||
response:setSuccess()
|
||||
response:addData('printers', printerUtils.supportedPrinters())
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
|
||||
function M.heatup_POST(request, response)
|
||||
|
||||
if not accessManager.hasControl(request.remoteAddress) then
|
||||
|
Loading…
x
Reference in New Issue
Block a user