Use a more familiar lua snake_hour

This commit is contained in:
Evgeny
2021-08-01 19:57:41 +03:00
parent 6e24536f99
commit f24288af99
26 changed files with 208 additions and 184 deletions

View File

@@ -4,11 +4,11 @@
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function onAlarm()
net:getText("http://api.icndb.com/jokes/random")
function on_alarm()
net:get_text("http://api.icndb.com/jokes/random")
end
function onNetworkResult(result)
local joke = json:getValue(result, "object object:value string:joke")
ui:showText(joke)
function on_network_result(result)
local joke = ajson:get_value(result, "object object:value string:joke")
ui:show_text(joke)
end