Skip to content

Commit

Permalink
0.1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ldiegoes committed Oct 30, 2022
1 parent 0a6e040 commit 035b95d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion octoprint_helloworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,22 @@ def on_after_startup(self):
self._logger.info("Hello World!")

__plugin_pythoncompat__ = ">=3.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
#__plugin_implementation__ = HelloWorldPlugin()


def __plugin_load__():
if not is_octoprint_compatible(__required_octoprint_version__):
import logging
logger = logging.getLogger(__name__)
logger.error("OctoPrint version is not compatible ({version} required)"
.format(version=__required_octoprint_version__))
return

global __plugin_implementation__
#__plugin_implementation__ = FilamentManagerPlugin()
__plugin_implementation__ = HelloWorldPlugin()
global __plugin_hooks__
__plugin_hooks__ = {
"octoprint.plugin.softwareupdate.check_config": __plugin_implementation__.get_update_information,
"octoprint.comm.protocol.gcode.sent": __plugin_implementation__.filament_odometer
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# plugin module
plugin_name = "OctoPrint-Helloworld"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.1.0.1"
plugin_version = "0.1.0.2"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
plugin_description = """TODO"""
Expand Down

0 comments on commit 035b95d

Please sign in to comment.