From e2aaf5471ce86608182c2cfa2951a526edc144f4 Mon Sep 17 00:00:00 2001 From: Martin Muehlhaeuser Date: Thu, 9 Aug 2018 09:25:28 +0000 Subject: [PATCH] [release] Update version --- octoprint_klipper/__init__.py | 16 +++++++++++++++- setup.py | 6 +++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/octoprint_klipper/__init__.py b/octoprint_klipper/__init__.py index 727d2b8..68d715a 100644 --- a/octoprint_klipper/__init__.py +++ b/octoprint_klipper/__init__.py @@ -238,6 +238,19 @@ class KlipperPlugin( self.logError(msg) return line + def get_update_information(self): + return dict( + klipper=dict( + displayName=self._plugin_name, + displayVersion=self._plugin_version, + type="github_release", + current=self._plugin_version, + user="mmone", + repo="OctoprintKlipperPlugin", + pip="https://github.com/mmone/OctoPrintKlipper/archive/{target_version}.zip" + ) + ) + #-- Helpers def sendMessage(self, type, subtype, payload): self._plugin_manager.send_plugin_message( @@ -271,6 +284,7 @@ def __plugin_load__(): __plugin_implementation__ = KlipperPlugin() __plugin_hooks__ = { - "octoprint.comm.protocol.gcode.received": __plugin_implementation__.on_parse_gcode + "octoprint.comm.protocol.gcode.received": __plugin_implementation__.on_parse_gcode, + "octoprint.plugin.softwareupdate.check_config": __plugin_implementation__.get_update_information } diff --git a/setup.py b/setup.py index 30f0fef..f9ac896 100644 --- a/setup.py +++ b/setup.py @@ -14,11 +14,11 @@ plugin_package = "octoprint_klipper" plugin_name = "Klipper" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "0.1.0" +plugin_version = "0.1.5" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module -plugin_description = """A plugin for octoprint to control and monitor the Klipper 3D printer software.""" +plugin_description = """A plugin for OctoPrint to configure,control and monitor the Klipper 3D printer software.""" # The plugin's author. Can be overwritten within OctoPrint's internal data via __plugin_author__ in the plugin module plugin_author = "Martin Muehlhaeuser" @@ -27,7 +27,7 @@ plugin_author = "Martin Muehlhaeuser" plugin_author_email = "github@mmone.de" # The plugin's homepage URL. Can be overwritten within OctoPrint's internal data via __plugin_url__ in the plugin module -plugin_url = "https://github.com/mmone/OctoPrintKlipper" +plugin_url = "http://blog.mmone.de/2018/02/05/octoprint-plugin-for-klipper/" # The plugin's license. Can be overwritten within OctoPrint's internal data via __plugin_license__ in the plugin module plugin_license = "AGPLv3"