Skip to content

Commit 6763368

Browse files
committed
Merge branch 'devel' into master
2 parents 4357354 + e915ecb commit 6763368

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

octoprint_firmware_check/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .checks import Severity
1919
from .checks.firmware_broken import FirmwareBrokenChecks
2020
from .checks.firmware_development import FirmwareDevelopmentChecks
21+
from .checks.firmware_hostcommands import FirmwareHostcommandsChecks
2122
from .checks.firmware_unsafe import FirmwareUnsafeChecks
2223

2324
TERMINAL_WARNING = """
@@ -42,6 +43,7 @@
4243
"firmware-unsafe": FirmwareUnsafeChecks.as_dict(),
4344
"firmware-broken": FirmwareBrokenChecks.as_dict(),
4445
"firmware-development": FirmwareDevelopmentChecks.as_dict(),
46+
"firmware-hostcommands": FirmwareHostcommandsChecks.as_dict(),
4547
}
4648

4749

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import absolute_import, division, print_function, unicode_literals
3+
4+
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
5+
__copyright__ = "Copyright (C) 2021 The OctoPrint Project - Released under terms of the AGPLv3 License"
6+
7+
from flask_babel import gettext
8+
9+
from . import NegativeCapCheck, Severity
10+
11+
12+
class FirmwareHostcommandsChecks(object):
13+
@classmethod
14+
def as_dict(cls):
15+
return {
16+
"checks": (FirmwareHostcommandsCapCheck(),),
17+
"message": gettext(
18+
"Your printer's firmware supports host action commands, but they are "
19+
"disabled. The firmware will not inform OctoPrint about job pause & "
20+
"cancellations, filament runouts, and similar firmware-side events. If "
21+
"you want this functionality, you need to change your firmware's "
22+
"configuration."
23+
),
24+
"severity": Severity.INFO,
25+
}
26+
27+
28+
class FirmwareHostcommandsCapCheck(NegativeCapCheck):
29+
"""
30+
Firmware reporting disabled HOST_ACTION_COMMANDS capability
31+
"""
32+
33+
name = "capability"
34+
CAP = "HOST_ACTION_COMMANDS"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "OctoPrint-FirmwareCheck"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "2021.2.4"
17+
plugin_version = "2021.5.31"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)