From 6846cb071c07fea2cc0d096ca33992d7fb8d2d62 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sat, 12 Mar 2022 12:53:12 +0100 Subject: [PATCH] change response names, to avoid confusion with berry lang itself --- tasmota/autoexec.be | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasmota/autoexec.be b/tasmota/autoexec.be index 0dad315b..ae98514c 100644 --- a/tasmota/autoexec.be +++ b/tasmota/autoexec.be @@ -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) \ No newline at end of file +tasmota.add_cmd('CustomSend', send_cmd2)