Initial commit

This commit is contained in:
Evgeny
2021-07-29 07:51:07 +03:00
commit 091c7dcd0b
11 changed files with 169 additions and 0 deletions

8
btc-widget.lua Normal file
View File

@@ -0,0 +1,8 @@
function onAlarm()
net:getText("https://api.blockchain.info/ticker")
end
function onNetworkResult(result)
local price = json:getValue(result, "object object:USD string:last")
aio:showText("BTC = "..price.." USD")
end