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) def get_current_version(cmd, idx, payload, payload_json)
import string import string
var version_of_this_script = 1 var version_of_this_script = 2
var jm = string.format("{\"berry_version\":\"%s\"}", version_of_this_script) var jm = string.format("{\"nlui_driver_version\":\"%s\"}", version_of_this_script)
tasmota.publish_result(jm, "RESULT") tasmota.publish_result(jm, "RESULT")
end end
@@ -354,10 +354,10 @@ def update_berry_driver(cmd, idx, payload, payload_json)
print("Scucessfully written nspanel-lovelace-ui berry driver") print("Scucessfully written nspanel-lovelace-ui berry driver")
var s = load('autoexec.be') var s = load('autoexec.be')
if s == true 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") tasmota.publish_result(jm, "RESULT")
else else
var jm = string.format("{\"berry_update\":\"%s\"}", "failed") var jm = string.format("{\"nlui_driver_update\":\"%s\"}", "failed")
tasmota.publish_result(jm, "RESULT") tasmota.publish_result(jm, "RESULT")
end end