Use a more familiar lua snake_hour
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user