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

14
isdayoff_ru-widget.lua Normal file
View File

@@ -0,0 +1,14 @@
function onAlarm()
local dateStr = os.date('%Y%m%d')
net:getText("https://isdayoff.ru/"..dateStr)
end
function onNetworkResult(result)
if result == "0" then
aio:showText("Сегодня рабочий день")
elseif result == "1" then
aio:showText("Сегодня выходной")
else
aio:showText("Ошибка")
end
end