Various fixes to support new AIO version

This commit is contained in:
Evgeny
2023-09-11 11:36:09 +04:00
parent 5ad5be396f
commit de23ba41de
5 changed files with 24 additions and 13 deletions

View File

@@ -14,6 +14,15 @@ local api_url = "https://api.uptimerobot.com/v2/"
local click_url = "https://uptimerobot.com/dashboard#mainDashboard"
local media_type = "application/x-www-form-urlencoded"
function on_preview()
if (next(settings:get()) == nil) then
ui:show_text("Shows uptime information from uptimerobot.com")
return
else
on_alarm()
end
end
function on_alarm()
if (next(settings:get()) == nil) then
ui:show_text("Tap to enter API key")