[release] Update version
This commit is contained in:
parent
41491ffbe8
commit
e2aaf5471c
|
@ -238,6 +238,19 @@ class KlipperPlugin(
|
||||||
self.logError(msg)
|
self.logError(msg)
|
||||||
return line
|
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
|
#-- Helpers
|
||||||
def sendMessage(self, type, subtype, payload):
|
def sendMessage(self, type, subtype, payload):
|
||||||
self._plugin_manager.send_plugin_message(
|
self._plugin_manager.send_plugin_message(
|
||||||
|
@ -271,6 +284,7 @@ def __plugin_load__():
|
||||||
|
|
||||||
__plugin_implementation__ = KlipperPlugin()
|
__plugin_implementation__ = KlipperPlugin()
|
||||||
__plugin_hooks__ = {
|
__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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -14,11 +14,11 @@ plugin_package = "octoprint_klipper"
|
||||||
plugin_name = "Klipper"
|
plugin_name = "Klipper"
|
||||||
|
|
||||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
# 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
|
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||||
# module
|
# 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
|
# The plugin's author. Can be overwritten within OctoPrint's internal data via __plugin_author__ in the plugin module
|
||||||
plugin_author = "Martin Muehlhaeuser"
|
plugin_author = "Martin Muehlhaeuser"
|
||||||
|
@ -27,7 +27,7 @@ plugin_author = "Martin Muehlhaeuser"
|
||||||
plugin_author_email = "github@mmone.de"
|
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
|
# 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
|
# The plugin's license. Can be overwritten within OctoPrint's internal data via __plugin_license__ in the plugin module
|
||||||
plugin_license = "AGPLv3"
|
plugin_license = "AGPLv3"
|
||||||
|
|
Loading…
Reference in New Issue