@@ -112,6 +112,25 @@ def get_additional_permissions(self):
112112 default_groups = [USER_GROUP ])
113113 ]
114114
115+ ##~~ Softwareupdate hook
116+
117+ def get_update_information (self ):
118+ return dict (
119+ fixcbdfirmware = dict (
120+ displayName = "Firmware Check Plugin" ,
121+ displayVersion = self ._plugin_version ,
122+
123+ # version check: github repository
124+ type = "github_release" ,
125+ user = "OctoPrint" ,
126+ repo = "OctoPrint-FirmwareCheck" ,
127+ current = self ._plugin_version ,
128+
129+ # update method: pip
130+ pip = "https://github.com/OctoPrint/OctoPrint-FirmwareCheck/archive/{target_version}.zip"
131+ )
132+ )
133+
115134 ##~~ Helpers
116135
117136 def _run_checks (self , check_type , * args , ** kwargs ):
@@ -204,6 +223,7 @@ def register_custom_events(*args, **kwargs):
204223 "issue or otherwise broken firmware and inform you about that fact." )
205224__plugin_implementation__ = FirmwareCheckPlugin ()
206225__plugin_hooks__ = {
226+ "octoprint.plugin.softwareupdate.check_config" : __plugin_implementation__ .get_update_information ,
207227 "octoprint.comm.protocol.gcode.received" : (__plugin_implementation__ .on_gcode_received , 100 ),
208228 "octoprint.comm.protocol.firmware.info" : (__plugin_implementation__ .on_firmware_info_received , 100 ),
209229 "octoprint.comm.protocol.firmware.capabilities" : (__plugin_implementation__ .on_firmware_cap_received , 100 ),
0 commit comments