change response names, to avoid confusion with berry lang itself

This commit is contained in:
Johannes
2022-03-12 12:53:12 +01:00
committed by GitHub
parent 43801866f2
commit 6846cb071c

View File

@@ -329,8 +329,8 @@ end
def get_current_version(cmd, idx, payload, payload_json)
import string
var version_of_this_script = 1
var jm = string.format("{\"berry_version\":\"%s\"}", version_of_this_script)
var version_of_this_script = 2
var jm = string.format("{\"nlui_driver_version\":\"%s\"}", version_of_this_script)
tasmota.publish_result(jm, "RESULT")
end
@@ -354,10 +354,10 @@ def update_berry_driver(cmd, idx, payload, payload_json)
print("Scucessfully written nspanel-lovelace-ui berry driver")
var s = load('autoexec.be')
if s == true
var jm = string.format("{\"berry_update\":\"%s\"}", "succeeded")
var jm = string.format("{\"nlui_driver_update\":\"%s\"}", "succeeded")
tasmota.publish_result(jm, "RESULT")
else
var jm = string.format("{\"berry_update\":\"%s\"}", "failed")
var jm = string.format("{\"nlui_driver_update\":\"%s\"}", "failed")
tasmota.publish_result(jm, "RESULT")
end
@@ -405,4 +405,4 @@ def send_cmd2(cmd, idx, payload, payload_json)
tasmota.resp_cmnd_done()
end
tasmota.add_cmd('CustomSend', send_cmd2)
tasmota.add_cmd('CustomSend', send_cmd2)