Other changes

This commit is contained in:
Magnus Walbeck 2024-08-10 15:05:02 +02:00
parent 617736d73e
commit dff98678ab
Signed by: mwalbeck
SSH key fingerprint: SHA256:LW2enW+zg6O/tGp+u4fVcpo+4Bn9y1qGj9SxUIBdK3s
3 changed files with 17 additions and 15 deletions
octoprint_Factotum
setup.py

View file

@ -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"]))

View file

@ -1 +0,0 @@
Put your plugin's Jinja2 templates here.

View file

@ -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