Added rest method getOutputStatus

This commit is contained in:
brbjr1
2017-12-04 18:44:32 -06:00
parent 56cdb302fe
commit 970c234d08
2 changed files with 2 additions and 8 deletions

View File

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

View File

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