Delete isdayoff_ru-widget.lua

This commit is contained in:
zobnin
2021-08-01 20:05:05 +03:00
committed by GitHub
parent d85058f029
commit e63a465d42

View File

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