add support for M355 command to control chamber light, #67

This commit is contained in:
jneilliii
2025-01-23 23:40:45 -05:00
parent ca30e0fe24
commit 8af0f9e8a1
3 changed files with 23 additions and 2 deletions

View File

@ -48,6 +48,16 @@ $(function () {
return output_list;
};
self.getAdditionalControls = function() {
var buttons = [
{ name: "Bambu", type: "section", layout: "horizontal", children: [
{type: "command", name: "Light On", enabled: "true", command: "M355 S1"},
{type: "command", name: "Light Off", enabled: "true", command: "M355 S0"}
]}
];
return buttons;
};
self.getAuthToken = function (data) {
self.settingsViewModel.settings.plugins.bambu_printer.auth_token("");
self.auth_type("");
@ -133,7 +143,7 @@ $(function () {
};
self.onAfterBinding = function () {
console.log(self.ams_mapping_computed());
// console.log(self.ams_mapping_computed());
};
self.showTimelapseThumbnail = function(data) {