finished BambuMQTT schemas
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/mc_print/push_info.schema.json",
|
||||
"title": "McPrintPushInfoReport",
|
||||
"description": "This message can't be requested - it's set automatically by the printer. [LINK] is for logs, [BMC] is for reported pressure advance calculated by lidar and [AMS][TASK] is per-AMS raw humidity",
|
||||
"allOf": [
|
||||
{ "$ref": "../../../common/envelope.schema.json" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"command": { "const": "push_info" },
|
||||
"param": {
|
||||
"type": "string",
|
||||
"anyOf": [
|
||||
{ "pattern": "^\\[LINK\\] ?(?<log>.+)$" },
|
||||
{ "pattern": "^\\[BMC\\] ?M900 K(?<k>\\d+\\.\\d+), L(?<l>\\d+\\.\\d+), M(?<m>\\d+\\.\\d+)$" },
|
||||
{ "pattern": "^\\[AMS\\]\\[TASK\\] ?ams(?<ams_idx>\\d+) temp:(?<temp>\\d+\\.\\d+);humidity:(?<humidity_perc>\\d+)%;humidity_idx:(?<humidity_idx>[0-4]+)$" }
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": ["param"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user