Try and fix event trigger
This commit is contained in:
parent
808c662dd5
commit
150d4e1f2d
2 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@ from requests.auth import HTTPBasicAuth
|
|||
from pathlib import Path
|
||||
import base64
|
||||
import octoprint.plugin
|
||||
from octoprint.events import Events
|
||||
|
||||
|
||||
class FactotumPlugin(
|
||||
|
@ -64,7 +65,7 @@ class FactotumPlugin(
|
|||
}
|
||||
|
||||
def on_event(self, event, payload):
|
||||
if event == "plugin_octolapse_movie_done":
|
||||
if event == Events.PLUGIN_OCTOLAPSE_MOVIE_DONE:
|
||||
thread = threading.Thread(target=self.process, args=(payload["movie"]))
|
||||
thread.start()
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -14,7 +14,7 @@ plugin_package = "octoprint_Factotum"
|
|||
plugin_name = "OctoPrint-Factotum"
|
||||
|
||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
||||
plugin_version = "0.1.5"
|
||||
plugin_version = "0.1.6"
|
||||
|
||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||
# module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue