Cleanup samples

This commit is contained in:
Evgeny
2025-05-03 09:45:26 +08:00
parent 296fbee028
commit b9d73171ed
26 changed files with 51 additions and 612 deletions

View File

@@ -1,9 +1,9 @@
function on_alarm()
local location = system:get_location()
local location = system:location()
http:get("https://nominatim.openstreetmap.org/reverse?format=json&lat=".. location[1].."&lon=".. location[2].."&addressdetails=1")
end
function on_network_result(result)
local adr = ajson:get_value(result, "object string:display_name")
local adr = ajson:read(result, "object string:display_name")
ui:show_text(adr)
end