Cleanup ru scripts

This commit is contained in:
Evgeny
2025-05-10 14:22:54 +08:00
parent 26ebaa3020
commit 3aff6de786
3 changed files with 7 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ end
function on_network_result_history(result,error)
history = ""
local color = ui:get_colors()
local color = aio:colors()
local equals = "<font color=\""..color.secondary_text.."\"> = </font>"
local xml = require "xml"
local t = xml:parse(result)
@@ -111,7 +111,7 @@ function get_rates()
end
function get_formatted_change_text(change)
local color = ui:get_colors()
local color = aio:colors()
if change > 0 then
return "<font color=\""..color.progress_good.."\">&nbsp+"..change.."%</font>"
elseif change < 0 then

View File

@@ -7,8 +7,8 @@
-- version = "1.0"
function on_alarm()
local dateStr = os.date('%Y%m%d')
http:get("https://isdayoff.ru/"..dateStr)
local dateStr = os.date('%Y%m%d')
http:get("https://isdayoff.ru/"..dateStr)
end
function on_network_result(result)

View File

@@ -11,14 +11,14 @@ function on_alarm()
end
function on_network_result(result)
quote = ajson:get_value(result, "object string:quoteText")
author = ajson:get_value(result, "object string:quoteAuthor")
quote = ajson:read(result, "object string:quoteText")
author = ajson:read(result, "object string:quoteAuthor")
ui:show_lines({ quote }, { author })
end
function on_click()
if quote ~= nil then
system:copy_to_clipboard(quote)
system:to_clipboard(quote)
end
end