t9
This commit is contained in:
@@ -101,7 +101,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin,
|
||||
@octoprint.plugin.BlueprintPlugin.route("/getOutputStatus", methods=["GET"])
|
||||
def getOutputStatus(self):
|
||||
getOutputStatusresult = ''
|
||||
getOutputStatusresult2 = {}
|
||||
getOutputStatusresult2 = []
|
||||
for rpi_output in self.rpi_outputs:
|
||||
pin = self.toInt(rpi_output['gpioPin'])
|
||||
if rpi_output['outputType']=='regular':
|
||||
@@ -112,7 +112,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin,
|
||||
|
||||
getOutputStatusresult2[str(pin)] = str(val).lower()
|
||||
#return flask.jsonify('{' + getOutputStatusresult + '}')
|
||||
return flask.jsonify({count: len(getOutputStatusresult2), results: getOutputStatusresult2})
|
||||
return flask.jsonify({results: getOutputStatusresult2})
|
||||
|
||||
@octoprint.plugin.BlueprintPlugin.route("/getEnclosureTemperature", methods=["GET"])
|
||||
def getEnclosureTemperature(self):
|
||||
|
||||
Reference in New Issue
Block a user