Other changes
This commit is contained in:
parent
617736d73e
commit
dff98678ab
3 changed files with 17 additions and 15 deletions
|
@ -34,6 +34,22 @@ class FactotumPlugin(
|
|||
"basicAuthPassword": "",
|
||||
}
|
||||
|
||||
def load_settings(self):
|
||||
self.signalUrl = self._settings.get(["signalUrl"])
|
||||
self.signalNumber = self._settings.get(["signalNumber"])
|
||||
self.signalRecipient = self._settings.get(["signalRecipient"])
|
||||
self.httpBasicAuth = self._settings.get_boolean(["httpBasicAuth"])
|
||||
self.basicAuthUsername = self._settings.get(["basicAuthUsername"])
|
||||
self.basicAuthPassword = self._settings.get(["basicAuthPassword"])
|
||||
|
||||
def on_after_startup(self):
|
||||
self.load_settings()
|
||||
|
||||
def get_template_configs(self):
|
||||
return [
|
||||
dict(type="settings", custom_bindings=False),
|
||||
]
|
||||
|
||||
def get_update_information(self):
|
||||
return {
|
||||
"Factotum": {
|
||||
|
@ -47,19 +63,6 @@ class FactotumPlugin(
|
|||
}
|
||||
}
|
||||
|
||||
def get_template_configs(self):
|
||||
return [
|
||||
dict(type="settings", custom_bindings=False),
|
||||
]
|
||||
|
||||
def on_after_startup(self):
|
||||
self.signalUrl = self._settings.get(["signalUrl"])
|
||||
self.signalNumber = self._settings.get(["signalNumber"])
|
||||
self.signalRecipient = self._settings.get(["signalRecipient"])
|
||||
self.httpBasicAuth = self._settings.get_boolean(["httpBasicAuth"])
|
||||
self.basicAuthUsername = self._settings.get(["basicAuthUsername"])
|
||||
self.basicAuthPassword = self._settings.get(["basicAuthPassword"])
|
||||
|
||||
def on_event(self, event, payload):
|
||||
if event == "plugin_octolapse_movie_done":
|
||||
thread = threading.Thread(target=self.process, args=(payload["movie"]))
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Put your plugin's Jinja2 templates here.
|
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.1"
|
||||
plugin_version = "0.1.2"
|
||||
|
||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||
# module
|
||||
|
|
Loading…
Add table
Reference in a new issue