Added rest method getOutputStatus
This commit is contained in:
@@ -108,13 +108,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin,
|
||||
if getOutputStatusresult:
|
||||
getOutputStatusresult = getOutputStatusresult + ', '
|
||||
getOutputStatusresult = getOutputStatusresult + '"' + str(pin) + '": ' + str(val).lower()
|
||||
return '{' + getOutputStatusresult + '}'
|
||||
|
||||
|
||||
@octoprint.plugin.BlueprintPlugin.route("/getTest", methods=["GET"])
|
||||
def getTest(self):
|
||||
return flask.jsonify(success=True)
|
||||
|
||||
return flask.jsonify('{' + getOutputStatusresult + '}')
|
||||
|
||||
@octoprint.plugin.BlueprintPlugin.route("/getEnclosureTemperature", methods=["GET"])
|
||||
def getEnclosureTemperature(self):
|
||||
|
||||
2
setup.py
2
setup.py
@@ -14,7 +14,7 @@ plugin_package = "octoprint_enclosure"
|
||||
plugin_name = "OctoPrint-Enclosure"
|
||||
|
||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
||||
plugin_version = "3.52"
|
||||
plugin_version = "3.51"
|
||||
|
||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||
# module
|
||||
|
||||
Reference in New Issue
Block a user