up opentopd 1.3.4

This commit is contained in:
SirPdboy 2021-09-24 01:13:32 +08:00 committed by GitHub
parent dcfae61f4c
commit a9cce48743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -9,8 +9,8 @@ THEME_NAME:=opentopd
THEME_TITLE:=opentopd Theme
PKG_NAME:=luci-theme-$(THEME_NAME)
PKG_VERSION:=1.3.2
PKG_RELEASE:=20210922
PKG_VERSION:=1.3.3
PKG_RELEASE:=20210924
include $(INCLUDE_DIR)/package.mk

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 KiB

After

Width:  |  Height:  |  Size: 404 KiB

View File

@ -38,7 +38,8 @@
local node = disp.context.dispatched
local categories = disp.node_childs(tree)
local uptime="$( cat /proc/uptime |awk -F ' ' '{print int($1/87000)}')"
local ODAY=luci.sys.exec("ls -l -tc 1.jpg |awk -F ' ' '{print int($7)}'")
local NDAY=luci.sys.exec("date +'%d' |awk -F ' ' '{print int($1)}' ")
local c = tree
local i, r
@ -193,11 +194,13 @@
for f in ipairs(glob("/www/luci-static/opentopd/img/*")) do
bgcount = bgcount + 1
end
if bgcount < 2 or #uptime > 1 then
if bgcount < 3 or NDAY > ODAY then
luci.sys.exec("(curl -k -L \"$(curl -s https://instant.unsplash.com | grep -oE '\"raw\":\".*?\",\"full\"'| grep -o 'https://.*,' | sed 's/\",//g')\&q=80\&w=1680\" -o /www/luci-static/opentopd/img/1.jpg >/dev/null 2>&1) &")
luci.sys.exec("(curl -k -L \"$(curl -s https://instant.unsplash.com | grep -oE '\"raw\":\".*?\",\"full\"'| grep -o 'https://.*,' | sed 's/\",//g')\&q=80\&w=1680\" -o /www/luci-static/opentopd/img/2.jpg >/dev/null 2>&1) &")
luci.sys.exec("(curl -k -L \"$(curl -s https://instant.unsplash.com | grep -oE '\"raw\":\".*?\",\"full\"'| grep -o 'https://.*,' | sed 's/\",//g')\&q=80\&w=1680\" -o /www/luci-static/opentopd/img/3.jpg >/dev/null 2>&1) &")
end
%>
<!DOCTYPE html>