Files
aiolauncher_scripts/inspiration_quotes-widget.lua
2021-08-01 19:57:41 +03:00

17 lines
453 B
Lua

-- name = "Inspiration quotes"
-- description = "inspiration.goprogram.ai"
-- type = "widget"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function on_alarm()
net:get_text("https://inspiration.goprogram.ai/")
end
function on_network_result(result)
local quote = ajson:get_value(result, "object string:quote")
local author = ajson:get_value(result, "object string:author")
ui:show_lines({ quote }, { author })
end