Add ams_slot to start_print
This commit is contained in:
@@ -131,6 +131,14 @@ export const PrinterCommandSchema = Type.Union([
|
|||||||
* may wait days and the URL would be long expired.
|
* may wait days and the URL would be long expired.
|
||||||
*/
|
*/
|
||||||
url: Type.String({ format: "uri" }),
|
url: Type.String({ format: "uri" }),
|
||||||
|
/**
|
||||||
|
* Use this AMS slot (0-based, across all units: AMS1 slot 4 is 3)
|
||||||
|
* instead of the one the project's own filament colour would pick.
|
||||||
|
* Only valid for a single-filament project, and the slot must hold the
|
||||||
|
* same material type; the gateway refuses otherwise. Absent: map by the
|
||||||
|
* project's filament.
|
||||||
|
*/
|
||||||
|
ams_slot: Type.Optional(Type.Integer({ minimum: 0, maximum: 15 })),
|
||||||
}, { additionalProperties: false }),
|
}, { additionalProperties: false }),
|
||||||
Type.Object({
|
Type.Object({
|
||||||
action: Type.Literal("set_fan_speed"),
|
action: Type.Literal("set_fan_speed"),
|
||||||
|
|||||||
@@ -27,6 +27,12 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uri",
|
"format": "uri",
|
||||||
"description": "A presigned, expiring GET for the job file. Deliberately a URL rather than the bytes: the file is tens of megabytes, this is a JSON control channel, and handing the gateway a URL keeps object-store credentials out of every gateway on every farm. Expect it to be valid for minutes, and note that an upload to a printer is slow - 0.2 MiB/s measured over FTPS to a P1P - so the download must finish before the transfer starts, not stream through it."
|
"description": "A presigned, expiring GET for the job file. Deliberately a URL rather than the bytes: the file is tens of megabytes, this is a JSON control channel, and handing the gateway a URL keeps object-store credentials out of every gateway on every farm. Expect it to be valid for minutes, and note that an upload to a printer is slow - 0.2 MiB/s measured over FTPS to a P1P - so the download must finish before the transfer starts, not stream through it."
|
||||||
|
},
|
||||||
|
"ams_slot": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 15,
|
||||||
|
"description": "Use this AMS slot (0-based across all units: AMS1 slot 4 is 3) instead of the one the project's own filament colour would pick. Only valid for a single-filament project, and the slot must hold the same material type; the gateway refuses otherwise."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|||||||
Reference in New Issue
Block a user